BlueBrain / morph-tool

https://morph-tool.readthedocs.org/
GNU Lesser General Public License v3.0
8 stars 7 forks source link

dendrite subtypes handling #70

Open arnaudon opened 3 years ago

arnaudon commented 3 years ago

For various project, it is convenient to have a way to assign sub sectiontypes to morphologies, based on a particular point (apical point, or 'axon point'). This is an attempt to provide such a little tool via the SectionType.custom[number] of morphio. One set the subtypes, then use the provided dict to access specific section via names (trunk, oblique) instead of custom[number], then can unset them to return to original morphology (for example after some manipulations, to be able to save it on disc).

It is a bit of a mix-up between neurom and morphio, I'm open to any suggestions to make this cleaner.