A neuron morphology IO library
Project description
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 Apache License 2.0. See LICENSE.txt for further details.
Copyright (c) 2013-2024 Blue Brain Project/EPFL
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for morphio-3.3.10-cp313-cp313-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 686ec28d3d4999e3396647b73001b5890618b6c1811dd73e20122996637eb508 |
|
MD5 | 0f26c5cfa0b868dde1cc5e4ca5a31d77 |
|
BLAKE2b-256 | 5a4600964b6163db79f86043fee22e1a96d4712fe0c77e4a3778ca97cca6aae7 |
Hashes for morphio-3.3.10-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a25a8d10311b086271c4edefa5b2dcf3e216ac71fb54cbbd286e1bdf87e6aa05 |
|
MD5 | 68549a9b0b5e7dcdbb1dc0bbdfd18c19 |
|
BLAKE2b-256 | 7caeaee3e370d81ae189d920cf0a5831f4e605a93f302ecb3beafecab7d37aab |
Hashes for morphio-3.3.10-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 611ef5fbb3a542c660b161c4675afd02652eb6de825ea879be57192c20d88a5a |
|
MD5 | 20d20dc53ece2e61e75b05f371ea9805 |
|
BLAKE2b-256 | a5a38a9f44acfad790cf0c0bfa1515835c0a69e36a4ff4d88a5556c895dbd0dd |
Hashes for morphio-3.3.10-cp313-cp313-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14580b5f7d893da62eaa1b411cd01ac89502668d06249caca960d0a3adbd4adb |
|
MD5 | d5cd088fdfc72748b7b4f4396bda1e1e |
|
BLAKE2b-256 | 3d0ebc09070be9135d74db1fb300b627703142d5a8a26c3d6b0e67ac0ad975f3 |
Hashes for morphio-3.3.10-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ca9f73d9166f30c4b0954be60bdb7f746e80d05661361f82f9f6c05ff02b339 |
|
MD5 | d4f773cbf35686a173d4ecd1c1633314 |
|
BLAKE2b-256 | 3dae783518e9adf62783fceade8a0bfd3c121eefc564b7c38e9390f135ffd1e6 |
Hashes for morphio-3.3.10-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b416e37b9a47a8245dea243f92ceb0057d3d8e2c0c52194a23c7ce87cbd55d9 |
|
MD5 | bc4ba2a81b53e00d03754ac0a559ea2f |
|
BLAKE2b-256 | 5780dfb397029107cdc27b9ebf8308b1dd3494fc53a8def5dbd0ce61de24578c |
Hashes for morphio-3.3.10-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 230f211c0e76cd12ac2abbf5be00edb830ed1284d40fd674726565a776028966 |
|
MD5 | 09fbfcdfe8c7df03b44bd92df6effe6d |
|
BLAKE2b-256 | 366a1bdc76ecce2bf54f0e041f007fb60673702714297391e24b47fb37544c17 |
Hashes for morphio-3.3.10-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4225e9c9a4ee9429fd029b15babfab3701a3183e986af29aedfdec31ccac5d1f |
|
MD5 | 1bb722d8c44557336ebcb8addfcf5133 |
|
BLAKE2b-256 | 6252544bd7165cdd9ea90cb504ac8fa8083a0edbac5e75d8cff54100ebc5053f |
Hashes for morphio-3.3.10-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5121e1a3798e2ceeee25ecb9c814f526e51ece140866ae154f1a98035f6bdf28 |
|
MD5 | 6c56746aeabf994170af2e81d3e90f83 |
|
BLAKE2b-256 | fc46d0e81a0917d0d79a485f5b596aa88b53eb253eecc2e8b9b57432ca34edcd |
Hashes for morphio-3.3.10-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47ab469832658b51cb988a53e797ac40c0c7dbb781797ebeda7d5ff903108a47 |
|
MD5 | 72c9495955bbc60037177a64afe6aee1 |
|
BLAKE2b-256 | 300fe3eb34bd015b9ddb3e65ea15a11b796fc2ac4c34165ba079b486b45b9260 |
Hashes for morphio-3.3.10-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef5730f4b254d1d674fb2b3d79dda657208616cc8e1a19dad0d2023e161f0d5d |
|
MD5 | a2e34fcb09095f881abd5661f485ce5a |
|
BLAKE2b-256 | d470b154078a8d4eb4651c76e7ce89730cf671000b5b5f16cdf794d2cb211832 |
Hashes for morphio-3.3.10-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a68a29640d53b1170e8e588d68d74ac3b88ab959e87937597a9a97ee20239ea |
|
MD5 | 2b340198f35abe3a06bf69a91b0313bb |
|
BLAKE2b-256 | f082f337f3048fdcb95d24ae065b505b6a8cf67959483adee0146bd9a6153435 |
Hashes for morphio-3.3.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e89bc72922ba87cbf718db5ba41c3287ac94853087e278e093995ccc305b2dd1 |
|
MD5 | 01a7e93f9c56818fb189bce8e6fc943a |
|
BLAKE2b-256 | 2109d3ed719b69cd3a3a4bdba835fdab0c5c35101fe267d56e1f672ce3ec6cc3 |
Hashes for morphio-3.3.10-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4077d2055312ae00df0cc060493a1f531733f03fc9254716ede4c559a5af1f00 |
|
MD5 | 9547ac3a7a0c10f422168b830f5bfa61 |
|
BLAKE2b-256 | 0321d58440f1a5008812d4cc5ef3c6ba2e284ef5161e34033ed34681eeda3089 |
Hashes for morphio-3.3.10-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f913d29e902c61b18b071268f5c00aa4dcafb115abc0e063813ab3074b20b2ca |
|
MD5 | dd507a71644bcf3d5835372ac159c1e7 |
|
BLAKE2b-256 | bc6c3af9a5f8b16f1d905e3e3b3d6d791f82bf1b3935fc773045856a3ae9143e |
Hashes for morphio-3.3.10-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e52e3d33dc6a77150c36897e59cac0edfe3968b515254597049c9a011f2e261 |
|
MD5 | 28b336036db5d400eb30bc3cf7ea5910 |
|
BLAKE2b-256 | d6bc35ef37c23b473da4f39aa5d3f9a6530c28f14251efb5ee307bf8b222b97d |
Hashes for morphio-3.3.10-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd554ae66285432ed9b2db93d1e72b1eb1c5f5c118ed07c59f6911b085bf0742 |
|
MD5 | 21576e495853e866f57c14b6007baabd |
|
BLAKE2b-256 | 5d376643f3f65fd5213a1c837d9016ed74924c70ecdc7652253f921930f8a251 |
Hashes for morphio-3.3.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e94841a1ff26cf90a9fc9be710dc87c2be71fac06abdd80b1a0bde06a38eef57 |
|
MD5 | 8af17ca4457c97540337d1738f8e0124 |
|
BLAKE2b-256 | 413f520dd71fec9dd9811f4ac6447264de6b1d94c2fe73f833a202e76495dbba |
Hashes for morphio-3.3.10-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 991a6a0730d86976d9a1979933d51275640e83544c68a839f8964b201e1cb311 |
|
MD5 | d4ec12407599043d690716a5bdedf854 |
|
BLAKE2b-256 | b750b9ba253a646622e8341471e43ecd9d2dc296b9ea1fe3b611864761b231e9 |
Hashes for morphio-3.3.10-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c8d201363f8ddd89e12dfa68b5677d6c9e9d2f9f1b27af5dcae8effb37f3ac1 |
|
MD5 | 8446bd14969bb684c346cc99c8012f95 |
|
BLAKE2b-256 | 344119574b9efc68f342b72a2bf12e6e4763152b1dc8f28930bcd48128716d0e |
Hashes for morphio-3.3.10-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6162f1a819ea32f08b09ef39ab52d703feff032031fc28f2b157e4a7ca1c4cd0 |
|
MD5 | 0e24c8cadbedf0a1d7e5a049236c7dba |
|
BLAKE2b-256 | b9de34663ffe29d4e26e2ea2d19dc141cc8873a36676e234f99076fea36e20e2 |
Hashes for morphio-3.3.10-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13b238d2d142a9d7e5f02a39bba253a96fcad8ab9030d3bdd91c1f4b5038a158 |
|
MD5 | e6c0b280858829da1bc2471676a3ee4f |
|
BLAKE2b-256 | ce5f6771b57d21d8971ad00294d8854a140b90201f1651b003bd7ff158724257 |
Hashes for morphio-3.3.10-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2532a0d5982049dd4683fe1b86f35d889c4f53f48d75ccf5f78badec0390c965 |
|
MD5 | cb31390a10ae324b43da7791eafb762d |
|
BLAKE2b-256 | c3c24cb930dbdf2d1f96cc85dcac1c414dac4033c8c628602cd6e8c73fcab18e |
Hashes for morphio-3.3.10-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 945b167d73149324385c3ad21dfe9a317c6c8138a396972c726d1b7f98e130dc |
|
MD5 | fa2cee1d7b55e66f5bd3a5d33737f8a7 |
|
BLAKE2b-256 | 8452cc7083e1976373c0aaeb65d4557b8e87a2e36fa0a2d2c4411bb3f6318fb6 |
Hashes for morphio-3.3.10-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d903e3c496bb5921b37ee457d7733b079c27d85176a549a6c6ad66eaaaf3e0e |
|
MD5 | 17f57ae40343c555d174d56fb4e27e31 |
|
BLAKE2b-256 | ef86b79b6868ef20c93be0992791a768cfe8c08408508801843c3cf5be1a0d82 |
Hashes for morphio-3.3.10-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fb49421c9311ceeba35b4db2d0b196d1329b3f25d058b203b2be6cc0f101cde |
|
MD5 | b06f9211eab8162d238d98544f5fb072 |
|
BLAKE2b-256 | 0e6933e124bac439a6f39760e453f2634a0c3b74f5cfa85ec13de37241fcc739 |