Skip to main content

A package for processing neural datasets

Project description

brainsets

Documentation | Paper

PyPI version Documentation Status Tests Linting

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

Installation

brainsets is available for Python 3.8 to Python 3.11

To install the package, run the following command:

pip install brainsets

Using the brainsets CLI

Configuring data directories

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

brainsets config

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

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

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

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},
}

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

brainsets-0.1.0.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

brainsets-0.1.0-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file brainsets-0.1.0.tar.gz.

File metadata

  • Download URL: brainsets-0.1.0.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.20

File hashes

Hashes for brainsets-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4674ca50c6e0c2ee94950c258d1ca4d64bf671769095fa53a71aaa5e9628416c
MD5 2c98e203504398f0cf09f7b6bc35f4aa
BLAKE2b-256 028acf27eebcf38564af8653560645f69891c1361548db008932a34da1f795e4

See more details on using hashes here.

File details

Details for the file brainsets-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: brainsets-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.20

File hashes

Hashes for brainsets-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a10ea7905178030e3b668ea84e33cf1804bbf1a0dec0e08593691abf6e08fca3
MD5 7feefb453607fc91cb225e73fc049c97
BLAKE2b-256 c39334c6ff062b9a85a026b07c16e3f99ab3a244d47d644ce9db6a6d96d5419c

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