Skip to main content

A neuron morphology IO library

Project description

.. image:: doc/source/logo/BBP-MorphIO.jpg

|license| |build| |docs|

MorphIO

Documentation

MorphIO documentation is built and hosted on readthedocs <http://morphio.readthedocs.org/>_.

  • latest snapshot <http://morphio.readthedocs.org/en/latest/>_
  • latest release <http://morphio.readthedocs.org/en/stable/>_

Introduction

MorphIO is a library for reading and writing neuron morphology files. It supports the following formats:

  • SWC
  • ASC (aka. neurolucida)
  • H5 v1
  • H5 v2 is not supported anymore, see H5v2_

It provides 3 C++ classes that are the starting point of every morphology analysis:

  • Soma: contains the information related to the soma.

  • Section: a section is the succession of points between two bifurcations. To the bare minimum the Section object will contain the section type, the position and diameter of each point.

  • Morphology: the morphology object contains general information about the loaded cell but also provides accessors to the different sections.

One important concept is that MorphIO is split into a read-only part and a read/write one.

H5v2

Starting at version 2.6.0, the file format h5v2 is no longer supported. If you have morphologies in this format, you can convert them to h5v1 with:

.. code-block:: bash

pip install "morphio<2.6" "morph-tool==2.3.0"

and then:

.. code-block:: bash

single file, OUTPUT must end with .h5

morph-tool convert file INPUTFILE OUTPUT

bulk conversion

morph-tool convert folder -ext h5 INPUTDIR OUTPUTDIR

Contributing

If you want to improve the project or you see any issue, every contribution is welcome. Please check the contribution guidelines <https://github.com/BlueBrain/morphio/blob/master/CONTRIBUTING.md>_ for more information.

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.

This research was supported by the EBRAINS research infrastructure, funded from the European Union’s Horizon 2020 Framework Programme for Research and Innovation under the Specific Grant Agreement No. 945539 (Human Brain Project SGA3).

License

MorphIO is licensed under the terms of the GNU Lesser General Public License version 3. Refer to COPYING.LESSER and COPYING for details.

Copyright (c) 2013-2021 Blue Brain Project/EPFL

.. |license| image:: https://img.shields.io/pypi/l/morphio :target: https://github.com/BlueBrain/morphio/blob/master/COPYING.LESSER

.. |build| image:: https://travis-ci.com/BlueBrain/MorphIO.svg?token=KRP9rHiV52PC6mX3ACXp&branch=master :target: https://travis-ci.com/BlueBrain/MorphIO :alt: Build Status

.. |docs| image:: https://readthedocs.org/projects/morphio/badge/?version=latest :target: https://morphio.readthedocs.io/ :alt: documentation status

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

MorphIO-3.3.3.tar.gz (455.2 kB view hashes)

Uploaded source

Built Distributions

MorphIO-3.3.3-cp310-cp310-win_amd64.whl (516.9 kB view hashes)

Uploaded cp310

MorphIO-3.3.3-cp39-cp39-win_amd64.whl (517.1 kB view hashes)

Uploaded cp39

MorphIO-3.3.3-cp38-cp38-win_amd64.whl (517.0 kB view hashes)

Uploaded cp38

MorphIO-3.3.3-cp37-cp37m-win_amd64.whl (517.3 kB view hashes)

Uploaded cp37

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page