annotate rpviz.xml @ 1:8057fdd27860 draft default tip

planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
author tduigou
date Fri, 18 Nov 2022 16:39:23 +0000
parents ea2ca40a24c5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
1 <tool id="rpviz" name="Visualize pathways" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.09">
0
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
2 <description>Visualize pathways from the RetroPath Suite</description>
1
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
3 <macros>
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
4 <token name="@VERSION_SUFFIX@">0</token>
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
5 <token name="@TOOL_VERSION@">6.0.1</token>
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
6 </macros>
0
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
7 <requirements>
1
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
8 <requirement type="package" version="@TOOL_VERSION@">rptools</requirement>
0
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
9 </requirements>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
10 <command detect_errors="exit_code"><![CDATA[
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
11 #set input_folder="input_folder"
1
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
12 mkdir -p '$input_folder' &&
0
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
13 #if str($input_type_conditional.input_type) == "sbml":
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
14 #for $input in $input_type_conditional.input_sbml.keys():
1
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
15 ln -sf $input_type_conditional.input_sbml[$input] '$input_folder/${input}.xml' &&
0
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
16 #end for
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
17 python -m rptools.rpviz '$input_folder'
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
18 #elif str($input_type_conditional.input_type) == "tar":
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
19 python -m rptools.rpviz '${input_type_conditional.input_tar}'
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
20 #elif str($input_type_conditional.input_type) == "single_sbml":
1
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
21 ln -sf '$input_type_conditional.input_single_sbml' '$input_folder/${input_type_conditional.input_single_sbml.name}' &&
0
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
22 python -m rptools.rpviz '$input_folder'
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
23 #end if
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
24 'out'
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
25 #if $adv.cofactor_file
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
26 --cofactor '$adv.cofactor_file'
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
27 #end if
1
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
28 --autonomous_html '$html_file' &&
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
29 rm -fr '$input_folder'
0
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
30 ]]></command>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
31 <inputs>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
32 <conditional name="input_type_conditional">
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
33 <param name="input_type" type="select" label="Source SBML format">
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
34 <option value="tar" selected="True">TAR</option>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
35 <option value="sbml">Collection</option>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
36 <option value="single_sbml">single SBML</option>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
37 </param>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
38 <when value="tar">
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
39 <param name="input_tar" type="data" format="tar" label="Source SBML" />
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
40 </when>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
41 <when value="sbml">
1
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
42 <param name="input_sbml" type="data_collection" format="sbml" collection_type="list" label="Source SBML" />
0
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
43 </when>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
44 <when value="single_sbml">
1
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
45 <param name="input_single_sbml" type="data" format="sbml" label="Source SBML" />
0
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
46 </when>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
47 </conditional>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
48 <section name="adv" title="Advanced Options" expanded="false">
1
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
49 <param name="cofactor_file" type="data" format="tsv" optional="true" label="Cofactor file" help="File listing structures to consider as cofactors."/>
0
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
50 </section>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
51 </inputs>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
52 <outputs>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
53 <data name="html_file" format="html" label="Rpviz: Pathways Visualization"/>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
54 </outputs>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
55 <tests>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
56 <test>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
57 <!-- test 1: check if identical html output is produced (single sbml input) -->
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
58 <conditional name="input_type_conditional">
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
59 <param name="input_type" value="single_sbml"/>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
60 <param name="input_single_sbml" value="lycopene_CrtEBI_from_selenzy.xml" />
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
61 </conditional>
1
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
62 <output name="html_file" >
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
63 <assert_contents>
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
64 <has_size value="1296252" delta="100" />
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
65 </assert_contents>
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
66 </output>
0
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
67 </test>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
68 <test>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
69 <!-- test 2: check if identical html output is produced (tar input) -->
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
70 <conditional name="input_type_conditional">
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
71 <param name="input_type" value="tar"/>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
72 <param name="input_tar" value="as_tar_inputs.tgz" />
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
73 </conditional>
1
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
74 <output name="html_file" >
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
75 <assert_contents>
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
76 <has_size value="1604488" delta="100" />
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
77 </assert_contents>
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
78 </output>
0
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
79 </test>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
80 </tests>
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
81 <help><![CDATA[
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
82 RPVIZ
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
83 ================
1
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
84
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
85 Visualize pathways from the `RetroPath Suite <https://www.sciencedirect.com/science/article/pii/S1096717617301337>`_.
0
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
86
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
87 Input
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
88 -----
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
89
1
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
90 Required:
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
91
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
92 * **Source SBML**\ : Input file containing rpSBML files in a tar archive, collection or single file.
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
93
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
94 Optional:
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
95
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
96 * **Cofactor file**\ : File listing structures to consider as cofactors.
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
97
0
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
98 Output
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
99 ------
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
100
1
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
101 * **Pathways Visualization**\ : HTML output for pathway's visualization.
0
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
102
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
103 Project Links
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
104 ------------------
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
105
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
106 * `GitHub <https://github.com/brsynth/rptools/tree/master/rptools/rpviz>`_
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
107
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
108 License
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
109 -------
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
110
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
111 * `MIT <https://github.com/brsynth/rptools/blob/master/LICENSE>`_
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
112
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
113 ]]></help>
1
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
114 <creator>
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
115 <person givenName="Thomas" familyName="Duigou" email="thomas.duigou@inrae.fr" identifier="https://orcid.org/0000-0002-2649-2950" />
8057fdd27860 planemo upload commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents: 0
diff changeset
116 </creator>
0
ea2ca40a24c5 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
117 </tool>