BlueBrain / Atlas-Download-Tools

Search, download, and prepare brain atlas data.
https://atlas-download-tools.rtfd.io
GNU Lesser General Public License v3.0
17 stars 7 forks source link
brain-atlas download search

Atlas Download Tools Logo

Search, download, and prepare atlas data.

Latest release DOI License
Black Isort Pydocstyle Pydocstyle Checked with mypy
Build status Documentation Status

Among different sources of data, Allen Brain Institute hosts a rich database of gene expression images, Nissl volumes, and annotation atlases. The Atlas-Download-Tools library can help you to download single section images and entire datasets, as well as the corresponding metadata. It can further pre-process the image data to place it in the standard reference space.

Installation

Installation from PyPI

The atldld package can be easily installed from PyPI.

pip install atldld

Installation from source

If you want to try the latest version, you can install from source.

pip install git+https://github.com/BlueBrain/Atlas-Download-Tools

Installation for development

If you want a dev install, you should install the latest version from source with all the extra requirements for running test.

git clone https://github.com/BlueBrain/Atlas-Download-Tools
cd Atlas-Download-Tools
pip install -e '.[dev]'

How to use the package

Atlas-Download-Tools can be used through a command line interface (CLI), as well as programmatically through a python API.

At present the CLI is rather limited, but we are working on adding the most useful functionality as soon as possible.

Using the CLI

All functionality can be accessed through the atldld command and its sub-commands. For example:

$ atldld

# Information about the version of atldld
$ atldld info version
$ atldld info version --help
# Information about the cache folder 
$ atldld info cache

One can also get dataset information through the CLI.

$ atldld dataset info $DATASET_ID
$ atldld dataset preview $DATASET_ID

To download a dataset use the atldld download command.

$ atldld download dataset $DATASET_ID

For further information please refer to the help part of the corresponding command.

Using the python API

The package atldld has several functionalities to download data from Allen Brain Institute:

Funding & Acknowledgment

The development of this software was supported by funding to the Blue Brain Project, a research center of the École polytechnique fédérale de Lausanne (EPFL), from the Swiss government’s ETH Board of the Swiss Federal Institutes of Technology.

Copyright (c) 2021-2022 Blue Brain Project/EPFL