Python bindings to the MVD3 neuroscience file format
Project description
MVD-tool
Information
A simple C++ parser and tool for the MVD3 and Sonata neuroscience file formats
- provide a tool to convert MVD2 to MVD3
- provide a tool to export MVD to CSV
- provide a simple header base parser for MVD2
- provide a parser based on the HighFive library for MVD3 and Sonata
It also provides a high level Python API for parsing MVD3 and Sonata files.
Compilation
Prerequisites
- CMake >= 3.0
- GCC >= 4.9
- BOOST >= 1.41
- HighFive
- libSONATA
Compile and Install the C++ parser
mkdir build; pushd build
cmake ../ -DCMAKE_INSTALL_PREFIX=<install_dir>
make
make install
Compile and Install the Python API
python setup.py install
Examples with the Python API
Reading Sonata files
import mvdtool
node = mvdtool.open("tests/nodes.h5")
# retrieve data for the full range
node.morphologies()
# retrieve data for a certain range
node.morphologies([0, 1, 3])
Reading MVD3 files
import mvdtool
mvd = mvdtool.open("tests/circuit.mvd3")
mvd.morphologies()
Certain attributes in MVD files require the information from the mecombo file. In this case, it's strictly necessary that the mecombo file contains all combos from the MVD file.
mvd_tsv = mvdtool.open("tests/circuit_tsv.mvd3")
mvd_tsv.open_combo_tsv("tests/mecombo_emodel.tsv")
mvd_tsv.emodels()
Funding & Acknowledgment
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.
Copyright © 2015-2022 Blue Brain Project/EPFL
License
LGPLv2.1+
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 Distributions
Built Distributions
Hashes for MVDTool-2.4.11.dev0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57f6e305ffed9ba37be5ff8e4979cb124608149b82bf2dc6319f04bc9383b217 |
|
MD5 | 0e43cd4c7432b2cbedeca4c0e89ce6ea |
|
BLAKE2b-256 | 58c9fda0a1724877286c4a40c6cc44b663eb140ec75ad2a387631b25a81bbb80 |
Hashes for MVDTool-2.4.11.dev0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4509ac3d4c030fb47007fa6f5ca97e98a309b3ff37420ea02721ac33902bef7d |
|
MD5 | ee7da13fc8b3e4802b676d2a03657dcb |
|
BLAKE2b-256 | 8a9aaddc1b8084c6376e5a389e9decf8dc1448f0e15dfb7dc1b6d589e6b5f573 |
Hashes for MVDTool-2.4.11.dev0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44fe3580066c2a5f4e0872eb6dfb5f3cd9ec8b30c4dae879011fcc09b050678d |
|
MD5 | 3eef0faef25f9f94be309774d3ad3c1f |
|
BLAKE2b-256 | 373573a985681ab274846e3758144b5fc16939739d07a15ec3eff1d62cc8488c |
Hashes for MVDTool-2.4.11.dev0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7db431f57f3fa9596fda55bbc69b75ec786409ae0cea41f16ba2eb96b9cdbc04 |
|
MD5 | 9218a7a3380eb93ba43d2b91275fe552 |
|
BLAKE2b-256 | d56f2c08bc5fb81eec68a2edad83f247fd0f6f4aa256b4f8a6db2d11a457b10a |