amap-python
Automated mouse atlas propagation
About
amap is python software for registration of brain templates to sample whole-brain microscopy datasets, and subsequent atlas-based segmentation by Adam Tyson, Charly Rousseau & Christian Niedworok from the Margrie Lab at the Sainsbury Wellcome Centre.
This is a Python port of aMAP (originally written in Java), which has been validated against human segmentation.
The actual registration is carried out by NiftyReg.
Documentation can be found here.
Details
The aim of amap is to register the template brain (e.g. from the Allen Reference Atlas) to the sample image. Once this is complete, any other image in the template space can be aligned with the sample (such as region annotations, for segmentation of the sample image). The template to sample transformation can also be inverted, allowing sample images to be aligned in a common coordinate space.
To do this, the template and sample images are filtered, and then registered in a three step process (reorientation, affine registration, and freeform registration.) The resulting transform from template to standard space is then applied to the atlas.
Full details of the process are in the
original paper.
Overview of the registration process
Installation
pip install amap
Usage
amap was designed with generality in mind, but is currently used for a single application. If anyone has different uses (e.g. requires a different atlas, or the data is in a different format), please get in touch by email or by raising an issue.
Basic usage
amap /path/to/raw/data /path/to/output/directory -x 2 -y 2 -z 5
Arguments
Mandatory
- Path to the directory of the images. Can also be a text file pointing to the files.
- Output directory for all intermediate and final results
Either
-xor--x-pixel-umPixel spacing of the data in the first dimension, specified in um.-yor--y-pixel-umPixel spacing of the data in the second dimension, specified in um.-zor--z-pixel-umPixel spacing of the data in the third dimension, specified in um.
Or
--metadataMetadata file containing pixel sizes (any format supported by micrometa can be used). If both pixel sizes and metadata are provided, the command line arguments will take priority.
Additional options
-dor--downsamplePaths to N additional channels to downsample to the same coordinate space.
Full command-line arguments are available with amap -h, but please
get in touch if you have any questions.
Citing amap.
If you find amap useful, and use it in your research, please cite the original Nature Communications paper along with this repository:
Adam L. Tyson, Charly V. Rousseau, Christian J. Niedworok and Troy W. Margrie (2019). amap: automatic atlas propagation. doi:10.5281/zenodo.3582162
Visualisation
amap can use the cellfinder visualisation function (built using napari).
Usage
cellfinder_view
Release files for amap 0.1.26
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| amap-0.1.26.tar.gz | 22.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| amap-0.1.26-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 59.4 kB
Release files / amap-0.1.26.tar.gz
| Download URL | amap-0.1.26.tar.gz |
|---|---|
| Size | 22.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60c6bdcb992af1dfe4cb7f262020cdea0c3b43e0cd92f9bafe4dfbab7aa8cd6b
|
|
BLAKE2b-256 checksum How to use checksums |
e5f8f680f2c4a9a8e3d9b381f7c5ce903f7ca49532f8b323bf8d6d3f162f4304
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10
|
Release files / amap-0.1.26-py3-none-any.whl
| Download URL | amap-0.1.26-py3-none-any.whl |
|---|---|
| Size | 37.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6184c105c7083cd95eeae81725848d85164c2749a42bce0336155fd784fd607d
|
|
BLAKE2b-256 checksum How to use checksums |
76ea3fa652224ee8962aea1afa7c73617375f368030bcda87c152a531c7ed5e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10
|