0
|
1 <tool id="countmatrixforedger" name="countMatrixForEdger" version="1.0">
|
|
2 <description>Make a count matrix for edgeR</description>
|
|
3 <stdio>
|
|
4 <exit_code range="1:" />
|
|
5 </stdio>
|
|
6 <command>
|
|
7 <![CDATA[
|
|
8 #for $i, $s in enumerate( $sample )#
|
|
9 echo -e ${s.sample_data}"\t"${s.sample_name}"\t"${s.sample_group} >> script.data;
|
|
10 #end for#
|
|
11
|
|
12 $__tool_directory__/tools/scrsh.sh script.data;
|
|
13
|
|
14 cat count.matrix > $count_matrix;
|
|
15 cat annotation > $annotation;
|
|
16 cat script.log > $log;
|
|
17 cat error.log > $error_log
|
|
18
|
|
19 ]]>
|
|
20 </command>
|
|
21 <inputs>
|
|
22 <repeat name="sample" title="">
|
|
23 <param name="sample_data" type="data" format="data" label="" help="" />
|
|
24 <param name="sample_name" type="text" label="" help="" />
|
|
25 <param name="sample_group" type="text" label="" help="" />
|
|
26 </repeat>
|
|
27 </inputs>
|
|
28 <outputs>
|
2
|
29 <data name="count_matrix" format="tabular" label="countMatrixForEdger: count matrix"/>
|
|
30 <data name="annotation" format="tabular" label="countMatrixForEdger: annotation"/>
|
|
31 <data name="log" format="txt" label="countMatrixForEdger: log"/>
|
|
32 <data name="error_log" format="txt" label="countMatrixForEdger: error log"/>
|
0
|
33 </outputs>
|
|
34 <tests>
|
|
35 <test>
|
|
36 <param name="sample_0|sample_data" value="data1" />
|
|
37 <param name="sample_1|sample_data" value="data2" />
|
|
38 <param name="sample_2|sample_data" value="data3" />
|
|
39 <param name="sample_3|sample_data" value="data4" />
|
|
40 <param name="sample_0|sample_name" value="sample1" />
|
|
41 <param name="sample_1|sample_name" value="sample2" />
|
|
42 <param name="sample_2|sample_name" value="sample3" />
|
|
43 <param name="sample_3|sample_name" value="sample4" />
|
|
44 <param name="sample_0|sample_group" value="gr1" />
|
|
45 <param name="sample_1|sample_group" value="gr1" />
|
|
46 <param name="sample_2|sample_group" value="gr2" />
|
|
47 <param name="sample_3|sample_group" value="gr2" />
|
|
48 <output name="count_matrix" file="count.matrix"/>
|
|
49 <output name="annotation" file="annotation"/>
|
|
50 <output name="log" file="script.log"/>
|
|
51 <output name="error_log" file="error.log"/>
|
|
52 </test>
|
|
53
|
|
54 </tests>
|
|
55 <help>
|
|
56 <![CDATA[
|
|
57 ]]>
|
|
58 </help>
|
|
59 <citations>
|
1
|
60 <citation>
|
0
|
61 </citation>
|
|
62 </citations>
|
|
63 </tool>
|