40
|
1 <tool id="sRNAPipe" name="sRNAPipe" version="0.0.1">
|
|
2 <description>In-depth study of small RNA</description>
|
|
3 <command interpreter="perl">
|
|
4
|
|
5 ./bin/sRNAPipe.pl
|
|
6
|
|
7 --fastq ${first_input}
|
|
8 --fastq_n ${first_input.name}
|
|
9 #for $input_file in $input_files:
|
|
10 --fastq ${input_file.additional_input}
|
|
11 --fastq_n ${input_file.additional_input.name}
|
|
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>
|
|
86 <requirement type="package" version="1.2">samtools</requirement>
|
42
|
87 <requirement type="package" version="3.2.1">R</requirement>
|
|
88 <requirement type="package" version="5.18">perl</requirement>
|
40
|
89 </requirements>
|
|
90
|
|
91 <inputs>
|
|
92 <param format="fastqsanger" name="first_input" type="data" label="fastqsanger (Q33)" help=""/>
|
|
93 <repeat name="input_files" title="Additional Fastq Files">
|
|
94 <param format="fastqsanger" name="additional_input" type="data" label="fastqsanger (Q33)" help=""/>
|
|
95 </repeat>
|
|
96 <conditional name="Genome">
|
|
97 <param name="refGenomeSource" type="select" label="Will you select a reference genome from your history or use a built-in index?">
|
|
98 <option value="indexed">Use a built-in index</option>
|
|
99 <option value="history">Use one from the history</option>
|
|
100 </param>
|
|
101 <when value="indexed">
|
|
102 <param name="indices" type="select" label="Select a reference genome">
|
|
103 <options from_data_table="bwa_indexes">
|
|
104 <filter type="sort_by" column="2" />
|
|
105 <validator type="no_options" message="No indexes are available" />
|
|
106 </options>
|
|
107 </param>
|
|
108 </when>
|
|
109 <when value="history">
|
|
110 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
|
|
111 </when>
|
|
112 </conditional>
|
|
113 <conditional name="transcripts">
|
|
114 <param name="refGenomeSource" type="select" label="Will you select transcripts database from your history or use a built-in index?">
|
|
115 <option value="indexed">Use a built-in index</option>
|
|
116 <option value="history">Use one from the history</option>
|
|
117 </param>
|
|
118 <when value="indexed">
|
|
119 <param name="indices" type="select" label="Select a transcripts reference">
|
|
120 <options from_data_table="bwa_indexes">
|
|
121 <filter type="sort_by" column="2" />
|
|
122 <validator type="no_options" message="No indexes are available" />
|
|
123 </options>
|
|
124 </param>
|
|
125 </when>
|
|
126 <when value="history">
|
|
127 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
|
|
128 </when>
|
|
129 </conditional>
|
|
130 <conditional name="TE">
|
|
131 <param name="refGenomeSource" type="select" label="Will you select TE database from your history or use a built-in index?">
|
|
132 <option value="indexed">Use a built-in index</option>
|
|
133 <option value="history">Use one from the history</option>
|
|
134 </param>
|
|
135 <when value="indexed">
|
|
136 <param name="indices" type="select" label="Select a TE reference">
|
|
137 <options from_data_table="bwa_indexes">
|
|
138 <filter type="sort_by" column="2" />
|
|
139 <validator type="no_options" message="No indexes are available" />
|
|
140 </options>
|
|
141 </param>
|
|
142 </when>
|
|
143 <when value="history">
|
|
144 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
|
|
145 </when>
|
|
146 </conditional>
|
|
147 <conditional name="miRNAs">
|
|
148 <param name="refGenomeSource" type="select" label="Will you select miRNA database from your history or use a built-in index?">
|
|
149 <option value="indexed">Use a built-in index</option>
|
|
150 <option value="history">Use one from the history</option>
|
|
151 </param>
|
|
152 <when value="indexed">
|
|
153 <param name="indices" type="select" label="Select a miRNA reference">
|
|
154 <options from_data_table="bwa_indexes">
|
|
155 <filter type="sort_by" column="2" />
|
|
156 <validator type="no_options" message="No indexes are available" />
|
|
157 </options>
|
|
158 </param>
|
|
159 </when>
|
|
160 <when value="history">
|
|
161 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
|
|
162 </when>
|
|
163 </conditional>
|
|
164 <conditional name="snRNAs">
|
|
165 <param name="refGenomeSource" type="select" label="Will you select snRNA database from your history or use a built-in index?">
|
|
166 <option value="indexed">Use a built-in index</option>
|
|
167 <option value="history">Use one from the history</option>
|
|
168 <option value="none">None</option>
|
|
169 </param>
|
|
170 <when value="indexed">
|
|
171 <param name="indices" type="select" label="Select a snRNAs reference">
|
|
172 <options from_data_table="bwa_indexes">
|
|
173 <filter type="sort_by" column="2" />
|
|
174 <validator type="no_options" message="No indexes are available" />
|
|
175 </options>
|
|
176 </param>
|
|
177 </when>
|
|
178 <when value="history">
|
|
179 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
|
|
180 </when>
|
|
181 </conditional>
|
|
182 <conditional name="rRNAs">
|
|
183 <param name="refGenomeSource" type="select" label="Will you select rRNAs database from your history or use a built-in index?">
|
|
184 <option value="indexed">Use a built-in index</option>
|
|
185 <option value="history">Use one from the history</option>
|
|
186 <option value="none">None</option>
|
|
187 </param>
|
|
188 <when value="indexed">
|
|
189 <param name="indices" type="select" label="Select a rRNAs reference">
|
|
190 <options from_data_table="bwa_indexes">
|
|
191 <filter type="sort_by" column="2" />
|
|
192 <validator type="no_options" message="No indexes are available" />
|
|
193 </options>
|
|
194 </param>
|
|
195 </when>
|
|
196 <when value="history">
|
|
197 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
|
|
198 </when>
|
|
199 </conditional>
|
|
200 <conditional name="tRNAs">
|
|
201 <param name="refGenomeSource" type="select" label="Will you select tRNA database from your history or use a built-in index?">
|
|
202 <option value="indexed">Use a built-in index</option>
|
|
203 <option value="history">Use one from the history</option>
|
|
204 <option value="none">None</option>
|
|
205 </param>
|
|
206 <when value="indexed">
|
|
207 <param name="indices" type="select" label="Select a tRNA reference">
|
|
208 <options from_data_table="bwa_indexes">
|
|
209 <filter type="sort_by" column="2" />
|
|
210 <validator type="no_options" message="No indexes are available" />
|
|
211 </options>
|
|
212 </param>
|
|
213 </when>
|
|
214 <when value="history">
|
|
215 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
|
|
216 </when>
|
|
217 </conditional>
|
|
218
|
|
219 <param name="min" type="integer" value="18" label="minimum read size"/>
|
|
220 <param name="max" type="integer" value="29" label="maximum read size"/>
|
|
221 <param name="si_min" type="integer" value="21" label="lower bound of siRNA range"/>
|
|
222 <param name="si_max" type="integer" value="21" label="higher bound of siRNA range"/>
|
|
223 <param name="pi_min" type="integer" value="23" label="lower bound of piRNA range"/>
|
|
224 <param name="pi_max" type="integer" value="29" label="higher bound of piRNA range"/>
|
|
225
|
|
226 <param name="mis" type="integer" value="0" label="maximal genome mismatches"/>
|
|
227 <param name="misTE" type="integer" value="3" label="maximal TE mismatches"/>
|
|
228 <param name="PPPon" type="boolean" checked="true" label="PPPartners"/>
|
|
229 </inputs>
|
|
230 <outputs>
|
|
231 <data format="html" name="html_out" label="${tool.name}_${first_input.name}_${on_string}"/>
|
|
232
|
|
233 <collection format ="fastqsanger" type="list" label="${tool.name}_fastq_outputs" name="output_fastqsanger">
|
|
234 <discover_datasets format ="fastqsanger" pattern="(?P<name>.*)" directory="fastq_dir" />
|
|
235 </collection>
|
|
236
|
|
237 </outputs>
|
|
238 <help>
|
|
239 **User manual**
|
|
240 "https://github.com/brassetjensen/sRNAPipe/blob/master/sRNAPipe_User_Manual.pdf"
|
|
241 </help>
|
|
242 </tool>
|