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 Distribution

MVDTool-2.4.9.tar.gz (642.2 kB view details)

Uploaded Source

Built Distribution

MVDTool-2.4.9-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

File details

Details for the file MVDTool-2.4.9.tar.gz.

File metadata

  • Download URL: MVDTool-2.4.9.tar.gz
  • Upload date:
  • Size: 642.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for MVDTool-2.4.9.tar.gz
Algorithm Hash digest
SHA256 adce0823f102bddf33e2e7dc516f31fbedc12d428c1b205ddf6976c77a2c8962
MD5 6be94d8a4761295aa5f4f05656ce58af
BLAKE2b-256 a5e22e28ff79818458f6804e756df2cb0c671df05a718ce61117930f5d2a3689

See more details on using hashes here.

File details

Details for the file MVDTool-2.4.9-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for MVDTool-2.4.9-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0b375d099e0e0c6268f8829042fe037c5a8c6be41235618887b8d4f156cb9a23
MD5 9d116a455a34d50ae23dc985d010ffc3
BLAKE2b-256 df37a5e6576c534b64e9ba32cf6cf3e73bf391b4f2905937eeb2fd2e72066480

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