neuroConstruct
neuroConstruct copied to clipboard
Fix import of NMLv1 morphs when proximal&distal sepecified for every segment
Following file gives errors when imported using:
./nC.sh -neuroml ../temp/neuronal-circuit.xml
neuronal-circuit.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Exported from CATMAID (http://catmaid.org) on Fri 26 Jul 2013 02:57:05 PM EDT -0400 -->
<neuroml xmlns="http://morphml.org/neuroml/schema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:net="http://morphml.org/networkml/schema" xmlns:mml="http://morphml.org/morphml/schema" xmlns:meta="http://morphml.org/metadata/schema" xmlns:bio="http://morphml.org/biophysics/schema" xmlns:cml="http://morphml.org/channelml/schema" xsi:schemaLocation="http://morphml.org/neuroml/schema http://www.neuroml.org/NeuroMLValidator/NeuroMLFiles/Schemata/v1.8.1/Level3/NeuroML_Level3_v1.8.1.xsd" length_units="micrometer">
<cells>
<cell name="18873153">
<segments xmlns="http://morphml.org/morphml/schema">
<segment id="2" name="2" cable="1">
<proximal x="450.16" y="584.8" z="53.1" diameter="0.04"/>
<distal x="447.653333333" y="584.746666667" z="53.1" diameter="0.04"/>
</segment>
<segment id="3" name="3" parent="2" cable="1">
<proximal x="447.653333333" y="584.746666667" z="53.1" diameter="0.04"/>
<distal x="445.04" y="584.96" z="53.1" diameter="0.04"/>
</segment>
<segment id="5" name="5" parent="3" cable="4">
<proximal x="445.04" y="584.96" z="53.1" diameter="0.04"/>
<distal x="442.933333333" y="583.546666667" z="53.1" diameter="0.04"/>
</segment>
<segment id="6" name="6" parent="5" cable="4">
<proximal x="442.933333333" y="583.546666667" z="53.1" diameter="0.04"/>
<distal x="439.84" y="582.24" z="53.1" diameter="0.04"/>
</segment>
</segments>
<cables xmlns="http://morphml.org/morphml/schema">
<cable id="1" name="1" fract_along_parent="1.0"> <meta:group>arbor_group</meta:group></cable>
<cable id="4" name="4" fract_along_parent="1.0"> <meta:group>arbor_group</meta:group></cable>
</cables>
</cell>
</cells>
<populations xmlns="http://morphml.org/networkml/schema">
<population name="18873153" cell_type="18873153"><instances size="1"> <instance id="0"><location x="0" y="0" z="0"/></instance></instances> </population>
</populations>
</neuroml>
Error:
ERROR: More than one spherical/zero length segment!! - Segment: 2 is spherical/zero length (has end point=start point) - Segment: 5 is spherical/zero length (has end point=start point) ERROR: Problems with some of the spherical/zero length segments!! - Segment: 5 is spherical/zero length, but is not in the soma group!