https://github.com/bluebrain/atlas-download-tools

Search, download, and prepare brain atlas data.

https://github.com/bluebrain/atlas-download-tools

Science Score: 67.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 3 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
    4 of 8 committers (50.0%) from academic institutions
  • Institutional organization owner
    Organization bluebrain has institutional domain (portal.bluebrain.epfl.ch)
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.8%) to scientific vocabulary

Keywords

brain-atlas download search

Keywords from Contributors

neuron
Last synced: 6 months ago · JSON representation

Repository

Search, download, and prepare brain atlas data.

Basic Info
Statistics
  • Stars: 17
  • Watchers: 3
  • Forks: 8
  • Open Issues: 29
  • Releases: 6
Topics
brain-atlas download search
Created over 4 years ago · Last pushed almost 3 years ago
Metadata Files
Readme Contributing License Authors

README.md

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.

shell script pip install atldld

Installation from source

If you want to try the latest version, you can install from source. shell script 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. shell script 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: ```bash $ 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. bash $ atldld dataset info $DATASET_ID $ atldld dataset preview $DATASET_ID

To download a dataset use the atldld download command. shell $ 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:

  • One can find dataset IDs from a gene expression name: python from atldld.utils import get_experiment_list_from_gene dataset_ids = get_experiment_list_from_gene("Pvalb", axis='sagittal')

  • One can download any dataset from a dataset ID: ```python from atldld.sync import DatasetDownloader downloader = DatasetDownloader(datasetid=DATASETID, **kwargs)

    One needs to fetch metadata before downloading a dataset.

    downloader.fetchmetadata() dataset = downloader.run() imageid, sectionnumber, img, imgexp, df = next(dataset) ``` Note that this functionality makes a simplifying assumption that the slices are perfectly parallel to one of the 3 axes.

  • One can obtain metadata of a dataset: ```python from atldld.utils import CommonQueries, get_3d

    The axis {'sagittal', 'coronal'}

    axis = CommonQueries.getaxis(datasetid=DATASET_ID)

    The reference space

    refspace = CommonQueries.getreferencespace(datasetid=DATASET_ID)

    The 3d transformation of the dataset

    matrix3d = get3d(datasetid=DATASETID) ```

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

Owner

  • Name: The Blue Brain Project
  • Login: BlueBrain
  • Kind: organization
  • Email: bbp.opensource@epfl.ch
  • Location: Geneva, Switzerland

Open Source Software produced and used by the Blue Brain Project

GitHub Events

Total
  • Fork event: 1
Last Year
  • Fork event: 1

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 53
  • Total Committers: 8
  • Avg Commits per committer: 6.625
  • Development Distribution Score (DDS): 0.642
Top Committers
Name Email Commits
Stanislav Schmidt S****v@u****m 19
EmilieDel 4****l@u****m 17
Jan j****l@y****m 7
Emilie Delattre e****e@e****h 6
Stanislav Schmidt s****t@e****h 1
Francesco Casalegno f****o@g****m 1
Erik Heeren e****n@e****h 1
alex4200 a****z@e****h 1
Committer Domains (Top 20 + Academic)
epfl.ch: 4

Issues and Pull Requests

Last synced: 8 months ago

All Time
  • Total issues: 55
  • Total pull requests: 45
  • Average time to close issues: 26 days
  • Average time to close pull requests: 6 days
  • Total issue authors: 3
  • Total pull request authors: 7
  • Average comments per issue: 0.85
  • Average comments per pull request: 0.67
  • Merged pull requests: 39
  • 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
  • jankrepl (27)
  • Stannislav (14)
  • EmilieDel (14)
Pull Request Authors
  • Stannislav (19)
  • EmilieDel (15)
  • jankrepl (7)
  • heerener (1)
  • alex4200 (1)
  • FrancescoCasalegno (1)
  • bbpgithubaudit (1)
Top Labels
Issue Labels
documentation (2) bug (1)
Pull Request Labels
enhancement (2)

Dependencies

setup.py pypi
  • Pillow *
  • appdirs *
  • click >=8
  • dataclasses *
  • matplotlib *
  • numpy *
  • opencv-python *
  • requests *
  • scikit-image *
.github/workflows/run-tests.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
pyproject.toml pypi