Skip to content

Commit

Permalink
Adds option to export cells with just the <morphology> element
Browse files Browse the repository at this point in the history
FYI @sanjayankur31
Note the morphOnly cells here are mostly valid, but can't be visualised
by PlotMorphologyVispy.py
  • Loading branch information
pgleeson committed Jun 27, 2024
1 parent ae82e41 commit 13fd8d6
Show file tree
Hide file tree
Showing 14 changed files with 1,056 additions and 16 deletions.
98 changes: 98 additions & 0 deletions caseExamples/NeuroML2/Case1_new_morphOnly.cell.nml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<neuroml xmlns="http://www.neuroml.org/schema/neuroml2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.neuroml.org/schema/neuroml2 https://raw.github.com/NeuroML/NeuroML2/development/Schemas/NeuroML2/NeuroML_v2.3.1.xsd"
id="Case1_new_morphology">

<notes>
Neuronal morphology exported in NeuroML v2.3.1 from CVapp (NeuroMorpho.org version)
Original file: Case1_new.swc </notes>

<morphology id="morphology_Case1_new">

<!-- First point is of a multi point soma => not spherical! -->

<segment id="0" name="Seg_0"> <!-- "Cable" is 0-->

<!-- Cylindrical soma... -->
<proximal x="0" y="-10" z="0" diameter="20"/>
<distal x="0" y="0" z="0" diameter="20"/>
</segment>

<segment id="1" name="Seg_1"> <!-- "Cable" is 0-->
<parent segment="0"/>
<distal x="0" y="10" z="0" diameter="20"/>
</segment>

<!-- Parent point is on soma! Not creating 'real' segment -->

<segment id="2" name="Seg_2"> <!-- "Cable" is 1-->
<parent segment="0"/>
<proximal x="10" y="0" z="0" diameter="4"/>
<distal x="30" y="0" z="0" diameter="4"/>
</segment>

<segment id="3" name="Seg_3"> <!-- "Cable" is 2-->
<parent segment="2"/>
<proximal x="30" y="0" z="0" diameter="4"/>
<distal x="40" y="10" z="0" diameter="4"/>
</segment>

<segment id="4" name="Seg_4"> <!-- "Cable" is 3-->
<parent segment="2"/>
<proximal x="30" y="0" z="0" diameter="4"/>
<distal x="40" y="-10" z="0" diameter="4"/>
</segment>

<segmentGroup id="Cable_0" >
<member segment="0"/>
<member segment="1"/>
</segmentGroup>

<segmentGroup id="Cable_1" >
<member segment="2"/>
</segmentGroup>

<segmentGroup id="Cable_2" >
<member segment="3"/>
</segmentGroup>

<segmentGroup id="Cable_3" >
<member segment="4"/>
</segmentGroup>

<segmentGroup id="color_white" >
<include segmentGroup="Cable_0"/>
</segmentGroup>

<segmentGroup id="dendrite_group" >
<include segmentGroup="Cable_1"/>
<include segmentGroup="Cable_2"/>
<include segmentGroup="Cable_3"/>
</segmentGroup>

<segmentGroup id="soma_group" >
<include segmentGroup="Cable_0"/>
</segmentGroup>

<segmentGroup id="basal_dendrite" >
<include segmentGroup="Cable_1"/>
<include segmentGroup="Cable_2"/>
<include segmentGroup="Cable_3"/>
</segmentGroup>

<segmentGroup id="color_green" >
<include segmentGroup="Cable_1"/>
<include segmentGroup="Cable_2"/>
<include segmentGroup="Cable_3"/>
</segmentGroup>

<segmentGroup id="all" >
<include segmentGroup="Cable_0"/>
<include segmentGroup="Cable_1"/>
<include segmentGroup="Cable_2"/>
<include segmentGroup="Cable_3"/>
</segmentGroup>

</morphology>

</neuroml>
90 changes: 90 additions & 0 deletions caseExamples/NeuroML2/Case1_orig_morphOnly.cell.nml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<neuroml xmlns="http://www.neuroml.org/schema/neuroml2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.neuroml.org/schema/neuroml2 https://raw.github.com/NeuroML/NeuroML2/development/Schemas/NeuroML2/NeuroML_v2.3.1.xsd"
id="Case1_orig_morphology">

<notes>
Neuronal morphology exported in NeuroML v2.3.1 from CVapp (NeuroMorpho.org version)
Original file: Case1_orig.swc </notes>

<morphology id="morphology_Case1_orig">

<!-- First point is of a multi point soma => not spherical! -->

<segment id="0" name="Seg_0"> <!-- "Cable" is 0-->

<!-- Cylindrical soma... -->
<proximal x="-10" y="10" z="0" diameter="0.2"/>
<distal x="10" y="10" z="0" diameter="0.2"/>
</segment>

<segment id="1" name="Seg_1"> <!-- "Cable" is 0-->
<parent segment="0"/>
<distal x="10" y="-10" z="0" diameter="0.2"/>
</segment>

<segment id="2" name="Seg_2"> <!-- "Cable" is 0-->
<parent segment="1"/>
<distal x="-10" y="-10" z="0" diameter="0.2"/>
</segment>

<segment id="3" name="Seg_3"> <!-- "Cable" is 0-->
<parent segment="2"/>
<distal x="-10" y="10" z="0" diameter="0.2"/>
</segment>

<!-- Parent point is on soma! Not creating 'real' segment -->

<!-- Parent point is on soma! Not creating 'real' segment -->

<!-- Parent point is on soma! Not creating 'real' segment -->

<!-- Parent point is on soma! Not creating 'real' segment -->

<segmentGroup id="Cable_0" >
<member segment="0"/>
<member segment="1"/>
<member segment="2"/>
<member segment="3"/>
</segmentGroup>

<segmentGroup id="dendrite_group" >
<include segmentGroup="Cable_1"/>
<include segmentGroup="Cable_2"/>
<include segmentGroup="Cable_3"/>
<include segmentGroup="Cable_4"/>
</segmentGroup>

<segmentGroup id="soma_group" >
<include segmentGroup="Cable_0"/>
</segmentGroup>

<segmentGroup id="color_green" >
<include segmentGroup="Cable_1"/>
<include segmentGroup="Cable_2"/>
<include segmentGroup="Cable_3"/>
<include segmentGroup="Cable_4"/>
</segmentGroup>

<segmentGroup id="basal_dendrite" >
<include segmentGroup="Cable_1"/>
<include segmentGroup="Cable_2"/>
<include segmentGroup="Cable_3"/>
<include segmentGroup="Cable_4"/>
</segmentGroup>

<segmentGroup id="all" >
<include segmentGroup="Cable_0"/>
<include segmentGroup="Cable_1"/>
<include segmentGroup="Cable_2"/>
<include segmentGroup="Cable_3"/>
<include segmentGroup="Cable_4"/>
</segmentGroup>

<segmentGroup id="color_white" >
<include segmentGroup="Cable_0"/>
</segmentGroup>

</morphology>

</neuroml>
87 changes: 87 additions & 0 deletions caseExamples/NeuroML2/Case2_new_morphOnly.cell.nml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<neuroml xmlns="http://www.neuroml.org/schema/neuroml2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.neuroml.org/schema/neuroml2 https://raw.github.com/NeuroML/NeuroML2/development/Schemas/NeuroML2/NeuroML_v2.3.1.xsd"
id="Case2_new_morphology">

<notes>
Neuronal morphology exported in NeuroML v2.3.1 from CVapp (NeuroMorpho.org version)
Original file: Case2_new.swc </notes>

<morphology id="morphology_Case2_new">

<segment id="0" name="Seg_0"> <!-- "Cable" is 0-->

<proximal x="0" y="0" z="0" diameter="4"/>
<distal x="0" y="0" z="0" diameter="4"/>
</segment>

<segment id="1" name="Seg_1"> <!-- "Cable" is 1-->
<parent segment="0"/>
<proximal x="0" y="0" z="0" diameter="4"/>
<distal x="20" y="0" z="0" diameter="4"/>
</segment>

<segment id="2" name="Seg_2"> <!-- "Cable" is 2-->
<parent segment="0"/>
<proximal x="0" y="0" z="0" diameter="4"/>
<distal x="0" y="20" z="0" diameter="4"/>
</segment>

<segment id="3" name="Seg_3"> <!-- "Cable" is 2-->
<parent segment="2"/>
<distal x="0" y="30" z="0" diameter="4"/>
</segment>

<segment id="4" name="Seg_4"> <!-- "Cable" is 3-->
<parent segment="0"/>
<proximal x="0" y="0" z="0" diameter="4"/>
<distal x="0" y="-20" z="0" diameter="4"/>
</segment>

<segment id="5" name="Seg_5"> <!-- "Cable" is 3-->
<parent segment="4"/>
<distal x="0" y="-30" z="0" diameter="4"/>
</segment>

<segmentGroup id="Cable_0" >
<member segment="0"/>
</segmentGroup>

<segmentGroup id="Cable_1" >
<member segment="1"/>
</segmentGroup>

<segmentGroup id="Cable_2" >
<member segment="2"/>
<member segment="3"/>
</segmentGroup>

<segmentGroup id="Cable_3" >
<member segment="4"/>
<member segment="5"/>
</segmentGroup>

<segmentGroup id="axon_group" >
<include segmentGroup="Cable_0"/>
<include segmentGroup="Cable_1"/>
<include segmentGroup="Cable_2"/>
<include segmentGroup="Cable_3"/>
</segmentGroup>

<segmentGroup id="all" >
<include segmentGroup="Cable_0"/>
<include segmentGroup="Cable_1"/>
<include segmentGroup="Cable_2"/>
<include segmentGroup="Cable_3"/>
</segmentGroup>

<segmentGroup id="color_grey" >
<include segmentGroup="Cable_0"/>
<include segmentGroup="Cable_1"/>
<include segmentGroup="Cable_2"/>
<include segmentGroup="Cable_3"/>
</segmentGroup>

</morphology>

</neuroml>
87 changes: 87 additions & 0 deletions caseExamples/NeuroML2/Case2_orig_morphOnly.cell.nml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<neuroml xmlns="http://www.neuroml.org/schema/neuroml2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.neuroml.org/schema/neuroml2 https://raw.github.com/NeuroML/NeuroML2/development/Schemas/NeuroML2/NeuroML_v2.3.1.xsd"
id="Case2_orig_morphology">

<notes>
Neuronal morphology exported in NeuroML v2.3.1 from CVapp (NeuroMorpho.org version)
Original file: Case2_orig.swc </notes>

<morphology id="morphology_Case2_orig">

<segment id="0" name="Seg_0"> <!-- "Cable" is 0-->

<proximal x="0" y="0" z="0" diameter="4"/>
<distal x="0" y="0" z="0" diameter="4"/>
</segment>

<segment id="1" name="Seg_1"> <!-- "Cable" is 1-->
<parent segment="0"/>
<proximal x="0" y="0" z="0" diameter="4"/>
<distal x="20" y="0" z="0" diameter="4"/>
</segment>

<segment id="2" name="Seg_2"> <!-- "Cable" is 2-->
<parent segment="0"/>
<proximal x="0" y="0" z="0" diameter="4"/>
<distal x="0" y="20" z="0" diameter="4"/>
</segment>

<segment id="3" name="Seg_3"> <!-- "Cable" is 2-->
<parent segment="2"/>
<distal x="0" y="30" z="0" diameter="4"/>
</segment>

<segment id="4" name="Seg_4"> <!-- "Cable" is 3-->
<parent segment="0"/>
<proximal x="0" y="0" z="0" diameter="4"/>
<distal x="0" y="-20" z="0" diameter="4"/>
</segment>

<segment id="5" name="Seg_5"> <!-- "Cable" is 3-->
<parent segment="4"/>
<distal x="0" y="-30" z="0" diameter="4"/>
</segment>

<segmentGroup id="Cable_0" >
<member segment="0"/>
</segmentGroup>

<segmentGroup id="Cable_1" >
<member segment="1"/>
</segmentGroup>

<segmentGroup id="Cable_2" >
<member segment="2"/>
<member segment="3"/>
</segmentGroup>

<segmentGroup id="Cable_3" >
<member segment="4"/>
<member segment="5"/>
</segmentGroup>

<segmentGroup id="axon_group" >
<include segmentGroup="Cable_0"/>
<include segmentGroup="Cable_1"/>
<include segmentGroup="Cable_2"/>
<include segmentGroup="Cable_3"/>
</segmentGroup>

<segmentGroup id="all" >
<include segmentGroup="Cable_0"/>
<include segmentGroup="Cable_1"/>
<include segmentGroup="Cable_2"/>
<include segmentGroup="Cable_3"/>
</segmentGroup>

<segmentGroup id="color_grey" >
<include segmentGroup="Cable_0"/>
<include segmentGroup="Cable_1"/>
<include segmentGroup="Cable_2"/>
<include segmentGroup="Cable_3"/>
</segmentGroup>

</morphology>

</neuroml>
Loading

0 comments on commit 13fd8d6

Please sign in to comment.