https://github.com/tsbinns/mni_to_atlas
A simple Python-based tool for finding brain atlas regions based on MNI coordinates.
Science Score: 39.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 9 DOI reference(s) in README -
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.6%) to scientific vocabulary
Keywords
Repository
A simple Python-based tool for finding brain atlas regions based on MNI coordinates.
Basic Info
Statistics
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 3
Topics
Metadata Files
README.md
mni-to-atlas
A simple Python-based tool for finding brain atlas regions based on MNI coordinates, with basic plotting abilities to show the sagittal, coronal, and axial views of the coordinates on the atlas.
The following atlases are currently supported: - Automated anatomical labelling atlas [1] - Automated anatomical labelling 3 atlas (1mm3 voxel version) [2] - Human Connectome Project extended parcellation atlas [3]
If there is an atlas you would like to see added, please open an issue.
Example screenshot of the plotting:

Requirements:
See here for the list of requirements.
Use Example:
- Install the package into the desired environment using pip
pip install mni-to-atlas. - Import the
AtlasBrowserclass into your workspace. - Create an instance of the
AtlasBrowserclass and specify an atlas to use (can be "AAL", "AAL3", or "HCPEx"). - Provide MNI coordinates to the
AtlasBrowserobject to find the corresponding atlas regions. The brain regions for these coordinates are then returned as a list of strings.- The coordinates should be an (n x 3) array, where each row contains an x-, y-, and z-axis MNI coordinate.
- By default, plotting the coordinates is not performed, however this can be changed by setting
plot = Truein thefind_regionsmethod. In this case, a figure will be generated for each set of coordinates.
```python
Import the AtlasBrowser class
from mnitoatlas import AtlasBrowser
Instantiate the AtlasBrowser class and specify the atlas to use
atlas = AtlasBrowser("AAL3")
Provide MNI coordinates as an (n x 3) array
coordinates = np.array([[-24, -53, 73], [-25, 20, 78]])
Find the brain regions at the MNI coordinates (plotting is optional)
regions = atlas.find_regions(coordinates, plot=True) ```
References:
- Tzourio-Mazoyer et al. (2002) DOI: 10.1006/nimg.2001.0978
- Rolls et al. (2020) DOI: 10.1016/j.neuroimage.2019.116189
- Huang et al. (2022) DOI: 10.1007/s00429-021-02421-6
Owner
- Name: Thomas Samuel Binns
- Login: tsbinns
- Kind: user
- Location: Berlin, Germany
- Company: Deptartment of Neurology, Charité - Universitätsmedizin Berlin
- Website: tsbinns.com
- Twitter: tsbinns
- Repositories: 5
- Profile: https://github.com/tsbinns
Ph.D. Neuroscience Fellow; M.Sci. Neuroscience with Psychology graduate. Interested in computational, cognitive, and translational neuroscience.
GitHub Events
Total
- Release event: 1
- Watch event: 1
- Issue comment event: 3
- Create event: 1
Last Year
- Release event: 1
- Watch event: 1
- Issue comment event: 3
- Create event: 1
Committers
Last synced: 8 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Thomas Samuel Binns | t****s@o****m | 36 |
Issues and Pull Requests
Last synced: 8 months ago
All Time
- Total issues: 3
- Total pull requests: 0
- Average time to close issues: 6 months
- Average time to close pull requests: N/A
- Total issue authors: 3
- Total pull request authors: 0
- Average comments per issue: 1.67
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
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
- SaraDadjouy (1)
- caggursoy (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 184 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 7
- Total maintainers: 1
pypi.org: mni-to-atlas
A simple Python-based tool for finding brain atlas regions based on MNI coordinates.
- Homepage: https://github.com/tsbinns/mni_to_atlas
- Documentation: https://mni-to-atlas.readthedocs.io/
- License: MIT License
-
Latest release: 1.1.0
published about 2 years ago
Rankings
Maintainers (1)
Dependencies
- matplotlib >= 3.5
- nibabel >= 3.2
- numpy >= 1.22
- matplotlib ==3.5.1
- nibabel ==3.2.2
- numpy ==1.22.3