Skip to main content

Documentation | Join our Discord community

PyPI version Documentation Status Tests Linting Discord

brainsets is a Python package for processing neural data into a standardized format.

Installation

brainsets is available for Python 3.10+

To install the package, run the following command:

pip install brainsets

List of available brainsets

brainset_id Documentation Raw Data Size Processed Data Size
churchland_shenoy_neural_2012 Link 46 GB 25 GB
flint_slutzky_accurate_2012 Link 3.2 GB 151 MB
odoherty_sabes_nonhuman_2017 Link 22 GB 26 GB
pei_pandarinath_nlb_2021 Link 688 KB 22 MB
perich_miller_population_2018 Link 13 GB 2.9 GB
kemp_sleep_edf_2013 Link 8.2 GB 60 GB
neuroprobe_2025 Link 138 GB 257 GB
allen_visual_coding_ophys_2016 Link 356 GB 58 GB
vollan_moser_alternating_2025 Link 16.4 GB 4.5 GB

Acknowledgements

This work is only made possible thanks to the public release of these valuable datasets by the original researchers. If you use any of the datasets processed by brainsets in your research, please make sure to cite the appropriate original papers and follow any usage guidelines specified by the dataset creators. Proper attribution not only gives credit to the researchers who collected and shared the data but also helps promote open science practices in the neuroscience community. You can find the original papers and usage guidelines for each dataset in the brainsets documentation.

Using the brainsets CLI

Configuring data directories

First, configure the directories where brainsets will store raw and processed data:

brainsets config set

You will be prompted to enter the paths to the raw and processed data directories.

$> brainsets config set
Enter raw data directory: ./data/raw
Enter processed data directory: ./data/processed

You can update the configuration at any time by running the config set command again.

To view the current configuration:

brainsets config show

Listing available datasets

You can list the available datasets by running the list command:

brainsets list

Preparing data

You can prepare a dataset by running the prepare command:

brainsets prepare <brainset>

Data preparation involves downloading the raw data from the source then processing it, following a set of rules defined in pipelines/<brainset>/.

For example, to prepare the Perich & Miller (2018) dataset, you can run:

brainsets prepare perich_miller_population_2018 --cores 8

Contributing

If you are planning to contribute to the package, you can install the package in development mode by running the following command:

pip install -e ".[dev]"

Install pre-commit hooks:

pre-commit install

Unit tests are located under test/. Run the entire test suite with

pytest

or test individual files via, e.g., pytest test/test_enum_unique.py

Cite

Please cite our paper if you use this code in your own work:

@inproceedings{
    azabou2023unified,
    title={A Unified, Scalable Framework for Neural Population Decoding},
    author={Mehdi Azabou and Vinam Arora and Venkataramana Ganesh and Ximeng Mao and Santosh Nachimuthu and Michael Mendelson and Blake Richards and Matthew Perich and Guillaume Lajoie and Eva L. Dyer},
    booktitle={Thirty-seventh Conference on Neural Information Processing Systems},
    year={2023},
}

Metadata

Release files for brainsets 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brainsets 0.2.2
File Size Uploaded
brainsets-0.2.2.tar.gz 910.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for brainsets 0.2.2
File Interpreter ABI Platform
brainsets-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / brainsets-0.2.2.tar.gz

Download URL brainsets-0.2.2.tar.gz
Size 910.7 kB
Tags Source
SHA-256 checksum
How to use checksums
83568934d1725ffcf16809fd1fa491967bf2eae4ba222593e2896de4a93261da
BLAKE2b-256 checksum
How to use checksums
b5f9ca771646194cecd449e73aac218feedf7bb10ed15614ab13ab36d468badd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 1, 2026.

Transparency log

Release files / brainsets-0.2.2-py3-none-any.whl

Download URL brainsets-0.2.2-py3-none-any.whl
Size 141.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99c7abe59dee72281fb782c81d69346422adc77f5dca38b3dae65b39e0813967
BLAKE2b-256 checksum
How to use checksums
4c2410ae1e5a7af46f7b63395d921d883ef1fb041674157189dbeabdb468108e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 1, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page