annotate pre_sartools.xml @ 3:de6d0b7c17af draft

release 1.6.3
author lgueguen
date Mon, 01 Oct 2018 05:07:56 -0400
parents 581d217c7337
children 05c9b1a7f44e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
1 <tool id="presartools" name="Preprocess files for SARTools" version="0.1.0">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
2 <description>generate design/target file and archive for SARTools inputs</description>
3
de6d0b7c17af release 1.6.3
lgueguen
parents: 0
diff changeset
3 <stdio>
de6d0b7c17af release 1.6.3
lgueguen
parents: 0
diff changeset
4 <regex match="WARNING:galaxy.model:Datatype class not found" level="warning"/>
de6d0b7c17af release 1.6.3
lgueguen
parents: 0
diff changeset
5 </stdio>
0
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
6 <command interpreter="python">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
7 pre_sartools.py
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
8 --outfile=$outfile
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
9 --outarch=$outarch
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
10 #if $batch_condition.condition:
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
11 --batch $batch_condition.condition
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
12 #for $i, $input in enumerate ( $batch_condition.levels ):
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
13 #for $j, $input_rep in enumerate ($input.rep_counts ):
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
14 --inputs "${input.level_name}" "${input_rep.count_data}" "${input_rep.label}" "${input_rep.batch_value}"
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
15 #end for
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
16 #end for
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
17 #else:
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
18 --batch NULL
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
19 #for $i, $input in enumerate ( $batch_condition.levels ):
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
20 #for $j, $input_rep in enumerate ($input.rep_counts ):
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
21 --inputs "${input.level_name}" "${input_rep.count_data}" "${input_rep.label}"
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
22 #end for
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
23 #end for
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
24 #end if
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
25
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
26 </command>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
27 <inputs>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
28 <conditional name="batch_condition">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
29 <param name="condition" type="boolean" checked="false" truevalue="batch" falsevalue="NULL" label="Add a blocking factor" help="Adjustment variable to use as a batch effect (default no)."/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
30 <when value="NULL">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
31 <repeat name="levels" title="Group" min="2">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
32 <param name="level_name" type="text" format="txt" value="group1" label="Group name">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
33 <sanitizer>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
34 <valid initial="string.letters,string.digits">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
35 <add value="_" />
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
36 </valid>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
37 <mapping initial="none">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
38 <add source=" " target="_"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
39 </mapping>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
40 </sanitizer>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
41 </param>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
42 <repeat name="rep_counts" title="Raw counts" min="2">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
43 <param name="count_data" type="data" format="txt" label="Replicate raw count"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
44 <param name="label" format="txt" type="text" value="replicate1" label="Replicate label name" help="You need to specify an unique label name for your replicates.">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
45 <sanitizer>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
46 <valid initial="string.letters,string.digits">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
47 <add value="_" />
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
48 </valid>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
49 <mapping initial="none">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
50 <add source=" " target="_"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
51 </mapping>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
52 </sanitizer>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
53 </param>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
54 </repeat>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
55 </repeat>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
56 </when>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
57 <when value="batch">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
58 <repeat name="levels" title="level" min="2">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
59 <param name="level_name" type="text" format="txt" value="group1" label="Group name">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
60 <sanitizer>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
61 <valid initial="string.letters,string.digits">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
62 <add value="_" />
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
63 </valid>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
64 <mapping initial="none">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
65 <add source=" " target="_"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
66 </mapping>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
67 </sanitizer>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
68 </param>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
69 <repeat name="rep_counts" title="Raw counts" min="2">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
70 <param name="count_data" type="data" format="txt" label="Replicate raw count"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
71 <param name="label" format="txt" type="text" value="replicate1" label="Replicate label name" help="You need to specify an unique label name for your replicates.">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
72 <sanitizer>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
73 <valid initial="string.letters,string.digits">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
74 <add value="_" />
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
75 </valid>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
76 <mapping initial="none">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
77 <add source=" " target="_"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
78 </mapping>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
79 </sanitizer>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
80 </param>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
81 <param name="batch_value" format="txt" type="text" value="day1" label="Blocking factor"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
82 </repeat>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
83 </repeat>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
84 </when>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
85 </conditional>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
86 </inputs>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
87
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
88 <outputs>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
89 <data format="tabular" name="outfile" label="design file for SARTools (on ${on_string})" />
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
90 <data format="no_unzip.zip" name="outarch" label="counts files for SARTools (on ${on_string})"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
91 </outputs>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
92 <tests>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
93 <test>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
94 <param name="levels_0|level_name" value="group1"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
95 <param name="levels_0|rep_counts_0|count_data" value="group1_count1.txt"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
96 <param name="levels_0|rep_counts_0|label" value="group1_rep1"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
97 <param name="levels_0|rep_counts_1|count_data" value="group1_count2.txt"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
98 <param name="levels_0|rep_counts_1|label" value="group1_rep2"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
99 <param name="levels_1|level_name" value="group2"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
100 <param name="levels_1|rep_counts_0|count_data" value="group2_count1.txt"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
101 <param name="levels_1|rep_counts_0|label" value="group2_rep1"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
102 <param name="levels_1|rep_counts_1|count_data" value="group2_count2.txt"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
103 <param name="levels_1|rep_counts_1|label" value="group2_rep2"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
104 <output name="outfile" file="test_output_target.html"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
105 </test>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
106 </tests>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
107 <help>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
108 -----------
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
109 Description
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
110 -----------
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
111 * This tool creates a target file and an archive to use in input of SARTools.
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
112 * For details about SARTools, please visit https://github.com/PF2-pasteur-fr/SARTools.
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
113 * The count file must be outcoming from htseq-count or RSEM
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
114
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
115 * In input of SARTools, don't change the "factor of interest", by default is group but you need to change the "Reference biological condition" in order to correspond to one name of the groups.
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
116 * If you add a blocking factor, you need to specify it in "Advanced Parameters" of SARTools
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
117 </help>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
118 </tool>