54
|
1 <tool id="sRNAPipe" name="sRNAPipe" version="1.0">
|
40
|
2 <description>In-depth study of small RNA</description>
|
60
|
3 <command><![CDATA[
|
|
4 perl '$__tool_directory__/bin/sRNAPipe.pl'
|
40
|
5
|
60
|
6 --fastq '${first_input}'
|
|
7 --fastq_n '${first_input.name}'
|
40
|
8 #for $input_file in $input_files:
|
60
|
9 --fastq '${input_file.additional_input}'
|
|
10 --fastq_n '${input_file.additional_input.name}'
|
40
|
11 #end for
|
|
12
|
|
13 #if $Genome.refGenomeSource == "history":
|
60
|
14 --ref '${Genome.ownFile}'
|
40
|
15 --build_index
|
|
16 #else:
|
60
|
17 --ref '${Genome.indices.fields.path}'
|
40
|
18 #end if
|
|
19
|
|
20 #if $tRNAs.refGenomeSource == "history":
|
60
|
21 --tRNAs '${tRNAs.ownFile}'
|
40
|
22 --build_tRNAs
|
|
23 #elif $tRNAs.refGenomeSource == "none":
|
|
24 --tRNAs "None"
|
|
25 #else:
|
60
|
26 --tRNAs '${tRNAs.indices.fields.path}'
|
40
|
27 #end if
|
|
28
|
|
29 #if $snRNAs.refGenomeSource == "history":
|
60
|
30 --snRNAs '${snRNAs.ownFile}'
|
40
|
31 --build_snRNAs
|
|
32 #elif $snRNAs.refGenomeSource == "none":
|
|
33 --snRNAs "None"
|
|
34 #else:
|
60
|
35 --snRNAs '${snRNAs.indices.fields.path}'
|
40
|
36 #end if
|
|
37
|
|
38 #if $rRNAs.refGenomeSource == "history":
|
|
39 --rRNAs "${rRNAs.ownFile}"
|
|
40 --build_rRNAs
|
|
41 #elif $rRNAs.refGenomeSource == "none":
|
|
42 --rRNAs "None"
|
|
43 #else:
|
60
|
44 --rRNAs '${rRNAs.indices.fields.path}'
|
40
|
45 #end if
|
|
46
|
|
47 #if $miRNAs.refGenomeSource == "history":
|
60
|
48 --miRNAs '${miRNAs.ownFile}'
|
40
|
49 --build_miRNAs
|
|
50 #else:
|
60
|
51 --miRNAs '${miRNAs.indices.fields.path}'
|
40
|
52 #end if
|
|
53
|
|
54 #if $transcripts.refGenomeSource == "history":
|
60
|
55 --transcripts '${transcripts.ownFile}'
|
40
|
56 --build_transcripts
|
|
57 #else:
|
60
|
58 --transcripts '${transcripts.indices.fields.path}'
|
40
|
59 #end if
|
|
60
|
|
61 #if $TE.refGenomeSource == "history":
|
60
|
62 --TE '${TE.ownFile}'
|
40
|
63 --build_TE
|
|
64 #else:
|
60
|
65 --TE '${TE.indices.fields.path}'
|
40
|
66 #end if
|
|
67
|
|
68 --si_min $si_min
|
|
69 --si_max $si_max
|
|
70 --pi_min $pi_min
|
|
71 --pi_max $pi_max
|
|
72 --min $min
|
|
73 --max $max
|
|
74
|
|
75 --mis $mis
|
|
76 --misTE $misTE
|
|
77 --dir $html_out.files_path
|
|
78 --html $html_out
|
|
79 --PPPon $PPPon
|
60
|
80 ]]>
|
40
|
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>
|