Skip to main content

siibra - Software interfaces for interacting with brain atlases

Project description

License PyPI version Python versions Documentation Status

siibra - Python interface for interacting with brain atlases

Copyright 2020-2021, Forschungszentrum Jülich GmbH

Authors: Big Data Analytics Group, Institute of Neuroscience and Medicine (INM-1), Forschungszentrum Jülich GmbH

Note: siibra-python is still at an experimental stage. The API of the library is not stable, and the software is not yet fully tested. You are welcome to install and test it, but be aware that you will likely encounter bugs.

Overview

siibra is a Python client for interacting with "multilevel" brain atlases, which combine multiple brain parcellations, reference coordinate spaces and modalities. siibra is designed to allow safe and convenient interaction with brain definitions from different parcellations, facilitating implementation of reproducible neuroscience workflows on the basis of brain atlases. It allows to work with reference brain templates both at millimeter and micrometer resolutions, and provides streamlined access to multimodal data features linked to brain regions.

siibra is largely developed inside the Human Brain Project for accessing the EBRAINS human brain atlas. It stores most of its configuration and data features in the EBRAINS Knowledge Graph, and is designed to support the OpenMINDS metadata standards.

The functionality of siibra-python matches common actions known from browsing the interactive viewer siibra explorer hosted on EBRAINS: Selecting different parcellations, browsing and searching brain region hierarchies, downloading maps, identifying brain regions, and accessing multimodal features and connectivity information associated with brain regions.

A key feature is a streamlined implementation of performing structured data queries for the main atlas concepts: reference spaces, parcellations, and brain regions. Accordingly, siibra implements unified handling for different types of features, namely

  • spatial features (which are linked to atlas regions via coordinates; like contact points of physiological electrodes),
  • regional features (which are linked to atlases via a brain region specifications, like cell densities or neurotransmitter distributions), and
  • parcellation features (linked to an atlas via a whole brain parcellation, like grouped connectivity matrices).

As a result, all forms of data features can be queried using the same mechanism (siibra.get_features()) which accepts the specification of an concept (e.g. a selected brain region), and a data modality. Currently available data features include neurotransmitter densities, regional connectivity profiles, connectivity matrices, high-resolution volumes of interest, gene expressions, and cell distributions. Additional features, including functional activation maps and electrophysiologal recordings, will become available soon. Stay tuned!

siibra hides much of the complexity that would be required to interact with the individual data repositories that host the associated data. By encapsulating many aspects of interacting with different maps and reference templates spaces, it also minimizes common errors like misinterpretation of coordinates from different reference spaces, mixing up label indices of brain regions, or utilisation of inconsistent versions of parcellation maps. It aims to provide a safe way of using maps defined across multiple spatial scales for reproducible analysis.

Documentation

siibra-python's documentation is hosted at https://siibra-python.readthedocs.io.

Usage examples

To get familiar with siibra, we recommend to checkout the jupyter notebooks in the docs/ subfolder of the repository, which are the basis for much of the documentation.

Installation and setup

siibra is available on pypi. To install the latest released version, simply run pip install siibra. In order to work with the latest development version from github, use pip install git+https://github.com/FZJ-INM1-BDA/siibra-python.git@develop.

siibra retrieves much of its data from the EBRAINS Knowledge Graph, which requires authentication. Therefore you have to provide an EBRAINS authentication token for using all features provided by siibra. Please make sure that you have a valid EBRAINS user account by registering to EBRAINS. Then follow the instructions for obtaining EBRAINS API auth tokens. As a last step, you need to fetch a recent token from the authorization endpoint, and make it known to siibra using either siibra.set_ebrains_token() or by storing it in the environment variable HBP_AUTH_TOKEN. Note that as of now, you need to get a new token approximately every day to perform EBRAINS data queries. However, siibra implements a local cache on your harddisk, so once retrieved, your data will become usable and accessible without refreshing the token.

Acknowledgements

This software code is funded from the European Union’s Horizon 2020 Framework Programme for Research and Innovation under the Specific Grant Agreement No. 945539 (Human Brain Project SGA3).

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

siibra-0.3a5.tar.gz (4.9 MB view details)

Uploaded Source

Built Distribution

siibra-0.3a5-py3-none-any.whl (528.1 kB view details)

Uploaded Python 3

File details

Details for the file siibra-0.3a5.tar.gz.

File metadata

  • Download URL: siibra-0.3a5.tar.gz
  • Upload date:
  • Size: 4.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for siibra-0.3a5.tar.gz
Algorithm Hash digest
SHA256 e2b0e560d0cb03c1ec169c5b7f4dea9eb22ea01a9aba31f73e3f90dbb2817176
MD5 53b1620ca91bae07e973f5811027313c
BLAKE2b-256 682f8026c7b341f857b00000580946fd251df6ecf0839318675a16c6696461f5

See more details on using hashes here.

File details

Details for the file siibra-0.3a5-py3-none-any.whl.

File metadata

  • Download URL: siibra-0.3a5-py3-none-any.whl
  • Upload date:
  • Size: 528.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for siibra-0.3a5-py3-none-any.whl
Algorithm Hash digest
SHA256 9416677d827679359839af983053819aa3cd09ee9df82e6e0c696c45102848fc
MD5 43b048d9604875c8974a469589cfc945
BLAKE2b-256 d02ef90d22d77e048b70acf3f35265c269ba1a9a25474d5fe549bdd5f40c556d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page