comparison pre_sartools.xml @ 0:581d217c7337 draft

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