A simple Python-based tool for finding brain atlas regions based on MNI coordinates.
Reason this release was yanked:
Deprecated
Project description
mni_to_region
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.
Currently, the automated anatomical labelling (AAL) atlas [1] and AAL3 atlas [2] are supported.
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 -i https://test.pypi.org/simple/ mni-to-atlas
- Import the
AtlasBrowser
class frommni_to_atlas
into your workspace, e.g.from mni_to_atlas import AtlasBrowser
- Create an instance of the
AtlasBrowser
class and specify an atlas to use, e.g.atlas = AtlasBrowser("AAL3")
- Provide MNI coordinates to the
AtlasBrowser
object to find the corresponding atlas regions, e.g.regions = atlas.find_regions(coordinates)
, where coordinates is an [n x 3] numpy ndarray, where each row contains an x-, y-, and z-axis MNI coordinate. Theregions
output is a list of strings containing the region names for each set of coordinates- By default, plotting the coordinates is not performed, however this can be changed by setting
plot = True
in thefind_regions
method, e.g.atlas.find_regions(coordinates, plot=True)
. In this case, a figure will be generated for each set of coordinates
- By default, plotting the coordinates is not performed, however this can be changed by setting
References:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mni_to_atlas-0.3.tar.gz
(281.4 kB
view hashes)
Built Distribution
mni_to_atlas-0.3-py3-none-any.whl
(291.8 kB
view hashes)
Close
Hashes for mni_to_atlas-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ebe725f35b3a2f4a33e015cbf4d4bbe8328a0c9098bd329eaec5f56f90a20ea |
|
MD5 | 6df7388f3647392ebd555d90b678fa1d |
|
BLAKE2b-256 | 2219c53f62e6a64313904176d38f7cfe039c74c9c582b1976d40fb4458a2ceb6 |