Skip to main content

A neuron morphology IO library

Project description

license Build Status documentation status

MorphIO

Documentation

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

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:

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

and then:

# 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 for more information.

Acknowledgements

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.

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.1.0.tar.gz (3.8 MB view details)

Uploaded Source

Built Distributions

MorphIO-3.1.0-cp38-cp38-manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.8

MorphIO-3.1.0-cp38-cp38-macosx_10_13_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.8 macOS 10.13+ x86-64

MorphIO-3.1.0-cp37-cp37m-manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.7m

MorphIO-3.1.0-cp37-cp37m-macosx_10_13_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.7m macOS 10.13+ x86-64

MorphIO-3.1.0-cp36-cp36m-manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.6m

MorphIO-3.1.0-cp36-cp36m-macosx_10_13_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

File details

Details for the file MorphIO-3.1.0.tar.gz.

File metadata

  • Download URL: MorphIO-3.1.0.tar.gz
  • Upload date:
  • Size: 3.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for MorphIO-3.1.0.tar.gz
Algorithm Hash digest
SHA256 a500a3263afddce5d3b09283c49242b218f9c0f6b3f3aa97bbea5cf25aede690
MD5 3fb4cd366ad6be277b0d35dec9789ccc
BLAKE2b-256 9f7923296033cff7dffb6f3afaf986798b1ea65881ce735082db0aaa9595b425

See more details on using hashes here.

File details

Details for the file MorphIO-3.1.0-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

  • Download URL: MorphIO-3.1.0-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for MorphIO-3.1.0-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f899c7cac77db75b66da0d334f4705a89f88aae3ad46e811648e139e1a7c1b8b
MD5 ce4db5a1c7243ba00be38cc39ef5349d
BLAKE2b-256 ef4b7dca3ab727492e724bc25ceeb6e211d828841dc8fb43e66ea6f30446ce3f

See more details on using hashes here.

File details

Details for the file MorphIO-3.1.0-cp38-cp38-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: MorphIO-3.1.0-cp38-cp38-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.8, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for MorphIO-3.1.0-cp38-cp38-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 2dfe0e7154b5247e754404031caf2bcad463536e5c4f28119a3bd34c2bb593f1
MD5 4f08fab2de2aecec0ab0dbe56e214cbc
BLAKE2b-256 8c929ab17717a88b2a874d324311c72a8f8f7f77edf9e3e6335042392142272f

See more details on using hashes here.

File details

Details for the file MorphIO-3.1.0-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: MorphIO-3.1.0-cp37-cp37m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for MorphIO-3.1.0-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7277b0edcc939dfa781c7f9cad9464c74fcc595dc93c708d7d91df455de8b086
MD5 723f875684a884119af94b4edc0a6d25
BLAKE2b-256 1b1c299e4a2e4e8f39e7fb9962d7d3f737ca9cde8420e382a4e76b06e5fd04cd

See more details on using hashes here.

File details

Details for the file MorphIO-3.1.0-cp37-cp37m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: MorphIO-3.1.0-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.7m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for MorphIO-3.1.0-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 d2fb27402d52bab81f3b12859a5e45c61c3195a4cb7afa4c158ca3aa27c2fe80
MD5 e4145c0414b26a02764a4b3083188772
BLAKE2b-256 9ee71148d53720047e9546f038345b51d7c2710cf0884c162d2bbaea7fdb26cb

See more details on using hashes here.

File details

Details for the file MorphIO-3.1.0-cp36-cp36m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: MorphIO-3.1.0-cp36-cp36m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for MorphIO-3.1.0-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 01591bdc984de188e57dc8d4f0dbb8a78af18d38141eec740813a44f803b0c7d
MD5 01267702c57a275325a9f51938c0ab79
BLAKE2b-256 463f41470b8c4d6d324f736df87a3c1234f9b47b2bd165d7b246224d026d5187

See more details on using hashes here.

File details

Details for the file MorphIO-3.1.0-cp36-cp36m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: MorphIO-3.1.0-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.6m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for MorphIO-3.1.0-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 47dc1462e4c22757e3b84a52ce5e6060dc4367b763621b98b822e994fa46a1bc
MD5 f34cb7c6ccd5d33946abab14d5c2fb0c
BLAKE2b-256 17ba0191ee9ed6bc43418b90a72e5d663acaf057b0e3f410f63ae8e4c8d722bf

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