comparison rpviz.xml @ 0:bf6f117ef632 draft

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