annotate rpreport.xml @ 2:432623008c84 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 2333b7b56422febf439cd9f4cd3e6eda858b2690
author tduigou
date Tue, 28 Mar 2023 12:10:56 +0000
parents a1764894d6ca
children a03d4c0887cc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
1 <tool id="rptools_rpreport" name="Pathways HTML Report" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.09">
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
2 <description>Explore the main characteristics of pathways predicted with RetroPath suite</description>
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
3 <macros>
2
432623008c84 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 2333b7b56422febf439cd9f4cd3e6eda858b2690
tduigou
parents: 0
diff changeset
4 <import>macros.xml</import>
0
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
5 </macros>
2
432623008c84 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 2333b7b56422febf439cd9f4cd3e6eda858b2690
tduigou
parents: 0
diff changeset
6 <expand macro="requirements"/>
0
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
8 #if str($input_type_conditional.input_type) == "sbml":
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
9 #set input_folder="tmp_folder"
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
10 mkdir -p '$input_folder' &&
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
11 #for $input in $input_type_conditional.input_sbml.keys():
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
12 ln -sfn $input_type_conditional.input_sbml[$input] '$input_folder/$input' &&
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
13 #end for
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
14 python -m rptools.rpreport -d '$input_folder'
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
15 #elif str($input_type_conditional.input_type) == "tar":
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
16 python -m rptools.rpreport '${input_type_conditional.input_tar}'
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
17 #end if
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
18 '$html_file.files_path'
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
19 && cp '$html_file.files_path'/index.html '$html_file'
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
20 ]]></command>
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
21 <inputs>
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
22 <conditional name="input_type_conditional">
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
23 <param name="input_type" type="select" label="Source SBML format">
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
24 <option value="tar" selected="True">TAR</option>
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
25 <option value="sbml">Collection</option>
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
26 </param>
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
27 <when value="tar">
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
28 <param name="input_tar" type="data" format="tar" label="Source SBML" help="rpSBML file(s) containing pathways predicted with RetroPath suite in TAR format"/>
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
29 </when>
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
30 <when value="sbml">
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
31 <param name="input_sbml" type="data_collection" format="sbml" collection_type="list" label="Source SBML" help="Collection of rpSBML files containing pathways predicted with RetroPath suite"/>
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
32 </when>
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
33 </conditional>
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
34 </inputs>
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
35 <outputs>
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
36 <data name="html_file" format="html" label="Pathways HTML Report"/>
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
37 </outputs>
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
38 <tests>
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
39 <test>
2
432623008c84 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 2333b7b56422febf439cd9f4cd3e6eda858b2690
tduigou
parents: 0
diff changeset
40 <!-- test 1: check if identical html output is produced (tar input) -->
0
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
41 <conditional name="input_type_conditional">
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
42 <param name="input_type" value="tar"/>
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
43 <param name="input_tar" value="input_rpSBML.tar" />
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
44 </conditional>
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
45 <output name="html_file" file="rpreport_output.html" compare="diff"/>
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
46 </test>
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
47 </tests>
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
48 <help><![CDATA[
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
49 rpReport
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
50 =========
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
51
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
52 Generates HTML pages to explore the main characteristics (thermodynamics,
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
53 fluxes, number of metabolic steps, reaction rule score) of pathways predicted
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
54 with `RetroPath suite <https://www.sciencedirect.com/science/article/pii/S1096717617301337>`_.
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
55
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
56
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
57 Input
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
58 -----
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
59
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
60 Required:
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
61
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
62 * **Source SBML**: rpSBML file(s) containing pathways predicted with RetroPath suite.
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
63
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
64 Output
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
65 ------
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
66
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
67 * **Pathways HTML Report**: Pathways HTML Report
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
68 ]]></help>
2
432623008c84 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 2333b7b56422febf439cd9f4cd3e6eda858b2690
tduigou
parents: 0
diff changeset
69 <expand macro="creator"/>
432623008c84 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 2333b7b56422febf439cd9f4cd3e6eda858b2690
tduigou
parents: 0
diff changeset
70 <citations>
432623008c84 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 2333b7b56422febf439cd9f4cd3e6eda858b2690
tduigou
parents: 0
diff changeset
71 <citation type="doi">10.1038/s41467-022-32661-x</citation>
432623008c84 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 2333b7b56422febf439cd9f4cd3e6eda858b2690
tduigou
parents: 0
diff changeset
72 </citations>
0
a1764894d6ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
tduigou
parents:
diff changeset
73 </tool>