Python library for Neurovolume. Build VDBs for scientific visualizations
Project description
Neurovolume is a Python library for manipulating and visualizing volumetric data. It includes a custom-built, scientific data-focused, VDB writer. The VDB writer is written in Zig with no external dependencies. Currently some NIfTI1 files can be parsed natively.
While this project focuses on neuroscience, it includes ndarray to VDB to support virtually any volumetric data pipeline.
This project is very much a work in progress. (see "Missing Features" below). As of now, I do not recommend regarding the images created by this software as scientifically accurate.
🏗️ Usage
#todo
📀 Projects
- BoldViz: a Blender plugin for fMRI and MRI visualizations. It was used to create the renders in this README. A great place to start if you don't want to deal with writing any Python.
- Neurovolume Examples and Physarum include some good starting points for how one might use this library with numpy. The nibabel example shows how to use an external NIfTI parser, which could be of use for not-yet-supported filetypes.
☁️ Why VDB?
VDBs are a highly performant, art-directable, volumetric data structure that supports animations. Our volume-based approach aims to provide easy access to the original density data throughout the visualization and analysis pipeline. Unlike the openVDB repo, our smaller version is much more readable and does not need to be run in a docker container.
🛠️ Missing Features
While a comprehensive road-map will be published soon, there are a few important considerations to take into account now.
- Presently the VDB writer isn't sparse nor does it support multiple grids. Tiles and multiple grids are in development.
- Neurovolume currently only natively supports
NIfTI1files (and only some variants). Full coverage andNIfTI2will be supported soon. Until then, you can use anndarrayas an intermediary (see Python Usage). - Frame interpolation (present in the original Go prototype) is currently under development on this branch. If you wish to access the old Go code, check out the archive
- Documentation has not been written yet.
🧠 Dataset Citation
This software was tested using the following datasets.
Isaac David and Victor Olalde-Mathieu and Ana Y. Martínez and Lluviana Rodríguez-Vidal and Fernando A. Barrios (2021). Emotion Category and Face Perception Task Optimized for Multivariate Pattern Analysis. OpenNeuro. [Dataset] doi: 10.18112/openneuro.ds003548.v1.0.1
Direct Download Link for T1 Anat test file
Direct Download Link for BOLD test file
The MNI Template can be found Here
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file neurovolume-0.1.0a9.tar.gz.
File metadata
- Download URL: neurovolume-0.1.0a9.tar.gz
- Upload date:
- Size: 486.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22390cb0d9e4a6e48ccca9533f99e72691c7e1db9fb4364b253f99b16967036e
|
|
| MD5 |
4c08d34b3770a80f0725e1a020536796
|
|
| BLAKE2b-256 |
fd97f7ebed7235d866def9ff4935a112f9b0dfd6227c190ff72746f27184ffe5
|
File details
Details for the file neurovolume-0.1.0a9-py3-none-any.whl.
File metadata
- Download URL: neurovolume-0.1.0a9-py3-none-any.whl
- Upload date:
- Size: 486.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0974b8bd96edc8722b3594ace1b877cb87663ecdf43bd61be181380b1e1a5da
|
|
| MD5 |
77b3e0b748f8acdce34137216f482f6b
|
|
| BLAKE2b-256 |
60d98eb715322c680d6a9200f26e8d822b380a38c7d0ac1935b0d19c1ee5ea98
|