annotate siRNA_pipeline.xml @ 0:87fe81de0931 draft default tip

Uploaded
author bigrna
date Sun, 04 Jan 2015 02:47:25 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
1 <tool id="plant_sirna_pipeline_v1" name="siRNA_pipeline" veision="1.0.0">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
2 <description>Program for plant siRNA analysis (rawdata preprocess -> genome alignment -> non-coding annotate -> siRNA analysis)</description>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
3
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
4 <requirements>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
5 <requirement type="set_environment">SCRIPT_PATH</requirement>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
6 <requirement type="package" version="0.12.7">bowtie</requirement>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
7 <requirement type="package" version="3.0.1">R</requirement>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
8 <requirement type="package" version="0.0.13">fastx_toolkit </requirement>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
9 <requirement type="package" version="1.96">threads</requirement>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
10 <requirement type="package" version="1.06">Parallel-ForkManager</requirement>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
11 <requirement type="package" version="2.59">SVG</requirement>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
12 <requirement type="package" version="1.4_001">Boost-Graph</requirement>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
13 </requirements>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
14
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
15 <command interpreter="perl">siRNA_pipeline.pl
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
16 ## Change this to accommodate the number of threads you have available.
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
17 -t \${GALAXY_SLOTS:-4}
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
18
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
19 -path \$SCRIPT_PATH
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
20
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
21 #for $j, $s in enumerate( $series )
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
22 ##rank_of_series=$j
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
23 -i ${s.input}
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
24 -tag ${s.tag}
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
25 #end for
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
26
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
27 ## prepare bowtie index
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
28 #set index_path = ''
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
29 #if str($reference_genome.source) == "history":
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
30 #set index_path = $reference_genome.own_file
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
31 -g $index_path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
32 #else:
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
33 #set index_path = $reference_genome.index.fields.path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
34 -g ${index_path}.fa -idx $index_path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
35 #end if
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
36
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
37
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
38 ## prepare Rfam bowtie index
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
39 #set rfam_index_path = ''
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
40 #if str($reference_rfam.source) == "history":
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
41 #set rfam_index_path = $reference_rfam.own_file
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
42 -rfam $rfam_index_path -v $v
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
43 #else:
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
44 #set rfam_index_path = $reference_rfam.index.fields.path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
45 -rfam ${rfam_index_path}.fa -idx2 $rfam_index_path -v $v
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
46 #end if
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
47
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
48
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
49
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
50 ## Do or not annotate siRNAs by function
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
51 #if $params.function_anno == "yes":
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
52
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
53 ## prepare bowtie index
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
54 #set nat_path = ''
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
55 #if str($params.nat_file.source) == "history":
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
56 #set nat_path = $params.nat_file.nat
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
57
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
58 #else:
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
59 #set nat_path = $params.nat_file.index.fields.path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
60 #end if
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
61
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
62 ## prepare bowtie index
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
63 #set repeat_path = ''
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
64 #if str($params.repeat_file.source) == "history":
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
65 #set repeat_path = $params.repeat_file.repeat
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
66
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
67 #else:
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
68 #set repeat_path = $params.repeat_file.index.fields.path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
69 #end if
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
70
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
71
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
72 -nat $nat_path -repeat $repeat_path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
73 #end if
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
74
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
75 ## Do or not DEG
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
76 #if $degseq.degseq_analysis == "yes" :
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
77 -deg $degseq.deg
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
78 #end if
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
79
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
80 -format $format -phred $phred -f $gff -mis $mis -a $a -n $mapnt -d $d -p $p -l $l -cen $cen -span $span > run.log
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
81
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
82 </command>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
83
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
84 <inputs>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
85
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
86 <repeat name="series" title="Raw sequence data file">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
87 <param name="input" type="data" label="Raw data file"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
88 <param name="tag" type="text" data_ref="input" label="Sample name of raw data"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
89 </repeat>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
90
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
91 <param name="format" type="select" label="raw data format" multiple="false">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
92 <option value="fastq">Raw data is fastq. format</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
93 <option value="fasta">Raw data is fasta. format</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
94 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
95
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
96 <param name="phred" type="select" label="input quals are Phred+64 or Phred+33" multiple="false">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
97 <option value="64">Phred+64</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
98 <option value="33" selected="true">Phred+33</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
99 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
100
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
101 <conditional name="reference_genome">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
102 <param name="source" type="select" label="Will you select a reference genome from your history or use a built-in index?" help="Built-ins were indexed using default options">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
103 <option value="indexed">Use a built-in index</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
104 <option value="history">Use one from the history</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
105 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
106 <when value="indexed">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
107 <param name="index" type="select" label="Select a reference genome" help="If your genome of interest is not listed, contact the Galaxy team">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
108 <options from_data_table="bowtie_indexes">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
109 <filter type="sort_by" column="2"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
110 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
111 </options>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
112 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
113 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
114 <when value="history">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
115 <param name="own_file" type="data" format="fasta" metadata_name="dbkey" label="Select the reference genome" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
116 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
117 </conditional> <!--param type="data" name="index" label="genome sequence bowtie index"/-->
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
118
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
119 <conditional name="reference_rfam">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
120 <param name="source" type="select" label="Will you select a rfam reference from your history or use a built-in index?" help="Built-ins were indexed using default options">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
121 <option value="indexed">Use a built-in index</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
122 <option value="history">Use one from the history</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
123 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
124 <when value="indexed">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
125 <param name="index" type="select" label="Select a non-coding reference " help="If your rfam of interest is not listed, contact the Galaxy team">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
126 <options from_data_table="rfam_bowtie_indexes">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
127 <filter type="sort_by" column="2"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
128 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
129 </options>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
130 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
131 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
132 <when value="history">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
133 <param name="own_file" type="data" format="fasta" metadata_name="dbkey" label="Select the reference" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
134 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
135 </conditional>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
136
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
137 <param name="gff" type="data" label="gff file" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
138 <param name="mis" type="integer" value="0" label="number of allowed mismatches when mapping reads to genome" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
139 <param name="v" type="integer" value="0" label="report end-to-end hits less than v mismatches for non-coding alignment"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
140 <param name="a" type="text" value="TGGAATTCTCGGGTGCCAAGG" label="3' adapter sequence" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
141 <param name="mapnt" type="integer" value="25" label="a read is allowed to map up to this number of positions in the genome" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
142 <param name="d" type="integer" value="100" label="distance of tag to merged a cluster" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
143
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
144 <param name="p" type="select" label="siRNA cluster identify method" multiple="false">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
145 <option value="F">conventional</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
146 <option value="T">NIBLES</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
147 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
148 <param name="l" type="integer" value="1000" label="the length of the upstream and downstream,used in position annotate" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
149
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
150
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
151 <conditional name="params">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
152 <param name="function_anno" type="select" label="Do or not annotate siRNAs by function">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
153 <option value="no" selected="true">no</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
154 <option value="yes">yes</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
155 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
156 <when value="yes">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
157
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
158
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
159 <conditional name="nat_file">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
160 <param name="source" type="select" label="Will you select a atural antisense transcripts file from your history ?" help="down load from ***">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
161 <option value="indexed">Use a built-in file</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
162 <option value="history">Use one from the history</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
163 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
164 <when value="indexed">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
165 <param name="index" type="select" label="Select a atural antisense transcripts file" help="If your species of interest is not listed, contact the Galaxy team">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
166 <options from_data_table="nat_annotate">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
167 <filter type="sort_by" column="2"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
168 <validator type="no_options" message="No files are available for the selected input dataset"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
169 </options>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
170 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
171 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
172 <when value="history">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
173 <param name="nat" type="data" format="txt" metadata_name="dbkey" label="atural antisense transcripts file" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
174 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
175 </conditional> <!--param type="data" name="index" label="genome sequence bowtie index"/-->
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
176
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
177 <conditional name="repeat_file">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
178 <param name="source" type="select" label="Will you select a repeat information file from your history ?" help="down load from ***">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
179 <option value="indexed">Use a built-in file</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
180 <option value="history">Use one from the history</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
181 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
182 <when value="indexed">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
183 <param name="index" type="select" label="Select a repeat information file" help="If your species of interest is not listed, contact the Galaxy team">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
184 <options from_data_table="repeat_annotate">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
185 <filter type="sort_by" column="2"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
186 <validator type="no_options" message="No files are available for the selected input dataset"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
187 </options>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
188 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
189 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
190 <when value="history">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
191 <param name="repeat" type="data" metadata_name="dbkey" label="repeat information file out of Repeatmasker" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
192 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
193 </conditional> <!--param type="data" name="index" label="genome sequence bowtie index"/-->
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
194 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
195 </conditional> <!-- params -->
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
196
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
197 <param name="cen" type="data" label="centromere file input" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
198 <param name="span" type="integer" value="50000" label="plot span" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
199
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
200 <conditional name="degseq">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
201 <param name="degseq_analysis" type="select" label="Do or not identify Difference Expression Clusters">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
202 <option value="no" selected="true">no</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
203 <option value="yes">yes</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
204 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
205 <when value="yes">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
206 <param name="deg" type="data" label="file config of de sample" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
207 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
208 </conditional>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
209
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
210 </inputs>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
211
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
212 <outputs>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
213 <data format="txt" name="siRNA cluster" from_work_dir="cluster_runs/total.result" label="${tool.name} on ${on_string}: siRNA cluster"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
214 <data format="html" name="analysis result" from_work_dir="cluster_runs/result.html" label="${tool.name} on ${on_string}: analysis result"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
215
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
216 </outputs>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
217
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
218 <help>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
219
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
220 </help>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
221 </tool>