NeuroML2#
NeuroML2 is an XML-based, community standard for
describing neuronal models — including detailed morphologies — in a
simulator-independent way. braincell reads the morphology portion through
braincell.io.NeuroMlReader.
Loading#
from braincell.io import NeuroMlReader
reader = NeuroMlReader()
morpho = reader.read("neuron.cell.nml")
The reader extracts the segment groups and cable geometry from the NeuroML2
document and returns a standard braincell.Morphology, which you then
decorate and simulate like any other.
Note
braincell reads NeuroML2 morphology. Channel and network definitions in a
NeuroML2 document are not imported automatically — declare mechanisms with
braincell.mech as usual (see Mechanisms).
See also#
SWC and Neurolucida ASC — the other supported morphology formats.
braincell.io module — the full IO reference.