Skip to main content

A neuron morphology IO library

Project description

doc/source/logo/BBP-MorphIO.jpg

license documentation status

MorphIO

Documentation

MorphIO documentation is built and hosted on readthedocs.

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

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-2022 Blue Brain Project/EPFL

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.4.tar.gz (508.1 kB view details)

Uploaded Source

Built Distributions

MorphIO-3.3.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

MorphIO-3.3.4-cp310-cp310-win_amd64.whl (520.2 kB view details)

Uploaded CPython 3.10 Windows x86-64

MorphIO-3.3.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

MorphIO-3.3.4-cp310-cp310-macosx_10_13_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.10 macOS 10.13+ x86-64

MorphIO-3.3.4-cp39-cp39-win_amd64.whl (520.3 kB view details)

Uploaded CPython 3.9 Windows x86-64

MorphIO-3.3.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

MorphIO-3.3.4-cp39-cp39-macosx_10_13_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.9 macOS 10.13+ x86-64

MorphIO-3.3.4-cp38-cp38-win_amd64.whl (520.3 kB view details)

Uploaded CPython 3.8 Windows x86-64

MorphIO-3.3.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

MorphIO-3.3.4-cp38-cp38-macosx_10_13_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.8 macOS 10.13+ x86-64

MorphIO-3.3.4-cp37-cp37m-win_amd64.whl (522.6 kB view details)

Uploaded CPython 3.7m Windows x86-64

MorphIO-3.3.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

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

MorphIO-3.3.4-cp37-cp37m-macosx_10_13_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.7m macOS 10.13+ x86-64

File details

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

File metadata

  • Download URL: MorphIO-3.3.4.tar.gz
  • Upload date:
  • Size: 508.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for MorphIO-3.3.4.tar.gz
Algorithm Hash digest
SHA256 b70c6884e9b835560501f798c75c9cc7eaf3162cba1d930b5a9b854bb9ea60dc
MD5 0ea82e2695e65ce1d8eaf5f292802425
BLAKE2b-256 0216a076b65ba94d2d13909948b29eb8448b5a637e8a42861eca02af22ba871d

See more details on using hashes here.

File details

Details for the file MorphIO-3.3.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for MorphIO-3.3.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d274dae3c73eece5bc8afea4ed6d794521af7b3e116b6006e7afc7ad862d29e3
MD5 b8f87a1ef595b50d550dbbd466de940b
BLAKE2b-256 3f6b14029561d6b9f64f903872deaad961d89a5039865b143d4c60668e78f7f9

See more details on using hashes here.

File details

Details for the file MorphIO-3.3.4-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: MorphIO-3.3.4-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 520.2 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for MorphIO-3.3.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7f240ad7abdad4630d4bc4097f7ba0ecf9bbe698c657cf3c092774f2a77c35d8
MD5 e747ade2838c5b38de58901b2e328850
BLAKE2b-256 fd20c13648449e85955ab18a168d99157388e9d322394bf266c0bde2e9875924

See more details on using hashes here.

File details

Details for the file MorphIO-3.3.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for MorphIO-3.3.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3fb3e16d8540def9a5905637c96dbf13e66cc65a3805ff63dfd7e0e871e81323
MD5 d43541f3e355ae4ef2686f2d2a89d369
BLAKE2b-256 0ed89f972a32f17c1cfa1f48ce88addd0704c66f5164d3f65affa1e6ed6d23eb

See more details on using hashes here.

File details

Details for the file MorphIO-3.3.4-cp310-cp310-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for MorphIO-3.3.4-cp310-cp310-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 da6671752fecab72b1612feca8b13f89ad66c13a57db385a8029cf44a1c22c7d
MD5 f814869a2021a3cf753d3b37f3f61543
BLAKE2b-256 fd3e9ccede256ec0e44c92478bc560883b0c26de64e61fa6a9af9d06c163e2e3

See more details on using hashes here.

File details

Details for the file MorphIO-3.3.4-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: MorphIO-3.3.4-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 520.3 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for MorphIO-3.3.4-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 087bcb43ae7ffeb8d0d8dfe11843207898d6141f224875687222faf2668544f4
MD5 f02d48753587b933a0842a144381d7c2
BLAKE2b-256 de8ec7bf041c7ec66996713f933eb231c780ab59782bfad236292dd3eed3c958

See more details on using hashes here.

File details

Details for the file MorphIO-3.3.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for MorphIO-3.3.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 51eb0bddae338bddb6b1d6d33997b78f4b7161cca0da356774c3d1bf252f88c2
MD5 962253b42016666161b62f783c42790e
BLAKE2b-256 e7a10a86df8f9ba00e9ad83e81b965caa4cb874472031e8a8d68795a82948bd7

See more details on using hashes here.

File details

Details for the file MorphIO-3.3.4-cp39-cp39-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for MorphIO-3.3.4-cp39-cp39-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 7bdc23c1d01e506395bdc9c10207eb54e0a0b43177aec3e43ea97611dee1c1ec
MD5 dfc4e5138161c8b6ba3ce7ac1dc777ab
BLAKE2b-256 a4c699116f90fafcd75d6c24f2aa30447c9d2f4cec0e1e666f16f535a584c2c9

See more details on using hashes here.

File details

Details for the file MorphIO-3.3.4-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: MorphIO-3.3.4-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 520.3 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for MorphIO-3.3.4-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ead1c731970a65a583b3650e2d0a729e5506905484ef53ed6a840c493960b566
MD5 e25070c0e0f22063c333939b9fd873e5
BLAKE2b-256 b8294c91c671e99a3862eca94f40dac07ab20664bfc13e6afdf851868477fe00

See more details on using hashes here.

File details

Details for the file MorphIO-3.3.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for MorphIO-3.3.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d3e487694fffe34e5516de2f1bf6e7a094301597a07e46217f82b288f63476f3
MD5 26b946187d774785e4d15d4558e6f7ac
BLAKE2b-256 d68117f24d6c376624fefaba8fc434594d8430c33859fe0c6851eef81cb240b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for MorphIO-3.3.4-cp38-cp38-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 8abc3135281ec250d8babfac7cd033105dffb5dbbd3a08d297b7e6cecb1d7312
MD5 8e8e67a625260570827b3fd01eb7f2f0
BLAKE2b-256 732a4128a6ef2d102d1504558833bac810af5b395b0e8c1f7529848b05746360

See more details on using hashes here.

File details

Details for the file MorphIO-3.3.4-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: MorphIO-3.3.4-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 522.6 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for MorphIO-3.3.4-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 619dd7e4a47ede14fbc2f37d7e6f40e1de2cf597a1fe55ca203b58901f6bc038
MD5 72da42fd02131d3b0ad16a0f572f46c8
BLAKE2b-256 9e550be7a969adaaff7359870dc81b51aedfd749d34428dcdfdc452202575f95

See more details on using hashes here.

File details

Details for the file MorphIO-3.3.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for MorphIO-3.3.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d0ad1d6f56b56eba86a5c40109c82f68215a41b9d7c1868d2b889719b1287f02
MD5 0ffa92e8a1a84d04889c5b01a3957120
BLAKE2b-256 a7849754fa9457f5ec096beab425a3382c91da3ee654c4fd028207ce4cf47ae5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for MorphIO-3.3.4-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 96c296cdbb2df7c71ec26ae79ddb00c206fc1c627979a2b43e9b9133b61aa843
MD5 5643c0025bacc9180f52c8fc41f35ed3
BLAKE2b-256 97a1bff32c06b6f3e482dd8e323e63f5219b7ee0f2c92956c3f2b94bc49ec9b1

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