Skip to content

Commit

Permalink
- added sensible defaults to example models
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Jun 24, 2014
1 parent fc4e8ac commit 5f32c8d
Show file tree
Hide file tree
Showing 16 changed files with 130 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,4 @@ pip-log.txt

# Mac crap
.DS_Store
/examples/private
5 changes: 1 addition & 4 deletions SpatialUI/spatialmainwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include <SpatialSBML/datahelper.hh>


#include <QApplication>
#include <QtGui>
#include <QObject>
Expand All @@ -24,7 +23,6 @@
#include <QStatusBar>



#include <sbml/SBMLTypes.h>
#include <sbml/packages/spatial/extension/SpatialSpeciesRxnPlugin.h>
#include <sbml/packages/spatial/extension/SpatialModelPlugin.h>
Expand All @@ -37,6 +35,7 @@
#include <stdlib.h>
#endif // USE_SBW_INTEGRATION

#define SPATIAL_ANNOTATION_URL "http://fbergmann.github.io/spatial-sbml/settings"


using namespace std;
Expand Down Expand Up @@ -653,8 +652,6 @@ XMLNode* getAnnotationNode(Model* model, const std::string& ns)
return NULL;
}

#define SPATIAL_ANNOTATION_URL "http://spatial-sbml/settings"

void SpatialMainWindow::initializeDisplay(Model* model)
{

Expand Down
9 changes: 9 additions & 0 deletions examples/The_Brusselator.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<sbml xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:req="http://www.sbml.org/sbml/level3/version1/requiredElements/version1" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1" level="3" version="1" req:required="false" spatial:required="true">
<model id="The_Brusselator_Application0" name="The Brusselator_Application0">
<annotation>
<spatialInfo xmlns="http://fbergmann.github.io/spatial-sbml/settings">
<update step="0.1" freq="50"/>
<items>
<item sbmlId="X" name="black-blue.txt" max="6"/>
<item sbmlId="Y" name="black-green.txt" max="6"/>
</items>
</spatialInfo>
</annotation>
<listOfUnitDefinitions>
<unitDefinition id="substance">
<listOfUnits>
Expand Down
11 changes: 10 additions & 1 deletion examples/The_Brusselator_300x300.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<sbml xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:req="http://www.sbml.org/sbml/level3/version1/requiredElements/version1" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1" level="3" version="1" req:required="false" spatial:required="true">
<model id="The_Brusselator_Application0" name="The Brusselator_Application0">
<listOfUnitDefinitions>
<annotation>
<spatialInfo xmlns="http://fbergmann.github.io/spatial-sbml/settings">
<update step="0.1" freq="500"/>
<items>
<item sbmlId="X" name="black-blue.txt" max="6"/>
<item sbmlId="Y" name="black-green.txt" max="6"/>
</items>
</spatialInfo>
</annotation>
<listOfUnitDefinitions>
<unitDefinition id="substance">
<listOfUnits>
<unit kind="item" exponent="1" scale="0" multiplier="1"/>
Expand Down
8 changes: 8 additions & 0 deletions examples/advection.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
<sbml xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:req="http://www.sbml.org/sbml/level3/version1/requiredElements/version1" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1" level="3" version="1" req:required="false" spatial:required="true">
<model id="advection_test_simulation" name="advection_test_simulation">
<annotation>
<spatialInfo xmlns="http://spatial-sbml/settings">
<update step="0.05" freq="50"/>
<items>
<item sbmlId="B_cytosol" name="black-blue.txt" max="6"/>
<item sbmlId="C_cytosol" name="black-green.txt" max="1000"/>
<item sbmlId="A_cytosol" name="black-red.txt" max="6"/>
</items>
</spatialInfo>
<vcell:VCellInfo xmlns:vcell="http://sourceforge.net/projects/vcell">
<vcell:VCMLSpecific>
<vcell:BioModel Name="advection_test" KeyValue="62900696"/>
Expand Down
10 changes: 10 additions & 0 deletions examples/fish.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<sbml xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:req="http://www.sbml.org/sbml/level3/version1/requiredElements/version1" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1" level="3" version="1" req:required="false" spatial:required="true">
<model metaid="meta_fish_skin_pnas2_Application0" id="fish_skin_pnas2_Application0" name="fish-skin-pnas2_Application0">
<annotation>
<spatialInfo xmlns="http://fbergmann.github.io/spatial-sbml/settings">
<update step="1" freq="50"/>
<items>
<item sbmlId="u" name="black-blue.txt" max="6"/>
<item sbmlId="v" name="black-green.txt" max="6"/>
<item sbmlId="w" name="black-red.txt" max="6"/>
</items>
</spatialInfo>
</annotation>
<listOfUnitDefinitions>
<unitDefinition id="substance">
<listOfUnits>
Expand Down
10 changes: 10 additions & 0 deletions examples/fish_300x300.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<sbml xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:req="http://www.sbml.org/sbml/level3/version1/requiredElements/version1" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1" level="3" version="1" req:required="false" spatial:required="true">
<model metaid="meta_fish_skin_pnas2_Application0" id="fish_skin_pnas2_Application0" name="fish-skin-pnas2_Application0">
<annotation>
<spatialInfo xmlns="http://fbergmann.github.io/spatial-sbml/settings">
<update step="1" freq="100"/>
<items>
<item sbmlId="u" name="black-blue.txt" max="6"/>
<item sbmlId="v" name="black-green.txt" max="6"/>
<item sbmlId="w" name="black-red.txt" max="6"/>
</items>
</spatialInfo>
</annotation>
<listOfUnitDefinitions>
<unitDefinition id="substance">
<listOfUnits>
Expand Down
10 changes: 10 additions & 0 deletions examples/fish_big.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<sbml xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:req="http://www.sbml.org/sbml/level3/version1/requiredElements/version1" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1" level="3" version="1" req:required="false" spatial:required="true">
<model metaid="meta_fish_skin_pnas2_Application0" id="fish_skin_pnas2_Application0" name="fish-skin-pnas2_Application0">
<annotation>
<spatialInfo xmlns="http://fbergmann.github.io/spatial-sbml/settings">
<update step="1" freq="50"/>
<items>
<item sbmlId="u" name="black-blue.txt" max="6"/>
<item sbmlId="v" name="black-green.txt" max="6"/>
<item sbmlId="w" name="black-red.txt" max="6"/>
</items>
</spatialInfo>
</annotation>
<listOfUnitDefinitions>
<unitDefinition id="substance">
<listOfUnits>
Expand Down
8 changes: 8 additions & 0 deletions examples/transport.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
<sbml xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:req="http://www.sbml.org/sbml/level3/version1/requiredElements/version1" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1" level="3" version="1" req:required="false" spatial:required="true">
<model id="simple_transport_simulation" name="simple_transport_simulation">
<annotation>
<spatialInfo xmlns="http://fbergmann.github.io/spatial-sbml/settings">
<update step="1" freq="50"/>
<items>
<item sbmlId="s1" name="black-blue.txt" max="6"/>
<item sbmlId="s0" name="black-green.txt" max="6"/>
</items>
</spatialInfo>

<vcell:VCellInfo xmlns:vcell="http://sourceforge.net/projects/vcell">
<vcell:VCMLSpecific>
<vcell:BioModel Name="simple_transport" KeyValue="60099072"/>
Expand Down
9 changes: 9 additions & 0 deletions examples/turing.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<sbml xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:req="http://www.sbml.org/sbml/level3/version1/requiredElements/version1" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1" level="3" version="1" req:required="true" spatial:required="true">
<model metaid="COPASI1" id="New_Model_Application0" name="New Model_Application0">
<annotation>
<spatialInfo xmlns="http://fbergmann.github.io/spatial-sbml/settings">
<update step="0.07" freq="50"/>
<items>
<item sbmlId="species_1" name="black-blue.txt" max="2"/>
<item sbmlId="species_2" name="black-green.txt" max="2"/>
</items>
</spatialInfo>
</annotation>
<listOfUnitDefinitions>
<unitDefinition id="substance">
<listOfUnits>
Expand Down
9 changes: 9 additions & 0 deletions examples/turing_300x300.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<sbml xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:req="http://www.sbml.org/sbml/level3/version1/requiredElements/version1" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1" level="3" version="1" req:required="true" spatial:required="true">
<model metaid="COPASI1" id="New_Model_Application0" name="New Model_Application0">
<annotation>
<spatialInfo xmlns="http://fbergmann.github.io/spatial-sbml/settings">
<update step="0.07" freq="500"/>
<items>
<item sbmlId="species_1" name="black-blue.txt" max="2"/>
<item sbmlId="species_2" name="black-green.txt" max="2"/>
</items>
</spatialInfo>
</annotation>
<listOfUnitDefinitions>
<unitDefinition id="substance">
<listOfUnits>
Expand Down
9 changes: 9 additions & 0 deletions examples/turing_parameters-stripe.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<sbml xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:req="http://www.sbml.org/sbml/level3/version1/requiredElements/version1" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1" level="3" version="1" req:required="true" spatial:required="true">
<model metaid="COPASI1" id="New_Model_Application0" name="New Model_Application0">
<annotation>
<spatialInfo xmlns="http://fbergmann.github.io/spatial-sbml/settings">
<update step="0.05" freq="50"/>
<items>
<item sbmlId="species_1" name="black-blue.txt" max="2"/>
<item sbmlId="species_2" name="black-green.txt" max="2"/>
</items>
</spatialInfo>
</annotation>
<listOfUnitDefinitions>
<unitDefinition id="substance">
<listOfUnits>
Expand Down
9 changes: 9 additions & 0 deletions examples/turing_parameters.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<sbml xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:req="http://www.sbml.org/sbml/level3/version1/requiredElements/version1" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1" level="3" version="1" req:required="true" spatial:required="true">
<model metaid="COPASI1" id="New_Model_Application0" name="New Model_Application0">
<annotation>
<spatialInfo xmlns="http://fbergmann.github.io/spatial-sbml/settings">
<update step="0.07" freq="50"/>
<items>
<item sbmlId="species_1" name="black-blue.txt" max="2"/>
<item sbmlId="species_2" name="black-green.txt" max="2"/>
</items>
</spatialInfo>
</annotation>
<listOfUnitDefinitions>
<unitDefinition id="substance">
<listOfUnits>
Expand Down
9 changes: 9 additions & 0 deletions examples/turing_parameters_50x50.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<sbml xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:req="http://www.sbml.org/sbml/level3/version1/requiredElements/version1" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1" level="3" version="1" req:required="true" spatial:required="true">
<model metaid="COPASI1" id="New_Model_Application0" name="New Model_Application0">
<annotation>
<spatialInfo xmlns="http://fbergmann.github.io/spatial-sbml/settings">
<update step="0.07" freq="50"/>
<items>
<item sbmlId="species_1" name="black-blue.txt" max="2"/>
<item sbmlId="species_2" name="black-green.txt" max="2"/>
</items>
</spatialInfo>
</annotation>
<listOfUnitDefinitions>
<unitDefinition id="substance">
<listOfUnits>
Expand Down
9 changes: 9 additions & 0 deletions examples/turing_parameters_tiny.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<sbml xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:req="http://www.sbml.org/sbml/level3/version1/requiredElements/version1" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1" level="3" version="1" req:required="true" spatial:required="true">
<model metaid="COPASI1" id="New_Model_Application0" name="New Model_Application0">
<annotation>
<spatialInfo xmlns="http://fbergmann.github.io/spatial-sbml/settings">
<update step="0.07" freq="30"/>
<items>
<item sbmlId="species_1" name="black-blue.txt" max="2"/>
<item sbmlId="species_2" name="black-green.txt" max="2"/>
</items>
</spatialInfo>
</annotation>
<listOfUnitDefinitions>
<unitDefinition id="substance">
<listOfUnits>
Expand Down
9 changes: 9 additions & 0 deletions examples/turing_uniform.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<sbml xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:req="http://www.sbml.org/sbml/level3/version1/requiredElements/version1" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1" level="3" version="1" req:required="true" spatial:required="true">
<model metaid="COPASI1" id="New_Model_Application0" name="New Model_Application0">
<annotation>
<spatialInfo xmlns="http://fbergmann.github.io/spatial-sbml/settings">
<update step="0.07" freq="50"/>
<items>
<item sbmlId="species_1" name="black-blue.txt" max="2"/>
<item sbmlId="species_2" name="black-green.txt" max="2"/>
</items>
</spatialInfo>
</annotation>
<listOfUnitDefinitions>
<unitDefinition id="substance">
<listOfUnits>
Expand Down

0 comments on commit 5f32c8d

Please sign in to comment.