From 3e29f29702a188bcffdb7e10a19839d07d64ace9 Mon Sep 17 00:00:00 2001 From: Matej Trojak Date: Wed, 14 Sep 2022 13:58:37 +0200 Subject: [PATCH 1/4] Added config files --- tools/parasim/.shed.yml | 12 ++++ tools/parasim/macros.xml | 21 ++++++ tools/parasim/test-data/base.precision.xml | 5 ++ tools/parasim/test-data/base.sim_space.xml | 6 ++ tools/parasim/test-data/lotkav.model.xml | 65 +++++++++++++++++++ .../parasim/test-data/oscil.star.formula.xml | 57 ++++++++++++++++ tools/parasim/test-data/params.init_space.xml | 6 ++ tools/parasim/test-data/result.tsv | 18 +++++ 8 files changed, 190 insertions(+) create mode 100644 tools/parasim/.shed.yml create mode 100644 tools/parasim/macros.xml create mode 100644 tools/parasim/test-data/base.precision.xml create mode 100644 tools/parasim/test-data/base.sim_space.xml create mode 100644 tools/parasim/test-data/lotkav.model.xml create mode 100644 tools/parasim/test-data/oscil.star.formula.xml create mode 100644 tools/parasim/test-data/params.init_space.xml create mode 100644 tools/parasim/test-data/result.tsv diff --git a/tools/parasim/.shed.yml b/tools/parasim/.shed.yml new file mode 100644 index 0000000..78dfc70 --- /dev/null +++ b/tools/parasim/.shed.yml @@ -0,0 +1,12 @@ +owner: sybila +remote_repository_url: "https://github.com/sybila/galaxytools/tree/main/tools/parasim" +homepage_url: "https://github.com/sybila/parasim" +categories: + - Systems Biology +repositories: + parasim: + description: "Robustness analysis of SBML model with respect to STL property." + include: + - parasim.xml + - test-data + - macros.xml diff --git a/tools/parasim/macros.xml b/tools/parasim/macros.xml new file mode 100644 index 0000000..00d8d6a --- /dev/null +++ b/tools/parasim/macros.xml @@ -0,0 +1,21 @@ + + 2.2.0 + + + + + + + + + \ No newline at end of file diff --git a/tools/parasim/test-data/base.precision.xml b/tools/parasim/test-data/base.precision.xml new file mode 100644 index 0000000..9dd2303 --- /dev/null +++ b/tools/parasim/test-data/base.precision.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/tools/parasim/test-data/base.sim_space.xml b/tools/parasim/test-data/base.sim_space.xml new file mode 100644 index 0000000..47366b3 --- /dev/null +++ b/tools/parasim/test-data/base.sim_space.xml @@ -0,0 +1,6 @@ + + + diff --git a/tools/parasim/test-data/lotkav.model.xml b/tools/parasim/test-data/lotkav.model.xml new file mode 100644 index 0000000..7d40f65 --- /dev/null +++ b/tools/parasim/test-data/lotkav.model.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + natality + prey + + + + + + + + + + + + + mortality + predator + + + + + + + + + + + + + + + + predation + prey + predator + + + + + + + diff --git a/tools/parasim/test-data/oscil.star.formula.xml b/tools/parasim/test-data/oscil.star.formula.xml new file mode 100644 index 0000000..0c73dbe --- /dev/null +++ b/tools/parasim/test-data/oscil.star.formula.xml @@ -0,0 +1,57 @@ + + + + + 0 + 300 + + + + + prey + + 1 + + + predator + + 0 + + + + + 0 + 50 + + + + + + 0 + 75 + + + prey + prey + + 25 + + + + + 0 + 75 + + + prey + prey + + 25 + + + + + + + + diff --git a/tools/parasim/test-data/params.init_space.xml b/tools/parasim/test-data/params.init_space.xml new file mode 100644 index 0000000..2c53803 --- /dev/null +++ b/tools/parasim/test-data/params.init_space.xml @@ -0,0 +1,6 @@ + + + diff --git a/tools/parasim/test-data/result.tsv b/tools/parasim/test-data/result.tsv new file mode 100644 index 0000000..83d15b8 --- /dev/null +++ b/tools/parasim/test-data/result.tsv @@ -0,0 +1,18 @@ +predator prey natality predation Robustness +80.0 40.0 0.01 1.0E-4 -12.5 +80.0 40.0 0.01 0.0012999999 -12.5 +80.0 40.0 0.01 0.0025 -12.5 +80.0 40.0 0.2575 7.0E-4 3.606793 +80.0 40.0 0.2575 0.0012999999 11.5911665 +80.0 40.0 0.2575 0.0018999999 9.342419 +80.0 40.0 0.505 1.0E-4 -12.037555 +80.0 40.0 0.505 7.0E-4 -0.9595153 +80.0 40.0 0.505 0.0012999999 -0.54846215 +80.0 40.0 0.505 0.0018999999 0.5288335 +80.0 40.0 0.505 0.0025 2.125179 +80.0 40.0 0.7525 7.0E-4 -0.9998965 +80.0 40.0 0.7525 0.0012999999 -0.99468964 +80.0 40.0 0.7525 0.0018999999 -0.95502543 +80.0 40.0 1.0 1.0E-4 -12.499986 +80.0 40.0 1.0 0.0012999999 -0.9999726 +80.0 40.0 1.0 0.0025 -0.9955077 From 5e695b315d35192d1b3273eafefff4320f62375e Mon Sep 17 00:00:00 2001 From: Matej Trojak Date: Wed, 14 Sep 2022 13:58:57 +0200 Subject: [PATCH 2/4] Update github path for eBCSgen --- tools/ebcsgen/.shed.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ebcsgen/.shed.yml b/tools/ebcsgen/.shed.yml index a4fcf5f..f6b68b1 100644 --- a/tools/ebcsgen/.shed.yml +++ b/tools/ebcsgen/.shed.yml @@ -1,5 +1,5 @@ owner: sybila -remote_repository_url: "https://github.com/sybila/galaxytools/tree/master/tools/ebcsgen" +remote_repository_url: "https://github.com/sybila/galaxytools/tree/main/tools/ebcsgen" homepage_url: "https://github.com/sybila/eBCSgen" categories: - Systems Biology From b14eb20a15790487a6b223bb9917ad4f84ab027f Mon Sep 17 00:00:00 2001 From: Matej Trojak Date: Wed, 14 Sep 2022 15:46:30 +0200 Subject: [PATCH 3/4] Added structure for parasim tool --- tools/parasim/parasim.xml | 77 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 tools/parasim/parasim.xml diff --git a/tools/parasim/parasim.xml b/tools/parasim/parasim.xml new file mode 100644 index 0000000..b427211 --- /dev/null +++ b/tools/parasim/parasim.xml @@ -0,0 +1,77 @@ + + for robustness analysis given SBML model and STL property + + + macros.xml + + + + sybila/parasim:@TOOL_VERSION@ + + + + + + + touch experiment && + echo "sbml.file=$model_file" >> experiment && + echo "stl.file=$property_file" >> experiment && + echo "simulation.precision.file=$precission_file" >> experiment && + echo "space.initial.file=$init_space_file" >> experiment && + echo "space.simulation.file=$simul_space_file" >> experiment && + echo "result.output.file=result.xml" >> experiment && + echo "timeout.amount=$timeHorizon.time" >> experiment && + echo "timeout.unit=$timeHorizon.time_unit" >> experiment && + echo "iteration.limit=$iterations" >> experiment && + echo "Experiment configuration:" && + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From cf2f019b56fd4934db9540f73db16d6a15c10062 Mon Sep 17 00:00:00 2001 From: Matej Trojak Date: Tue, 4 Oct 2022 10:24:58 +0200 Subject: [PATCH 4/4] Add error handling - not fully functional --- tools/parasim/macros.xml | 2 +- tools/parasim/parasim.xml | 63 +++++++++++++++++++++++++-------------- 2 files changed, 42 insertions(+), 23 deletions(-) diff --git a/tools/parasim/macros.xml b/tools/parasim/macros.xml index 00d8d6a..8b0e664 100644 --- a/tools/parasim/macros.xml +++ b/tools/parasim/macros.xml @@ -18,4 +18,4 @@ name="SYBILA MUNI" /> - \ No newline at end of file + diff --git a/tools/parasim/parasim.xml b/tools/parasim/parasim.xml index b427211..993809e 100644 --- a/tools/parasim/parasim.xml +++ b/tools/parasim/parasim.xml @@ -1,6 +1,5 @@ - for robustness analysis given SBML model and STL property - + robustness analysis of given SBML model and STL property macros.xml @@ -9,30 +8,39 @@ sybila/parasim:@TOOL_VERSION@ - + + + + + + + + + + + + + + + - touch experiment && - echo "sbml.file=$model_file" >> experiment && - echo "stl.file=$property_file" >> experiment && - echo "simulation.precision.file=$precission_file" >> experiment && - echo "space.initial.file=$init_space_file" >> experiment && - echo "space.simulation.file=$simul_space_file" >> experiment && - echo "result.output.file=result.xml" >> experiment && - echo "timeout.amount=$timeHorizon.time" >> experiment && - echo "timeout.unit=$timeHorizon.time_unit" >> experiment && - echo "iteration.limit=$iterations" >> experiment && - echo "Experiment configuration:" && + touch experiment + echo "sbml.file=$model_file" >> experiment + echo "stl.file=$property_file" >> experiment + echo "simulation.precision.file=$precission_file" >> experiment + echo "space.initial.file=$init_space_file" >> experiment + echo "space.simulation.file=$simul_space_file" >> experiment + echo "result.output.file=result.xml" >> experiment + echo "timeout.amount=$time_horizon.time" >> experiment + echo "timeout.unit=$time_horizon.time_unit" >> experiment + echo "iteration.limit=$iterations" >> experiment @@ -42,8 +50,7 @@ - - + @@ -65,12 +72,24 @@ + + + + + + +
+ + +
+ +