annotate pre_sartools.xml @ 0:581d217c7337 draft

Planemo upload
author lgueguen
date Fri, 22 Jul 2016 05:39:13 -0400
parents
children de6d0b7c17af
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>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
3 <command interpreter="python">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
4 pre_sartools.py
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
5 --outfile=$outfile
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
6 --outarch=$outarch
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
7 #if $batch_condition.condition:
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
8 --batch $batch_condition.condition
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
9 #for $i, $input in enumerate ( $batch_condition.levels ):
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
10 #for $j, $input_rep in enumerate ($input.rep_counts ):
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
11 --inputs "${input.level_name}" "${input_rep.count_data}" "${input_rep.label}" "${input_rep.batch_value}"
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
12 #end for
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
13 #end for
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
14 #else:
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
15 --batch NULL
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
16 #for $i, $input in enumerate ( $batch_condition.levels ):
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
17 #for $j, $input_rep in enumerate ($input.rep_counts ):
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
18 --inputs "${input.level_name}" "${input_rep.count_data}" "${input_rep.label}"
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
19 #end for
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
20 #end for
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
21 #end if
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
22
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
23 </command>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
24 <inputs>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
25 <conditional name="batch_condition">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
26 <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
27 <when value="NULL">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
28 <repeat name="levels" title="Group" min="2">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
29 <param name="level_name" type="text" format="txt" value="group1" label="Group name">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
30 <sanitizer>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
31 <valid initial="string.letters,string.digits">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
32 <add value="_" />
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
33 </valid>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
34 <mapping initial="none">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
35 <add source=" " target="_"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
36 </mapping>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
37 </sanitizer>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
38 </param>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
39 <repeat name="rep_counts" title="Raw counts" min="2">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
40 <param name="count_data" type="data" format="txt" label="Replicate raw count"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
41 <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
42 <sanitizer>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
43 <valid initial="string.letters,string.digits">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
44 <add value="_" />
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
45 </valid>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
46 <mapping initial="none">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
47 <add source=" " target="_"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
48 </mapping>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
49 </sanitizer>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
50 </param>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
51 </repeat>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
52 </repeat>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
53 </when>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
54 <when value="batch">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
55 <repeat name="levels" title="level" min="2">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
56 <param name="level_name" type="text" format="txt" value="group1" label="Group name">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
57 <sanitizer>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
58 <valid initial="string.letters,string.digits">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
59 <add value="_" />
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
60 </valid>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
61 <mapping initial="none">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
62 <add source=" " target="_"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
63 </mapping>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
64 </sanitizer>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
65 </param>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
66 <repeat name="rep_counts" title="Raw counts" min="2">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
67 <param name="count_data" type="data" format="txt" label="Replicate raw count"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
68 <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
69 <sanitizer>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
70 <valid initial="string.letters,string.digits">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
71 <add value="_" />
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
72 </valid>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
73 <mapping initial="none">
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
74 <add source=" " target="_"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
75 </mapping>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
76 </sanitizer>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
77 </param>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
78 <param name="batch_value" format="txt" type="text" value="day1" label="Blocking factor"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
79 </repeat>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
80 </repeat>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
81 </when>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
82 </conditional>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
83 </inputs>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
84
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
85 <outputs>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
86 <data format="tabular" name="outfile" label="design file for SARTools (on ${on_string})" />
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
87 <data format="no_unzip.zip" name="outarch" label="counts files for SARTools (on ${on_string})"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
88 </outputs>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
89 <tests>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
90 <test>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
91 <param name="levels_0|level_name" value="group1"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
92 <param name="levels_0|rep_counts_0|count_data" value="group1_count1.txt"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
93 <param name="levels_0|rep_counts_0|label" value="group1_rep1"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
94 <param name="levels_0|rep_counts_1|count_data" value="group1_count2.txt"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
95 <param name="levels_0|rep_counts_1|label" value="group1_rep2"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
96 <param name="levels_1|level_name" value="group2"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
97 <param name="levels_1|rep_counts_0|count_data" value="group2_count1.txt"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
98 <param name="levels_1|rep_counts_0|label" value="group2_rep1"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
99 <param name="levels_1|rep_counts_1|count_data" value="group2_count2.txt"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
100 <param name="levels_1|rep_counts_1|label" value="group2_rep2"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
101 <output name="outfile" file="test_output_target.html"/>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
102 </test>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
103 </tests>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
104 <help>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
105 -----------
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
106 Description
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
107 -----------
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
108 * This tool creates a target file and an archive to use in input of SARTools.
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
109 * For details about SARTools, please visit https://github.com/PF2-pasteur-fr/SARTools.
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
110 * The count file must be outcoming from htseq-count or RSEM
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
111
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
112 * 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
113 * If you add a blocking factor, you need to specify it in "Advanced Parameters" of SARTools
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
114 </help>
581d217c7337 Planemo upload
lgueguen
parents:
diff changeset
115 </tool>