Mercurial > repos > tduigou > rpviz
annotate rpviz.xml @ 0:ea2ca40a24c5 draft
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
author | tduigou |
---|---|
date | Mon, 13 Dec 2021 17:40:42 +0000 |
parents | |
children | 8057fdd27860 |
rev | line source |
---|---|
0
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
1 <tool id="rpviz" name="Visualize pathways" version="5.10.0"> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
2 <description>Visualize pathways from the RetroPath Suite</description> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
3 <requirements> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
4 <requirement type="package" version="5.10.0">rptools</requirement> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
5 </requirements> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
6 <command detect_errors="exit_code"><![CDATA[ |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
7 #set input_folder="input_folder" |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
8 mkdir -p '$input_folder'; |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
9 #if str($input_type_conditional.input_type) == "sbml": |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
10 #for $input in $input_type_conditional.input_sbml.keys(): |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
11 ln -sf $input_type_conditional.input_sbml[$input] '$input_folder/${input}.xml'; |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
12 #end for |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
13 python -m rptools.rpviz '$input_folder' |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
14 #elif str($input_type_conditional.input_type) == "tar": |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
15 python -m rptools.rpviz '${input_type_conditional.input_tar}' |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
16 #elif str($input_type_conditional.input_type) == "single_sbml": |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
17 ln -sf '$input_type_conditional.input_single_sbml' '$input_folder/${input_type_conditional.input_single_sbml.name}'; |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
18 python -m rptools.rpviz '$input_folder' |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
19 #end if |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
20 'out' |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
21 #if $adv.cofactor_file |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
22 --cofactor '$adv.cofactor_file' |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
23 #end if |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
24 --autonomous_html '$html_file'; |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
25 rm -fr '$input_folder'; |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
26 ]]></command> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
27 <inputs> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
28 <conditional name="input_type_conditional"> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
29 <param name="input_type" type="select" label="Source SBML format"> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
30 <option value="tar" selected="True">TAR</option> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
31 <option value="sbml">Collection</option> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
32 <option value="single_sbml">single SBML</option> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
33 </param> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
34 <when value="tar"> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
35 <param name="input_tar" type="data" format="tar" label="Source SBML" /> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
36 </when> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
37 <when value="sbml"> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
38 <param name="input_sbml" type="data_collection" format="xml" collection_type="list" label="Source SBML" /> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
39 </when> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
40 <when value="single_sbml"> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
41 <param name="input_single_sbml" type="data" format="xml" label="Source SBML" /> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
42 </when> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
43 </conditional> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
44 <section name="adv" title="Advanced Options" expanded="false"> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
45 <param name="cofactor_file" type="data" format="tsv" optional="true" label="cofactor file" /> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
46 </section> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
47 </inputs> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
48 <outputs> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
49 <data name="html_file" format="html" label="Rpviz: Pathways Visualization"/> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
50 </outputs> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
51 <tests> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
52 <test> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
53 <!-- test 1: check if identical html output is produced (single sbml input) --> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
54 <conditional name="input_type_conditional"> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
55 <param name="input_type" value="single_sbml"/> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
56 <param name="input_single_sbml" value="lycopene_CrtEBI_from_selenzy.xml" /> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
57 </conditional> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
58 <output name="html_file" file="rpviz_single_output.html" compare="sim_size"/> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
59 </test> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
60 <test> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
61 <!-- test 2: check if identical html output is produced (tar input) --> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
62 <conditional name="input_type_conditional"> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
63 <param name="input_type" value="tar"/> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
64 <param name="input_tar" value="as_tar_inputs.tgz" /> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
65 </conditional> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
66 <output name="html_file" file="rpviz_tar_output.html" compare="sim_size"/> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
67 </test> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
68 </tests> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
69 <help><![CDATA[ |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
70 RPVIZ |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
71 ================ |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
72 Visualize pathways from the RetroPath Suite |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
73 |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
74 Input |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
75 ----- |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
76 |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
77 * **input_rpSBMLs**\ : (string) Input file containing rpSBML files in a tar archive or a folder. |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
78 |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
79 Output |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
80 ------ |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
81 |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
82 * **output_folder**\ : (string) Output folder to be used. If it does not exist, an attempt will be made to create it.It the creation of the folder fails, IOError will be raised. |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
83 * **autonomous_html**\ : (string) Optional file path, if provided will output an autonomous HTML containing all dependancies. |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
84 |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
85 Project Links |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
86 ------------------ |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
87 |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
88 * `GitHub <https://github.com/brsynth/rptools/tree/master/rptools/rpviz>`_ |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
89 |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
90 Version |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
91 ---------- |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
92 |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
93 5.10.0 |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
94 |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
95 License |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
96 ------- |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
97 |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
98 * `MIT <https://github.com/brsynth/rptools/blob/master/LICENSE>`_ |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
99 |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
100 ]]></help> |
ea2ca40a24c5
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
101 </tool> |