Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

MVDTool-2.4.10.dev0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

MVDTool-2.4.10.dev0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

MVDTool-2.4.10.dev0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

MVDTool-2.4.10.dev0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

File details

Details for the file MVDTool-2.4.10.dev0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for MVDTool-2.4.10.dev0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f8f00384151a8ab95b60f65eb259caea8436f1fa149a3669d1bbf58e005f05e8
MD5 0b6210fbbaf0edd107509881db4a2422
BLAKE2b-256 b311353ac9a0d236e8171df97a93597e9dd2661f743b3c7d37327d69932b7127

See more details on using hashes here.

File details

Details for the file MVDTool-2.4.10.dev0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for MVDTool-2.4.10.dev0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aa46a31bfc7cfc03f62ca60b7319ebbf84f55c0c47cbe7ec524c7471820faf4f
MD5 9b49da0e185957247bd9cc098627d123
BLAKE2b-256 4c50bb554330248e2129ea92621fc9f72e44772672c89135382f1fdb3ba4a1a0

See more details on using hashes here.

File details

Details for the file MVDTool-2.4.10.dev0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for MVDTool-2.4.10.dev0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 32c9e6c6b3ee0f34fd03c00d5ea6c9e5a42e43c307d6a063b3105f0b74fb2324
MD5 341bdd4aa9d7756bc70277edc9741830
BLAKE2b-256 8faa945a3dfb9bb6e41d9bd2897b0df1bf3f801fd5872f75b978f210080e0ab1

See more details on using hashes here.

File details

Details for the file MVDTool-2.4.10.dev0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for MVDTool-2.4.10.dev0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 97e7c76ab5e4d2d48c0c560de95d8eec40482361c0dec63a3848da118e73f76c
MD5 874b7318d41493ebdd15786ba9e8acfd
BLAKE2b-256 bafb92fa56c5e68f70c1c77b80e834f2cc1db8ec5a9bf106f5e9dd7bd4baf103

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