annotate all_de_steps.xml @ 0:cc71440b759f draft default tip

Uploaded
author mytest
date Tue, 22 Sep 2015 01:58:00 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cc71440b759f Uploaded
mytest
parents:
diff changeset
1 <tool id='differential_expression' name='Differential Expression' version='1.0'>
cc71440b759f Uploaded
mytest
parents:
diff changeset
2 <description>Generates results for DE </description>
cc71440b759f Uploaded
mytest
parents:
diff changeset
3 <!--requirement></requirement-->
cc71440b759f Uploaded
mytest
parents:
diff changeset
4 <requirements>
cc71440b759f Uploaded
mytest
parents:
diff changeset
5 <requirement type="package" version="2013_08_14">trinityrnaseq</requirement>
cc71440b759f Uploaded
mytest
parents:
diff changeset
6 <requirement type="set_environment">TRINITY_HOME</requirement>
cc71440b759f Uploaded
mytest
parents:
diff changeset
7
cc71440b759f Uploaded
mytest
parents:
diff changeset
8 </requirements>
cc71440b759f Uploaded
mytest
parents:
diff changeset
9 <command>
cc71440b759f Uploaded
mytest
parents:
diff changeset
10
cc71440b759f Uploaded
mytest
parents:
diff changeset
11 echo -e "Differential Expression Log File" &gt; $output_log 2&gt;&amp;1;
cc71440b759f Uploaded
mytest
parents:
diff changeset
12
cc71440b759f Uploaded
mytest
parents:
diff changeset
13 ## Step 0: preprocess input_file preparaton
cc71440b759f Uploaded
mytest
parents:
diff changeset
14
cc71440b759f Uploaded
mytest
parents:
diff changeset
15 #for $i in $isoform_sample:
cc71440b759f Uploaded
mytest
parents:
diff changeset
16 cp -s $i.isoform_sample_matrix $i.sample_name;
cc71440b759f Uploaded
mytest
parents:
diff changeset
17 #end for;
cc71440b759f Uploaded
mytest
parents:
diff changeset
18
cc71440b759f Uploaded
mytest
parents:
diff changeset
19
cc71440b759f Uploaded
mytest
parents:
diff changeset
20 ## Step 1: abundance_estimates_to_matrix
cc71440b759f Uploaded
mytest
parents:
diff changeset
21 echo -e "" &gt;&gt; $output_log 2&gt;&amp;1;
cc71440b759f Uploaded
mytest
parents:
diff changeset
22 echo -e "\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#" &gt;&gt; $output_log 2&gt;&amp;1;
cc71440b759f Uploaded
mytest
parents:
diff changeset
23 echo -e "\#\# Step 1: abundance_estimates_to_matrix" &gt;&gt; $output_log 2&gt;&amp;1;
cc71440b759f Uploaded
mytest
parents:
diff changeset
24 echo -e "" &gt;&gt; $output_log 2&gt;&amp;1;
cc71440b759f Uploaded
mytest
parents:
diff changeset
25
cc71440b759f Uploaded
mytest
parents:
diff changeset
26
cc71440b759f Uploaded
mytest
parents:
diff changeset
27 perl \$TRINITY_HOME/util/abundance_estimates_to_matrix.pl
cc71440b759f Uploaded
mytest
parents:
diff changeset
28 --est_method $est_method
cc71440b759f Uploaded
mytest
parents:
diff changeset
29 #for $i in $isoform_sample:
cc71440b759f Uploaded
mytest
parents:
diff changeset
30 $i.sample_name
cc71440b759f Uploaded
mytest
parents:
diff changeset
31 #end for
cc71440b759f Uploaded
mytest
parents:
diff changeset
32 &gt;&gt; $output_log 2&gt;&amp;1;
cc71440b759f Uploaded
mytest
parents:
diff changeset
33
cc71440b759f Uploaded
mytest
parents:
diff changeset
34
cc71440b759f Uploaded
mytest
parents:
diff changeset
35 ## Step 2: run_DE_analysis
cc71440b759f Uploaded
mytest
parents:
diff changeset
36 echo -e "" &gt;&gt; $output_log 2&gt;&amp;1;
cc71440b759f Uploaded
mytest
parents:
diff changeset
37 echo -e "\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#" &gt;&gt; $output_log 2&gt;&amp;1;
cc71440b759f Uploaded
mytest
parents:
diff changeset
38 echo -e "\#\# Step 2: run_DE_analysis" &gt;&gt; $output_log 2&gt;&amp;1;
cc71440b759f Uploaded
mytest
parents:
diff changeset
39 echo -e "" &gt;&gt; $output_log 2&gt;&amp;1;
cc71440b759f Uploaded
mytest
parents:
diff changeset
40
cc71440b759f Uploaded
mytest
parents:
diff changeset
41 perl \$TRINITY_HOME/Analysis/DifferentialExpression/run_DE_analysis.pl
cc71440b759f Uploaded
mytest
parents:
diff changeset
42 --matrix matrix.counts.matrix
cc71440b759f Uploaded
mytest
parents:
diff changeset
43 --method $method
cc71440b759f Uploaded
mytest
parents:
diff changeset
44 --output result_dir
cc71440b759f Uploaded
mytest
parents:
diff changeset
45 &gt;&gt; $output_log 2&gt;&amp;1;
cc71440b759f Uploaded
mytest
parents:
diff changeset
46
cc71440b759f Uploaded
mytest
parents:
diff changeset
47 ## Step 3: analyze_diff_expr
cc71440b759f Uploaded
mytest
parents:
diff changeset
48 echo -e "" &gt;&gt; $output_log 2&gt;&amp;1;
cc71440b759f Uploaded
mytest
parents:
diff changeset
49 echo -e "\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#" &gt;&gt; $output_log 2&gt;&amp;1;
cc71440b759f Uploaded
mytest
parents:
diff changeset
50 echo -e "\#\# Step 3: analyze_diff_expr" &gt;&gt; $output_log 2&gt;&amp;1;
cc71440b759f Uploaded
mytest
parents:
diff changeset
51 echo -e "" &gt;&gt; $output_log 2&gt;&amp;1;
cc71440b759f Uploaded
mytest
parents:
diff changeset
52
cc71440b759f Uploaded
mytest
parents:
diff changeset
53 cd result_dir &amp;&amp; perl \$TRINITY_HOME/Analysis/DifferentialExpression/analyze_diff_expr.pl
cc71440b759f Uploaded
mytest
parents:
diff changeset
54
cc71440b759f Uploaded
mytest
parents:
diff changeset
55 --matrix ../matrix.TMM.fpkm.matrix
cc71440b759f Uploaded
mytest
parents:
diff changeset
56
cc71440b759f Uploaded
mytest
parents:
diff changeset
57 &gt;&gt; $output_log 2&gt;&amp;1;
cc71440b759f Uploaded
mytest
parents:
diff changeset
58
cc71440b759f Uploaded
mytest
parents:
diff changeset
59 pwd;
cc71440b759f Uploaded
mytest
parents:
diff changeset
60 cd .. &amp;&amp; zip -r results.zip result_dir;
cc71440b759f Uploaded
mytest
parents:
diff changeset
61 </command>
cc71440b759f Uploaded
mytest
parents:
diff changeset
62
cc71440b759f Uploaded
mytest
parents:
diff changeset
63 <inputs>
cc71440b759f Uploaded
mytest
parents:
diff changeset
64 <!-- Required -->
cc71440b759f Uploaded
mytest
parents:
diff changeset
65
cc71440b759f Uploaded
mytest
parents:
diff changeset
66 <param name='est_method' type='select' display="radio" label='Select est_method'>
cc71440b759f Uploaded
mytest
parents:
diff changeset
67 <option value="RSEM" selected='true'>RSEM</option>
cc71440b759f Uploaded
mytest
parents:
diff changeset
68 <option value="eXpress">eXpress</option>
cc71440b759f Uploaded
mytest
parents:
diff changeset
69 </param>
cc71440b759f Uploaded
mytest
parents:
diff changeset
70
cc71440b759f Uploaded
mytest
parents:
diff changeset
71
cc71440b759f Uploaded
mytest
parents:
diff changeset
72 <repeat name="isoform_sample" title="Isoform Sample" min="2">
cc71440b759f Uploaded
mytest
parents:
diff changeset
73 <param name="sample_name" type="text" label="Sample Name" help="Only alpha-numerical name without space.">
cc71440b759f Uploaded
mytest
parents:
diff changeset
74 <validator type="empty_field" message="don't leave the field empty!"/>
cc71440b759f Uploaded
mytest
parents:
diff changeset
75 </param>
cc71440b759f Uploaded
mytest
parents:
diff changeset
76 <param format="tabular" name="isoform_sample_matrix" type="data" label="Isoform Sample Matrix"/>
cc71440b759f Uploaded
mytest
parents:
diff changeset
77 </repeat>
cc71440b759f Uploaded
mytest
parents:
diff changeset
78
cc71440b759f Uploaded
mytest
parents:
diff changeset
79 <param name='method' type="select" label="Select Method" >
cc71440b759f Uploaded
mytest
parents:
diff changeset
80 <option value="edgeR">edgeR</option>
cc71440b759f Uploaded
mytest
parents:
diff changeset
81 <option value="DESeq">DESeq</option>
cc71440b759f Uploaded
mytest
parents:
diff changeset
82 <option value="DESeq2">DESeq2</option>
cc71440b759f Uploaded
mytest
parents:
diff changeset
83 </param>
cc71440b759f Uploaded
mytest
parents:
diff changeset
84
cc71440b759f Uploaded
mytest
parents:
diff changeset
85
cc71440b759f Uploaded
mytest
parents:
diff changeset
86
cc71440b759f Uploaded
mytest
parents:
diff changeset
87 <!-- Optional -->
cc71440b759f Uploaded
mytest
parents:
diff changeset
88
cc71440b759f Uploaded
mytest
parents:
diff changeset
89 </inputs>
cc71440b759f Uploaded
mytest
parents:
diff changeset
90 <outputs>
cc71440b759f Uploaded
mytest
parents:
diff changeset
91 <data name='de_output' format='zip' label="${tool.name} on ${on_string}: compressed_output" from_work_dir="results.zip"/>
cc71440b759f Uploaded
mytest
parents:
diff changeset
92 <data name='output_log' format='txt' label="${tool.name} on ${on_string} : matrix_log"/>
cc71440b759f Uploaded
mytest
parents:
diff changeset
93 </outputs>
cc71440b759f Uploaded
mytest
parents:
diff changeset
94 </tool>