Skip to main content

Voxcell is a small library to handle probability distributions that have a spatial component and to use them to build collection of cells in space.

Project description

Overview

This is a library to build circuits and atlases. It contains tools to handle

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:

https://zenodo.org/badge/451807050.svg

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

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

voxcell-3.1.10.tar.gz (226.9 kB view details)

Uploaded Source

Built Distribution

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

voxcell-3.1.10-py3-none-any.whl (37.1 kB view details)

Uploaded Python 3

File details

Details for the file voxcell-3.1.10.tar.gz.

File metadata

  • Download URL: voxcell-3.1.10.tar.gz
  • Upload date:
  • Size: 226.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for voxcell-3.1.10.tar.gz
Algorithm Hash digest
SHA256 7f3abcb91fb237d1229b6e270df707d5a52d61f58609d116840897cefb7bb2fb
MD5 219615cae4dc28d10dd9aa22307c4d73
BLAKE2b-256 a29154531dcb07c6b2432f82828d09712260723871c073c09a86b2abf426aff0

See more details on using hashes here.

Provenance

The following attestation bundles were made for voxcell-3.1.10.tar.gz:

Publisher: publish-sdist.yml on openbraininstitute/voxcell

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file voxcell-3.1.10-py3-none-any.whl.

File metadata

  • Download URL: voxcell-3.1.10-py3-none-any.whl
  • Upload date:
  • Size: 37.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for voxcell-3.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 46c74718c653c8ceaad5c4f82fcb9bf4f68e9a7237f46035c86ba6b9d9b27a9b
MD5 04e780f8bb109cf076f5f6d06b4d595f
BLAKE2b-256 5c4ef0f4e3a9a0e48765a7e094f8857e5c32880e6a1b91bd6f857ed98d956363

See more details on using hashes here.

Provenance

The following attestation bundles were made for voxcell-3.1.10-py3-none-any.whl:

Publisher: publish-sdist.yml on openbraininstitute/voxcell

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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