annotate testing6/all_de_steps.xml @ 0:fbafdad29706 draft default tip

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