Skip to main content

A collection of end-to-end data analysis workflows executed using BrainGlobe tools.

Project description

Python Version PyPI Downloads Wheel Development Status Tests codecov Code style: black Imports: isort pre-commit Contributions Website Twitter

BrainGlobe Workflows

brainglobe-workflows is a package that provides users with a number of out-of-the-box data analysis workflows employed in neuroscience, implemented using BrainGlobe tools.

These workflows represent the most common use-cases and are meant to be easy to reuse. They also serve as an example of how to combine several BrainGlobe tools (possibly together with other tools) to achieve a goal, such as whole brain cell detection and atlas registration.

You can view the full documentation for each workflow online. You can also find the documentation for the backend BrainGlobe tools these workflows use on our website.

At present, the package offers the following workflows to users:

  • brainmapper: A command-line tool for whole-brain detection, registration, and analysis.

Additionally, this repository provides functionalities to support code developers. See the developer documentation for further details.

User documentation

Installation

At the moment, users can install all available workflows by running pip install in your desired environment:

pip install brainglobe-workflows

brainglobe-workflows is built using BrainGlobe tools, and it will automatically fetch the tools that it needs and install them into your environment. Once BrainGlobe version 1 is available, this package will fetch all BrainGlobe tools and handle their install into your environment, to prevent potential conflicts from partial installs.

See the sections below for more information about the workflows and command-line tools provided.

brainmapper Command Line Interface (CLI)

Whole-brain cell detection, registration and analysis.

If you want to just use the cell detection part of brainmapper, please see the standalone cellfinder package and its napari plugin.

brainmapper is a workflow designed for the analysis of whole-brain imaging data such as serial-section imaging and lightsheet imaging in cleared tissue. The aim is to provide a single solution for:

  • Cell detection (initial cell candidate detection and refinement using deep learning) (using the cellfinder backend package),
  • Atlas registration (using brainreg),
  • Analysis of cell positions in a common space.

Basic usage:

brainmapper -s signal_images -b background_images -o output_dir --metadata metadata

Full documentation can be found here.

NOTE: The brainmapper workflow previously used the name "cellfinder", but this has been discontinued following the release of the unified cellfinder backend package to avoid conflation of terms. See our blog post from the release for more information.

Developer documentation

This repository also includes code to benchmark typical workflows. These benchmarks are meant to be run regularly, to ensure performance is stable as the tools are developed and extended.

There are three main ways in which these benchmarks can be useful to developers:

  1. Developers can run the available benchmarks locally on a small test dataset.
  2. Developers can also run these benchmarks on data they have stored locally.
  3. We also plan to run the benchmarks on an internal runner using a larger dataset, of the scale we expect users to be handling. The result of these benchmarks will be made publicly available.

For further details on how to run the benchmarks, see the benchmarks README.

Seeking help or contributing

We are always happy to help users of our tools, and welcome any contributions. If you would like to get in contact with us for any reason, please see the contact page of our website.

Citing brainglobe-workflows

If you use any tools in the brainglobe suite, please let us know, and we'd be happy to promote your paper/talk etc.

If you find brainmapper useful, and use it in your research, please cite the paper outlining the cell detection algorithm:

Tyson, A. L., Rousseau, C. V., Niedworok, C. J., Keshavarzi, S., Tsitoura, C., Cossell, L., Strom, M. and Margrie, T. W. (2021) “A deep learning algorithm for 3D cell detection in whole mouse brain image datasets’ PLOS Computational Biology, 17(5), e1009074 https://doi.org/10.1371/journal.pcbi.1009074

If you use any of the image registration functions in brainmapper, please also cite brainreg.

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_workflows-1.4.1.tar.gz (24.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brainglobe_workflows-1.4.1-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file brainglobe_workflows-1.4.1.tar.gz.

File metadata

  • Download URL: brainglobe_workflows-1.4.1.tar.gz
  • Upload date:
  • Size: 24.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for brainglobe_workflows-1.4.1.tar.gz
Algorithm Hash digest
SHA256 f8149979ffa85ebc9626507f14ee44570a6e3c1e6a6bc62ea3ea17fcdb0a2a66
MD5 1f9df194d0f795407f3ce9b95cae8332
BLAKE2b-256 cc58037264bed6333ecfe24ba3c819a0bfc9d496bb8bcb32e5a1d74d449ecbbe

See more details on using hashes here.

File details

Details for the file brainglobe_workflows-1.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for brainglobe_workflows-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5f40710e7c29e746518bb32f4d617f1627e1b204a6f979aa8b10417cce31eb0c
MD5 8ef9f3ed2a0e4f11a7e28d0ba0514baf
BLAKE2b-256 7477f6fb7e8c9008ca3c3511e3abbd812c972b0d2f7825f154ebee6547b4a09c

See more details on using hashes here.

Supported by

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