A collection of end-to-end data analysis workflows executed using BrainGlobe tools.
Project description
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 workflow scripts that are benchmarked to support code development. These benchmarks are run regularly to ensure performance is stable, as the tools are developed and extended.
- Developers can install these benchmarks locally via
pip install .[dev]
. By executingasv run
, the benchmarks will run with default parameters on a small dataset that is downloaded from GIN. See the asv docs for further details on how to run benchmarks. - Developers can also run these benchmarks on data they have stored locally, by specifying the relevant paths in an input (JSON) file.
- We also maintain an internal runner that benchmarks the workflows over a large, exemplar dataset, of the scale we expect users to be handling. The result of these benchmarks are made publicly available.
Contributions to BrainGlobe are more than welcome. Please see the developer guide.
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
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
Built Distribution
File details
Details for the file brainglobe-workflows-1.1.0.tar.gz
.
File metadata
- Download URL: brainglobe-workflows-1.1.0.tar.gz
- Upload date:
- Size: 39.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff3695d6add32891f3d9d3dc92b5f0369c7436976fe4e52f6288e1f87e45c956 |
|
MD5 | f31582a91323b549def2f4e2f28a2187 |
|
BLAKE2b-256 | 2c2c63316da6fb3b7dea22844058c8c2afe92c387a0039f8ed964336584dfd69 |
File details
Details for the file brainglobe_workflows-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: brainglobe_workflows-1.1.0-py3-none-any.whl
- Upload date:
- Size: 36.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbb4b2867d211c9f2bc8d8bcd5705137e3c094cb67d954acea6fc44bc6de6f79 |
|
MD5 | e3d67b9c63e8a4980f716d01f085a128 |
|
BLAKE2b-256 | d4e7ce8124540814aceaad9c50c8976531f4e3d9e648ecedf4f5bfe4646b777a |