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