54
|
1 <tool id="sRNAPipe" name="sRNAPipe" version="1.0">
|
40
|
2 <description>In-depth study of small RNA</description>
|
|
3 <command interpreter="perl">
|
|
4
|
|
5 ./bin/sRNAPipe.pl
|
|
6
|
|
7 --fastq ${first_input}
|
58
|
8 --fastq_n "${first_input.name}"
|
40
|
9 #for $input_file in $input_files:
|
|
10 --fastq ${input_file.additional_input}
|
58
|
11 --fastq_n "${input_file.additional_input.name}"
|
40
|
12 #end for
|
|
13
|
|
14 #if $Genome.refGenomeSource == "history":
|
|
15 --ref "${Genome.ownFile}"
|
|
16 --build_index
|
|
17 #else:
|
|
18 --ref "${Genome.indices.fields.path}"
|
|
19 #end if
|
|
20
|
|
21 #if $tRNAs.refGenomeSource == "history":
|
|
22 --tRNAs "${tRNAs.ownFile}"
|
|
23 --build_tRNAs
|
|
24 #elif $tRNAs.refGenomeSource == "none":
|
|
25 --tRNAs "None"
|
|
26 #else:
|
|
27 --tRNAs "${tRNAs.indices.fields.path}"
|
|
28 #end if
|
|
29
|
|
30 #if $snRNAs.refGenomeSource == "history":
|
|
31 --snRNAs "${snRNAs.ownFile}"
|
|
32 --build_snRNAs
|
|
33 #elif $snRNAs.refGenomeSource == "none":
|
|
34 --snRNAs "None"
|
|
35 #else:
|
|
36 --snRNAs "${snRNAs.indices.fields.path}"
|
|
37 #end if
|
|
38
|
|
39 #if $rRNAs.refGenomeSource == "history":
|
|
40 --rRNAs "${rRNAs.ownFile}"
|
|
41 --build_rRNAs
|
|
42 #elif $rRNAs.refGenomeSource == "none":
|
|
43 --rRNAs "None"
|
|
44 #else:
|
|
45 --rRNAs "${rRNAs.indices.fields.path}"
|
|
46 #end if
|
|
47
|
|
48 #if $miRNAs.refGenomeSource == "history":
|
|
49 --miRNAs "${miRNAs.ownFile}"
|
|
50 --build_miRNAs
|
|
51 #else:
|
|
52 --miRNAs "${miRNAs.indices.fields.path}"
|
|
53 #end if
|
|
54
|
|
55 #if $transcripts.refGenomeSource == "history":
|
|
56 --transcripts "${transcripts.ownFile}"
|
|
57 --build_transcripts
|
|
58 #else:
|
|
59 --transcripts "${transcripts.indices.fields.path}"
|
|
60 #end if
|
|
61
|
|
62 #if $TE.refGenomeSource == "history":
|
|
63 --TE "${TE.ownFile}"
|
|
64 --build_TE
|
|
65 #else:
|
|
66 --TE "${TE.indices.fields.path}"
|
|
67 #end if
|
|
68
|
|
69 --si_min $si_min
|
|
70 --si_max $si_max
|
|
71 --pi_min $pi_min
|
|
72 --pi_max $pi_max
|
|
73 --min $min
|
|
74 --max $max
|
|
75
|
|
76 --mis $mis
|
|
77 --misTE $misTE
|
|
78 --dir $html_out.files_path
|
|
79 --html $html_out
|
|
80 --PPPon $PPPon
|
|
81 </command>
|
|
82
|
|
83 <requirements>
|
41
|
84 <requirement type="package" version="0.7.12">bwa</requirement>
|
|
85 <requirement type="package" version="2.24">bedtools</requirement>
|
57
|
86 <requirement type="package" version="1.5">samtools</requirement>
|
52
|
87 <requirement type="package" version="3.3.2">r-base</requirement>
|
55
|
88 <requirement type="package" version="5.22.0">perl</requirement>
|
52
|
89 <requirement type="package" version="2.50">perl-getopt-long</requirement>
|
53
|
90 <requirement type="package" version="1.17">perl-parallel-forkmanager</requirement>
|
52
|
91 <requirement type="package" version="0.34" >perl-statistics-r</requirement>
|
53
|
92 <requirement type="package" version="0.30">perl-string-random</requirement>
|
56
|
93 <requirement type="package" version="0.38" >perl-file-copy-recursive</requirement>
|
|
94 <requirement type="package" version="0.1" >perl-math-cdf</requirement>
|
52
|
95 <requirement type="package" version="3.6">r-plotrix</requirement>
|
|
96 <requirement type="package" version="1.14.0">bioconductor-sushi</requirement>
|
53
|
97 <requirement type="package" version="1.1_2">r-rcolorbrewer</requirement>
|
|
98 <requirement type="package" version="2.2.1">r-ggplot2</requirement>
|
40
|
99 </requirements>
|
|
100
|
|
101 <inputs>
|
|
102 <param format="fastqsanger" name="first_input" type="data" label="fastqsanger (Q33)" help=""/>
|
|
103 <repeat name="input_files" title="Additional Fastq Files">
|
|
104 <param format="fastqsanger" name="additional_input" type="data" label="fastqsanger (Q33)" help=""/>
|
|
105 </repeat>
|
|
106 <conditional name="Genome">
|
|
107 <param name="refGenomeSource" type="select" label="Will you select a reference genome from your history or use a built-in index?">
|
|
108 <option value="indexed">Use a built-in index</option>
|
|
109 <option value="history">Use one from the history</option>
|
|
110 </param>
|
|
111 <when value="indexed">
|
|
112 <param name="indices" type="select" label="Select a reference genome">
|
|
113 <options from_data_table="bwa_indexes">
|
|
114 <filter type="sort_by" column="2" />
|
|
115 <validator type="no_options" message="No indexes are available" />
|
|
116 </options>
|
|
117 </param>
|
|
118 </when>
|
|
119 <when value="history">
|
|
120 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
|
|
121 </when>
|
|
122 </conditional>
|
|
123 <conditional name="transcripts">
|
|
124 <param name="refGenomeSource" type="select" label="Will you select transcripts database from your history or use a built-in index?">
|
|
125 <option value="indexed">Use a built-in index</option>
|
|
126 <option value="history">Use one from the history</option>
|
|
127 </param>
|
|
128 <when value="indexed">
|
|
129 <param name="indices" type="select" label="Select a transcripts reference">
|
|
130 <options from_data_table="bwa_indexes">
|
|
131 <filter type="sort_by" column="2" />
|
|
132 <validator type="no_options" message="No indexes are available" />
|
|
133 </options>
|
|
134 </param>
|
|
135 </when>
|
|
136 <when value="history">
|
|
137 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
|
|
138 </when>
|
|
139 </conditional>
|
|
140 <conditional name="TE">
|
|
141 <param name="refGenomeSource" type="select" label="Will you select TE database from your history or use a built-in index?">
|
|
142 <option value="indexed">Use a built-in index</option>
|
|
143 <option value="history">Use one from the history</option>
|
|
144 </param>
|
|
145 <when value="indexed">
|
|
146 <param name="indices" type="select" label="Select a TE reference">
|
|
147 <options from_data_table="bwa_indexes">
|
|
148 <filter type="sort_by" column="2" />
|
|
149 <validator type="no_options" message="No indexes are available" />
|
|
150 </options>
|
|
151 </param>
|
|
152 </when>
|
|
153 <when value="history">
|
|
154 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
|
|
155 </when>
|
|
156 </conditional>
|
|
157 <conditional name="miRNAs">
|
|
158 <param name="refGenomeSource" type="select" label="Will you select miRNA database from your history or use a built-in index?">
|
|
159 <option value="indexed">Use a built-in index</option>
|
|
160 <option value="history">Use one from the history</option>
|
|
161 </param>
|
|
162 <when value="indexed">
|
|
163 <param name="indices" type="select" label="Select a miRNA reference">
|
|
164 <options from_data_table="bwa_indexes">
|
|
165 <filter type="sort_by" column="2" />
|
|
166 <validator type="no_options" message="No indexes are available" />
|
|
167 </options>
|
|
168 </param>
|
|
169 </when>
|
|
170 <when value="history">
|
|
171 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
|
|
172 </when>
|
|
173 </conditional>
|
|
174 <conditional name="snRNAs">
|
|
175 <param name="refGenomeSource" type="select" label="Will you select snRNA database from your history or use a built-in index?">
|
|
176 <option value="indexed">Use a built-in index</option>
|
|
177 <option value="history">Use one from the history</option>
|
|
178 <option value="none">None</option>
|
|
179 </param>
|
|
180 <when value="indexed">
|
|
181 <param name="indices" type="select" label="Select a snRNAs reference">
|
|
182 <options from_data_table="bwa_indexes">
|
|
183 <filter type="sort_by" column="2" />
|
|
184 <validator type="no_options" message="No indexes are available" />
|
|
185 </options>
|
|
186 </param>
|
|
187 </when>
|
|
188 <when value="history">
|
|
189 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
|
|
190 </when>
|
|
191 </conditional>
|
|
192 <conditional name="rRNAs">
|
|
193 <param name="refGenomeSource" type="select" label="Will you select rRNAs database from your history or use a built-in index?">
|
|
194 <option value="indexed">Use a built-in index</option>
|
|
195 <option value="history">Use one from the history</option>
|
|
196 <option value="none">None</option>
|
|
197 </param>
|
|
198 <when value="indexed">
|
|
199 <param name="indices" type="select" label="Select a rRNAs reference">
|
|
200 <options from_data_table="bwa_indexes">
|
|
201 <filter type="sort_by" column="2" />
|
|
202 <validator type="no_options" message="No indexes are available" />
|
|
203 </options>
|
|
204 </param>
|
|
205 </when>
|
|
206 <when value="history">
|
|
207 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
|
|
208 </when>
|
|
209 </conditional>
|
|
210 <conditional name="tRNAs">
|
|
211 <param name="refGenomeSource" type="select" label="Will you select tRNA database from your history or use a built-in index?">
|
|
212 <option value="indexed">Use a built-in index</option>
|
|
213 <option value="history">Use one from the history</option>
|
|
214 <option value="none">None</option>
|
|
215 </param>
|
|
216 <when value="indexed">
|
|
217 <param name="indices" type="select" label="Select a tRNA reference">
|
|
218 <options from_data_table="bwa_indexes">
|
|
219 <filter type="sort_by" column="2" />
|
|
220 <validator type="no_options" message="No indexes are available" />
|
|
221 </options>
|
|
222 </param>
|
|
223 </when>
|
|
224 <when value="history">
|
|
225 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
|
|
226 </when>
|
|
227 </conditional>
|
|
228
|
|
229 <param name="min" type="integer" value="18" label="minimum read size"/>
|
|
230 <param name="max" type="integer" value="29" label="maximum read size"/>
|
|
231 <param name="si_min" type="integer" value="21" label="lower bound of siRNA range"/>
|
|
232 <param name="si_max" type="integer" value="21" label="higher bound of siRNA range"/>
|
|
233 <param name="pi_min" type="integer" value="23" label="lower bound of piRNA range"/>
|
|
234 <param name="pi_max" type="integer" value="29" label="higher bound of piRNA range"/>
|
|
235
|
|
236 <param name="mis" type="integer" value="0" label="maximal genome mismatches"/>
|
|
237 <param name="misTE" type="integer" value="3" label="maximal TE mismatches"/>
|
|
238 <param name="PPPon" type="boolean" checked="true" label="PPPartners"/>
|
|
239 </inputs>
|
|
240 <outputs>
|
|
241 <data format="html" name="html_out" label="${tool.name}_${first_input.name}_${on_string}"/>
|
|
242
|
|
243 <collection format ="fastqsanger" type="list" label="${tool.name}_fastq_outputs" name="output_fastqsanger">
|
|
244 <discover_datasets format ="fastqsanger" pattern="(?P<name>.*)" directory="fastq_dir" />
|
|
245 </collection>
|
|
246
|
|
247 </outputs>
|
|
248 <help>
|
|
249 **User manual**
|
|
250 "https://github.com/brassetjensen/sRNAPipe/blob/master/sRNAPipe_User_Manual.pdf"
|
|
251 </help>
|
|
252 </tool>
|