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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.8

MorphIO-3.1.1-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.1-cp37-cp37m-manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.7m

MorphIO-3.1.1-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.1-cp36-cp36m-manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.6m

MorphIO-3.1.1-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.1.tar.gz.

File metadata

  • Download URL: MorphIO-3.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 ad9f0e363f09f03c6eda54f5f3b006d204236677d2f2c9675421e0441033a503
MD5 fa708787b788ea31cc18b15951174b94
BLAKE2b-256 324b79df869c835b0dba44f5274daa1380961a128bd901aa700098cb949d44ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: MorphIO-3.1.1-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.1-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 167ec42497c59120d166cccfe5b37015ad24ef5520f405ebf224e759d1c2446e
MD5 0a2137c7a4e134fb5c5330a5f0ce9a95
BLAKE2b-256 70c22e3a456a787f4e17ff31d4ae68a62a0cae280c9865d600aeced37f12bd38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: MorphIO-3.1.1-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.1-cp38-cp38-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 1bd091e143890fcaad1efe6cb475271b9cae614261d8161d1cc9d588659ed341
MD5 63fc28715c7a38afe795dc1884869c29
BLAKE2b-256 198f5c982ece58714a0654b42b1f59ad2175607beee70dd4c1b09b3dbf19d418

See more details on using hashes here.

File details

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

File metadata

  • Download URL: MorphIO-3.1.1-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.1-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b74b99329d96cb81b042520549ea1c10faa076f0e12780888f8e6153672635d1
MD5 ce00f1fb3000789667b74cecb30c758f
BLAKE2b-256 d871e75faef19edb8e8ebf8f279d9dd14bc3737f9bc3c81dd69b452bfec2d803

See more details on using hashes here.

File details

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

File metadata

  • Download URL: MorphIO-3.1.1-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.1-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 5fb98ea1d65592629a5d0bf4ac1ecebb84c6227d30c2b7003e13888b56189411
MD5 1115161a9bfe9e5d1ca88dccdb9bba36
BLAKE2b-256 69b121f49c0908cfc375243a2a5e56ffa3a78e3f88202fac81f689e0ab5ae044

See more details on using hashes here.

File details

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

File metadata

  • Download URL: MorphIO-3.1.1-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.1-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 05bebc7ee95daf7c4b1c1b8e22db7d78c18f3cf4410bf4ed80c11a8fabb13576
MD5 44efd77e0de8d9510df15da54be6e17b
BLAKE2b-256 a6e859611c4d8b7a0e4dc125a61010b8151e5b5affc1b52b04778e6d4a1b3bf4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: MorphIO-3.1.1-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.1-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 c2d635c7ae94b6dbc534cde2d19fe569dcdc3f6c21ec0a15c81816e2dbae3ce0
MD5 d77b5403513ba32c5fdb08d717d01cb7
BLAKE2b-256 48dc7a4a709f9335882dfdf05e1a527e952f711627363dd4b76aac559360ec97

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