Skip to main content

Python-based tools for computational neuroanatomy.

Project description

PyPI version Website Twitter

brainglobe

The BrainGlobe Initiative exists to facilitate the development of interoperable Python-based tools for computational neuroanatomy.

We have three aims:

  • Develop specialist software for specific analysis and visualisation needs, such as cellfinder and brainrender.

  • Develop core tools to facilitate others to build interoperable tools in Python, e.g. the BrainGlobe Atlas API.

  • Build a community of neuroscientists and developers to share knowledge, build software and engage with the scientific, and open-source community (e.g. by organising hackathons).

Funding Information

The BrainGlobe project is only possible due to grant funding and the generous support of host institutions, whose information can be found on this website.


BrainGlobe tools

This package provides all BrainGlobe tools in one place, requested through a single command.

You can read more about the individual tools on the documentation website. Currently included packages, and whether they come with the pip and conda-forge installs are listed below:

Package pip conda from brainglobe import Documentation
BrainGlobe Atlas API bg_atlasapi Site
bg-space bg-space Site
brainreg brainreg Site
brainreg-segment brainreg_segment Site
brainrender Site
cellfinder Pending cellfinder_core Site
morphapi Pending morphapi Site

Installation

We recommend users install into a fresh virtual environment using pip; since this will resolve all complex dependencies (like tensorflow) automatically, across all operating systems and (compatible) Python versions.

Recommended: via pip

The brainglobe package can be installed from PyPI into a Python environment by running

pip install brainglobe

This will fetch and install all brainglobe packages and tools into your current environment. Alternatively, you can download the source from PyPI here.

Alternatives: via conda

We are currently in the process of making BrainGlobe's tools available from conda-forge as an alternative to PyPI. However certain tools are currently not available on conda-forge, specifically:

  • brainrender (in progress)
  • morphapi (in progress)
  • cellfinder (see below)

In your desired virtual environment, run

conda install -c conda-forge brainglobe

to install the compatible BrainGlobe tools. This will install all BrainGlobe tools that are compatible with your platform and which are currently available via conda-forge.

cellfinder and conda-forge

Choosing to install via conda will provide the (source code for the) cellfinder tool. However due to an ongoing issue with tensorflow's availability on conda-forge, the install will not provide tensorflow itself. This is because tensorflow versions newer than 1.14.0 are not provided via conda channels, and cellfinder-core (one of the brainglobe tools) requires a version between 2.5.0 and 2.11.1. See this issue on GitHub for more details. Users that want to run cellfinder will need to manually install a compatible version of tensorflow into their environment, before running the conda install command above.

  • Windows users will have to manually install their own version of tensorflow if they want to use the conda-forge install and the cellfinder tools.
  • conda-forge may be able to resolve the dependencies automatically for Linux and MacOS users, however we do not guarantee this. In such a case, a manual install of tensorflow will be required first.

If using the conda-forge install; attempting to import any of cellfinder, cellfinder-napari, or cellfinder-core in your Python scripts may throw an error if the issues above cannot be resolved on your platform. Similarly, attempting to use cellfinder's CLI functionality will also raise an error.


Contributing

Contributors to BrainGlobe are absolutely encouraged, whether to fix a bug, develop a new feature, or add a new atlas. If you would like to contribute, please take a look at our developer documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brainglobe-0.2.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

brainglobe-0.2.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file brainglobe-0.2.0.tar.gz.

File metadata

  • Download URL: brainglobe-0.2.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for brainglobe-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9e2814d766a1f3165f8f5a4c94a345f6008385ca9f8941907f2cf84cb1d386f2
MD5 83469b67e24a4ef6532cd22f081009f4
BLAKE2b-256 5daf1c3c9272f09791b9da788471684d940e3d4c9115e21e723f25a21617f291

See more details on using hashes here.

File details

Details for the file brainglobe-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: brainglobe-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for brainglobe-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f199db8d1fd990c71d55bec77f9536c2fb5b6cffe5078e4e14bbb62892aea50f
MD5 922febf6a2a9d7f867ceace8f2462d8e
BLAKE2b-256 1b42444f1c9e991a21aea305ad25e9921fc928540a7bfee2cd8b5c7a2fd5fefe

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