Overview
This is a library to build circuits and atlases. It contains tools to handle
“traits fields” and collections and the logic to assign them.
volumetric data within NRRD files
Cell collection access / writer.
to build, transform and handle fields of vectors and orientations.
querying Region hierarchy tree, such as the one available from the Allen Institute for Brain Science (AIBS): Mouse Brain Atlas Ontology’s StructureGraph (aka 1.json).
Installation
Install from PyPI:
pip install voxcell
Or an editable install:
git clone https://github.com/BlueBrain/voxcell
cd voxcell
pip install -e .
Examples
To use the following examples, one must download an NRRD file and the Ontology Structure:
curl -o brain_regions.nrrd http://download.alleninstitute.org/informatics-archive/current-release/mouse_ccf/annotation/ccf_2017/annotation_100.nrrd
curl -o hierarchy.json http://api.brain-map.org/api/v2/structure_graph_download/1.json
One can open NRRD files, and perform operations on them:
import voxcell
voxels = voxcell.VoxelData.load_nrrd('brain_regions.nrrd')
print(voxels.voxel_dimensions) # prints array([100., 100., 100.], dtype=float32)
One can also use the Atlas object to load at both the atlas and the hierarchy:
import numpy as np
from voxcell.nexus.voxelbrain import Atlas
atlas = Atlas.open('.')
brain_regions = atlas.load_data('brain_regions')
rm = atlas.load_region_map()
# count the number of voxels in the VIS region, and all its descendents
ids = rm.find('VIS', 'acronym', with_descendants=True)
np.count_nonzero(np.isin(brain_regions.raw, list(ids)))
Citation
When you use this software, we kindly ask you to cite the following DOI:
Acknowledgements
The development of this software was supported by funding to the Blue Brain Project, a research center of the École polytechnique fédérale de Lausanne (EPFL), from the Swiss government’s ETH Board of the Swiss Federal Institutes of Technology.
For license and authors, see LICENSE.txt and AUTHORS.txt respectively.
Copyright (c) 2022-2024 Blue Brain Project/EPFL
Metadata
Release files for voxcell 3.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| voxcell-3.1.11.tar.gz | 226.8 kB | With provenance | Details for voxcell-3.1.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| voxcell-3.1.11-py3-none-any.whl | Python 3 | none | any | Details for voxcell-3.1.11-py3-none-any.whl |
Total release size: 458.3 kB
Release files / voxcell-3.1.11.tar.gz
| Download URL | voxcell-3.1.11.tar.gz |
|---|---|
| Size | 226.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
79bfd4eda3e4ebc31fa158e14f392e14c039ba67d270ac1fb483f81a7ed9a922
|
|
BLAKE2b-256 checksum How to use checksums |
89b45bc3778c5967f9cf721e783225576f46b9db65dd64eddcc0aa34663aceb4
|
| 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 Apr 28, 2026.
Transparency logRelease files / voxcell-3.1.11-py3-none-any.whl
| Download URL | voxcell-3.1.11-py3-none-any.whl |
|---|---|
| Size | 231.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
30137a55ea50f67945d8b05b914f0e7e0daacc4ce7b80f7ce502f5ebe47ef3ea
|
|
BLAKE2b-256 checksum How to use checksums |
2056868db919c3bb9676457f85e29bad05c73c3e1238db2c85c562ae2df331fe
|
| 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 Apr 28, 2026.
Transparency logSecurity for voxcell 3.1.11
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for voxcell-3.1.11.tar.gz
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 Apr 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.