https://github.com/cyclotronresearchcentre/shamo
A tool for electromagnetic modelling of the head and sensitivity analysis.
Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 5 DOI reference(s) in README -
✓Academic publication links
Links to: arxiv.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.8%) to scientific vocabulary
Keywords
eeg
sensitivity
tdcs
Last synced: 5 months ago
·
JSON representation
Repository
A tool for electromagnetic modelling of the head and sensitivity analysis.
Basic Info
- Host: GitHub
- Owner: CyclotronResearchCentre
- License: gpl-3.0
- Language: Python
- Default Branch: master
- Homepage: https://cyclotronresearchcentre.github.io/shamo/index.html
- Size: 8.67 MB
Statistics
- Stars: 7
- Watchers: 9
- Forks: 1
- Open Issues: 1
- Releases: 0
Topics
eeg
sensitivity
tdcs
Created almost 6 years ago
· Last pushed almost 2 years ago
https://github.com/CyclotronResearchCentre/shamo/blob/master/
# shamo
[](https://pypi.org/project/shamo/)

[](https://cyclotronresearchcentre.github.io/shamo/index.html)
[](https://cyclotronresearchcentre.github.io/shamo/index.html)
[](https://github.com/psf/black)
[](https://numpydoc.readthedocs.io/en/latest/)
[](https://github.com/CyclotronResearchCentre/shamo/blob/master/LICENSE.md)
[](https://doi.org/10.5281/zenodo.4420811)
## Introduction
Constructing accurate subject specific head model is of main interest in the fields of source imaging (EEG/MEG) and brain stimulation (tDCS/tMS). *shamo* is an open source python package to calculate EEG leadfields, current flows, and electric potential distribution in the head. From a labelled 3D image of the head, the whole process is fully automatized, relying only on a few parameter files, e.g. conductivities (including white matter anisotropy) plus source and electrode locations. Since there is no non-invasive method to measure the electromagnetic (EM) properties of the head tissues, *shamo* can also be used to assess the sensitivity of the EM head model to these parameters.
## Philosophy
The idea leading the development of *shamo* is to provide a versatile, intuitive and extendable toolbox for electromagnetic modelling of the head.
Every object is though to be savable/loadable as a dictionary and stored as a JSON file on disk.
*shamo* is built around three main concepts:
1. **Problem:** The definition of a task to perform. Computing the EEG leadfield or simulating tDCS for examples.
1. **Solution:** The object resulting from the resolution of a problem.
1. **Surrogate:** If the problem-solution pair is parametric, e.g. some parameters are random variables, surrogate can be used to produce parametric models.
One of the leading rules while working on *shamo* was to use already existing quality tools to perform key steps.
Thus, the finite element generation is achieved by interfacing with [CGAL](https://www.cgal.org/) and [Gmsh](https://gmsh.info/), the physical problem resolution is done with [GetDP](https://getdp.info/), the Gaussian processes are generated with [scikit-learn](https://scikit-learn.org/stable/) and the sensitivity analysis uses [SALib](https://salib.readthedocs.io/en/latest/).
## Documentation
The documentation of *shamo* is available [here](https://cyclotronresearchcentre.github.io/shamo/index.html) and tutorials are available in the form of jupyter notebooks in [this repository](https://github.com/CyclotronResearchCentre/shamo-tutorials).
## FAQ
### Where can you get help about *shamo*?
If you need help with your project involving *shamo*, head over to [this page](https://github.com/CyclotronResearchCentre/shamo/issues/new) and pick up the help template. Make sure your question does not already exist fy searching the issues.
We'll be happy to give you some help!
### Where does the name *"shamo"* come from?
The name *"shamo"*, pronounced [:m:], stands for *"Stochastic HeAd MOdelling"*.
In french, it sounds like the word *"chameau"* which is the translation for *"camel"*. This is a reference to the bematists, those ancient greek and egyptians who were able to measure distances with a high accuracy by counting the steps of a camel. They were involved in the accurate calculation of the circumference of the Earth by limiting distance measurement errors.
As did the old bematists, this tool aims at raising the accuracy in outcome of neuro- studies by providing more insights on the errors involved.
### How to contribute?
You can contribute to *shamo* in several ways like adding new features, fixing bugs or improving documentation and examples.
For more information, refer to [this document](CONTRIBUTING.md).
### How to cite?
If you use *shamo* in your work, please cite [this paper](https://doi.org/10.1007/s12021-022-09574-7) (Available in open access on both [Orbi](https://hdl.handle.net/2268/288747) and [Arxiv](https://arxiv.org/abs/2103.08164)):
```bib
@article{grignard_shamo_2022,
title = {Shamo: A Tool for Electromagnetic Modeling, Simulation and Sensitivity} {Analysis of the Head},
issn = {1559-0089},
shorttitle = {Shamo},
doi = {10.1007/s12021-022-09574-7},
language = {en},
journal = {Neuroinformatics},
author = {Grignard, Martin and Geuzaine, Christophe and Phillips, Christophe},
month = mar,
year = {2022},
}
```
## License
Copyright (C) 2020 [GIGA CRC In-Vivo Imaging](https://www.giga.uliege.be/cms/c_5634375/fr/giga-in-vivo-imaging), Lige, Belgium
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
For more information, refer to [the full license](LICENSE.md).
Owner
- Name: Cyclotron Research Centre
- Login: CyclotronResearchCentre
- Kind: organization
- Email: c.phillips@uliege.be
- Location: University of Liège, Belgium
- Website: https://www.gigacrc.uliege.be/
- Twitter: Giga_CRCivi
- Repositories: 70
- Profile: https://github.com/CyclotronResearchCentre
In vivo imaging with positron emission tomography and magnetic resonance imaging as well as electrophysiology
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Committers
Last synced: almost 3 years ago
All Time
- Total Commits: 183
- Total Committers: 2
- Avg Commits per committer: 91.5
- Development Distribution Score (DDS): 0.011
Top Committers
| Name | Commits | |
|---|---|---|
| Martin | m****d@g****m | 181 |
| Martin | m****d@g****m | 2 |
Issues and Pull Requests
Last synced: 8 months ago
All Time
- Total issues: 3
- Total pull requests: 33
- Average time to close issues: about 1 month
- Average time to close pull requests: 1 minute
- Total issue authors: 1
- Total pull request authors: 2
- Average comments per issue: 0.67
- Average comments per pull request: 0.0
- Merged pull requests: 32
- Bot issues: 0
- Bot pull requests: 1
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- MartinGrignard (3)
Pull Request Authors
- MartinGrignard (33)
Top Labels
Issue Labels
bug (3)
Pull Request Labels
enhancement (3)
bug (1)
Packages
- Total packages: 1
-
Total downloads:
- pypi 21 last-month
- Total dependent packages: 0
- Total dependent repositories: 1
- Total versions: 10
- Total maintainers: 1
pypi.org: shamo
A tool for electromagnetic modelling of the head and sensitivity analysis.
- Homepage: https://github.com/CyclotronResearchCentre/shamo
- Documentation: https://shamo.readthedocs.io/
- License: GPLv3
-
Latest release: 1.2.1
published about 2 years ago
Rankings
Dependent packages count: 10.0%
Stargazers count: 20.3%
Dependent repos count: 21.7%
Forks count: 22.6%
Average: 25.2%
Downloads: 51.6%
Maintainers (1)
Last synced:
6 months ago
Dependencies
dev-requirements.txt
pypi
- Sphinx >=3.3.1 development
- black ==19.10b0 development
- bump2version >=1.0.1 development
- nbsphinx >=0.8.0 development
- numpydoc >=1.1.0 development
- pre-commit >=2.8.2 development
- pytest >=6.1.1 development
- pytest-assume >=2.3.3 development
- sphinx-rtd-theme >=0.5.0 development
- sphinxcontrib-bibtex >=2.0.0 development
- tox >=3.20.1 development
requirements.txt
pypi
- SALib >=1.4.0b0
- chaospy >=3.2.8
- click >=7.1.2
- gmsh >=4.6.0
- h5py >=2.10.0
- jinja2 >=2.11.2
- meshio >=4.3.1
- nibabel >=3.2.0
- nilearn >=0.6.2
- numpy >=1.19.2
- pygalmesh >=0.9.1
- pyyaml >=5.3.1
- scikit-learn >=0.22.1
- scipy >=1.5.3
- wurlitzer >=2.0.1