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.4.0-cp313-cp313-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad1c82db0952198380f4203694d5bde400699f1c7217663ecff43a1d22f76ef8 |
|
MD5 | ca2ae9d5011da80efc4c1ed57a5c1c63 |
|
BLAKE2b-256 | 4a446b1d2494f3fb3fde8d9eb0a70bbf6268d5c23c4e8d9b86d1d29883c4a6f1 |
Hashes for morphio-3.4.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a706f13fe018965b6f912a5028afebf789e1d95c932f63332d5aca879b3d052 |
|
MD5 | 0dc5c7c44ff5f1bc42cc9a49fcc28f5f |
|
BLAKE2b-256 | 3e3c947dc7ed680bf22aed6b7de9c246199f32e54f9709de5aa3336da5b3b8c4 |
Hashes for morphio-3.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fc118aaae0e91ba7b5618d61176bca48b088f97a5ad55df616988684924727b |
|
MD5 | 9a0d300cba5772a1f06cf4838d2da02f |
|
BLAKE2b-256 | 76255672d153f69cbd7adaad9ebb6e4c10f7f80abd3b90bfd7ea6cd5801ea549 |
Hashes for morphio-3.4.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 975a97b2e6e54fb1612312ce8d80a314e92c8455b1383bfcf9508e7fa4be7520 |
|
MD5 | f2b29ff07b77b0f691341e528ec1643e |
|
BLAKE2b-256 | 4cc60df2e046bbe507c51e33a70cf3247790c89c6dcafadd5dcad6cb9dcf8369 |
Hashes for morphio-3.4.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7cab2f4974c5b80b943db64ceea00753343f6960074def23d501078b670c3d6 |
|
MD5 | a0162d97357958df11626fd74e7c2abc |
|
BLAKE2b-256 | e46af7f74cf4021d8995c26550602176e599e9ae04bc62697a3853e1d28a432f |
Hashes for morphio-3.4.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f39020ee90661fbeaa37c374cc53952543911cfa7335d6d3965cbd3a174b36a7 |
|
MD5 | 8b50574e924281147df9da1b7d977a67 |
|
BLAKE2b-256 | 2870ebe8a4b7aeaddbc88a100bcfe4be80627d92517c742f44b10c5002c81f5a |
Hashes for morphio-3.4.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4eda8d9dce0767b19e06d9c14de51dc6efff88167aa7dd44e391074f1bc9762 |
|
MD5 | d4e4b9c7f4a3f876274f2e168a2c6175 |
|
BLAKE2b-256 | 909ddb40ed71f0bc1f0f3c6e43db72e08d21c69e139e626cbeb360a7fc4982cd |
Hashes for morphio-3.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffa46ef76125c6186f05c7fe7dea2ed6e568284a8b50a3a9813418ecd88ccc1b |
|
MD5 | 9686f78e40dbff59b10d6eafab131ea2 |
|
BLAKE2b-256 | 311a5b04312ea3873fc2b8e912ad215c5d6782207b69090944f9e5ac69e6e99a |
Hashes for morphio-3.4.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 813bac61152990349a91dbd509942a217d38f8dce48e619b69b331abcc55b6e4 |
|
MD5 | dd36001b4e091efa43649781ad043fa6 |
|
BLAKE2b-256 | 54d1b3519c67d6dfa240f60ca973f73d7429bcba1a72d46e6c2e2e78c95c8246 |
Hashes for morphio-3.4.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ab0aa1d73a48f527acc8c02a0b1637ab444d362cc25c1285ee66f6ec0790145 |
|
MD5 | 383ed5744c0ae11b932d0304b3828eb0 |
|
BLAKE2b-256 | b336ce3556f17bd2e5405ddd57b7b9ee78753b08869bc765d176a61af088f79c |
Hashes for morphio-3.4.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e678166a21fda041b1b6f192e1f7b576234633d0e154839b7d45a8b4960c02c8 |
|
MD5 | 1a08b2de240267ba6602fe4085e1c852 |
|
BLAKE2b-256 | c417bb3629df71d9ec1494a8471c25302e66210d706a34280fff456b85fef00b |
Hashes for morphio-3.4.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 505d68808833700c05e90fc7f58d7f1ff8efb0320175f5f88209dd031c5103f5 |
|
MD5 | db3ccc12a5fcf368c214b026d374ffb0 |
|
BLAKE2b-256 | 5e716adf4cf5ca8156f0caed1c328b4337867bd5cd49c19e1496f473b41204e2 |
Hashes for morphio-3.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 982d7667f6497de05f940c49b39104ec9170694760b2c079cef8bfb549d213c6 |
|
MD5 | 82712bcb7ff90d82047bc8535aa1cb72 |
|
BLAKE2b-256 | b03e37b2f39f623f344be9f2aef2fb6e9b7fef005a9ca98fc1de5f5226b8ff71 |
Hashes for morphio-3.4.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5b66a31d56c8f3d96925d0a0844ff46fe95bef2b70bcd32d7f663c0040a1279 |
|
MD5 | c3b857f835166da26346641dadfee418 |
|
BLAKE2b-256 | 2f47f6d02a33e9fc6b32db8eb72e12c639b340fa2d878f6d5d3dd849ce0842aa |
Hashes for morphio-3.4.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8196ae5c4b6a5c147d3af359aa019ae9551e56612ed2ce2700c8e0ee9ca527a4 |
|
MD5 | 82dae2b7f138d3b740db4a20b3bbacd5 |
|
BLAKE2b-256 | c6051175907724fdb5a9b90c806ea99929f85727a07211bb7357224e7e36f09f |
Hashes for morphio-3.4.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca5daa4bde9aa47211243fdd1ac1a7aafbce4baeb60c018e44e87a73cd4931a2 |
|
MD5 | 0b15c0f2c1c53affdfb7d4ad7185921d |
|
BLAKE2b-256 | 19972e3938c5efa6b8219102e4c8af009c855a566d4a16bea2936fc3e7347aab |
Hashes for morphio-3.4.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca5f253b49e099b7913d1f68e558c5b4e36c0f170cccceac37ced544d2438afd |
|
MD5 | 93298e1f5fff46587637e57ab53e3ed5 |
|
BLAKE2b-256 | 0dd6b7391905070ea0ae84f52f1151878fb2f32ad24058e0d1515e50c3ad7f87 |
Hashes for morphio-3.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa0ab81d6668a7f97a40b72c152d8477379d34660fa1f832e22578812e587c87 |
|
MD5 | 9b83c8a2dcd1bda7067c43ffaea2d5d9 |
|
BLAKE2b-256 | 297d22f0a7fcf7d9c6018953a82c1eb8b84437670d4c729649c58ae9642a9b98 |
Hashes for morphio-3.4.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ab274a9391859fbfb6bb970b6917136d8a32191b310bd44f47d714a726a2f4a |
|
MD5 | 715d252362493b1546a75bd64dad99da |
|
BLAKE2b-256 | 2f3db12bd3776de46d857d64f44b6ea0c144bc642fc79cf779e0776665136800 |
Hashes for morphio-3.4.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 031b65edd3ced739e5611ed8f57ea0bd82e9438cfed70ecc65ff4a64ce051b9c |
|
MD5 | 5d5a9ad288a16e1f535377973039e0bd |
|
BLAKE2b-256 | 1f6c1309d33aae95e9ee35c4ee98f662fd87ec95f4d3423635078f2120fc7ae3 |
Hashes for morphio-3.4.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6464e622a82892fc78836064e769d28843d96f5334a2bd3e58819ccd685d5ac3 |
|
MD5 | f48d69a15165aada4ced746237dcb178 |
|
BLAKE2b-256 | e4fe4e5ff6fe610581d5ab5b4d03094388cd7a5efab328e9d63111091eb70381 |
Hashes for morphio-3.4.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5af4b1b4d472cde322433a95211e002f3cec4bebd22deb3e04116fdbaec3dfac |
|
MD5 | 4591e0217a68dd9b9c8ae1297df0ef50 |
|
BLAKE2b-256 | 34484f598bdfd684208b9dcbd71d7f91d3d3184c409198088ec66f8e6e39bcdf |
Hashes for morphio-3.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 784abf27b724e8c4218e029fc8706aa5387e20709c0ede43fd7ae46376f9455f |
|
MD5 | 87975a793a2093f9e581a1df9ee623f6 |
|
BLAKE2b-256 | 744d1986a03d13ef47647d5b1bc13c7c58bfebf59514402d072e8ba85bab9974 |
Hashes for morphio-3.4.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bba995ee37fc1357b7f9a58eafacae6f0128b49b10a337dbf9ece7e8453496ee |
|
MD5 | 5ec474489216960a448c83e228b766ce |
|
BLAKE2b-256 | c3cbcc376159a19491479ecaafc062a3acc415566a149f529a2793e8293df3f8 |
Hashes for morphio-3.4.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18f1ab6542b41c3c95762b1da218135dbee34065aafb4d01cfd2b214ad332069 |
|
MD5 | 9b5c9f08ef0f748a34d8a25e25287236 |
|
BLAKE2b-256 | 60595db241dc5cb888ee5099fee832bc5a98db47696148a904ea181bb081e3e4 |
Hashes for morphio-3.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22e5361b071422d96b6ddbe008179aeb5077eee2879cf4ff7f72c065fe25af24 |
|
MD5 | f00aa07c1a98e4620e90bae1f7a64ca7 |
|
BLAKE2b-256 | 5143179392da3ec2ee391b491e3284e4f980c4b2b51ad47346095a448ac469af |