0
|
1 <tool id="piPipe" name="piPipe" version="0.0.1">
|
|
2 <description>Full studies of sRNA</description>
|
|
3 <command interpreter="perl">
|
|
4
|
|
5 ./bin/piPipe.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 #else:
|
|
25 --tRNAs "${tRNAs.indices.fields.path}"
|
|
26 #end if
|
|
27
|
|
28 #if $snRNAs.refGenomeSource == "history":
|
|
29 --snRNAs "${snRNAs.ownFile}"
|
|
30 --build_snRNAs
|
|
31 #else:
|
|
32 --snRNAs "${snRNAs.indices.fields.path}"
|
|
33 #end if
|
|
34
|
|
35 #if $miRNAs.refGenomeSource == "history":
|
|
36 --miRNAs "${miRNAs.ownFile}"
|
|
37 --build_miRNAs
|
|
38 #else:
|
|
39 --miRNAs "${miRNAs.indices.fields.path}"
|
|
40 #end if
|
|
41
|
|
42 #if $exons.refGenomeSource == "history":
|
|
43 --exons "${exons.ownFile}"
|
|
44 --build_exons
|
|
45 #else:
|
|
46 --exons "${exons.indices.fields.path}"
|
|
47 #end if
|
|
48
|
|
49 #if $TE.refGenomeSource == "history":
|
|
50 --TE "${TE.ownFile}"
|
|
51 --build_TE
|
|
52 #else:
|
|
53 --TE "${TE.indices.fields.path}"
|
|
54 #end if
|
|
55
|
|
56 #if $rRNAs.refGenomeSource == "history":
|
|
57 --rRNAs "${rRNAs.ownFile}"
|
|
58 --build_rRNAs
|
|
59 #else:
|
|
60 --rRNAs "${rRNAs.indices.fields.path}"
|
|
61 #end if
|
|
62
|
|
63 --si_min $si_min
|
|
64 --si_max $si_max
|
|
65 --pi_min $pi_min
|
|
66 --pi_max $pi_max
|
|
67 --min $min
|
|
68 --max $max
|
|
69
|
|
70 --mis $mis
|
|
71 --misTE $misTE
|
|
72 --dir $html_out.files_path
|
|
73 --html $html_out
|
|
74 --PPPon $PPPon
|
|
75 </command>
|
|
76
|
|
77 <requirements>
|
|
78 <requirement type="package" version="3.4.0">R</requirement>
|
2
|
79 <requirement type="package" version="0.7.15">bwa</requirement>
|
0
|
80 <requirement type="package" version="2.26.0">bedTools</requirement>
|
|
81 <requirement type="package" version="1.5">samtools</requirement>
|
|
82 </requirements>
|
|
83
|
|
84 <inputs>
|
|
85 <param format="fastqsanger" name="first_input" type="data" label="fastq produced by fasteris" help=""/>
|
|
86 <repeat name="input_files" title="Additional Fastq Files">
|
|
87 <param format="fastqsanger" name="additional_input" type="data" label="fastq produced by fasteris" help=""/>
|
|
88 </repeat>
|
|
89 <conditional name="Genome">
|
|
90 <param name="refGenomeSource" type="select" label="Will you select a reference genome from your history or use a built-in index?">
|
|
91 <option value="indexed">Use a built-in index</option>
|
|
92 <option value="history">Use one from the history</option>
|
|
93 </param>
|
|
94 <when value="indexed">
|
|
95 <param name="indices" type="select" label="Select a reference genome">
|
|
96 <options from_data_table="bwa_indexes">
|
|
97 <filter type="sort_by" column="2" />
|
|
98 <validator type="no_options" message="No indexes are available" />
|
|
99 </options>
|
|
100 </param>
|
|
101 </when>
|
|
102 <when value="history">
|
|
103 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
|
|
104 </when>
|
|
105 </conditional>
|
|
106 <conditional name="TE">
|
|
107 <param name="refGenomeSource" type="select" label="Will you select TE database 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 TE reference">
|
|
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="miRNAs">
|
|
124 <param name="refGenomeSource" type="select" label="Will you select miRNA 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 miRNA 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="snRNAs">
|
|
141 <param name="refGenomeSource" type="select" label="Will you select snRNA 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 snRNAs 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="rRNAs">
|
|
158 <param name="refGenomeSource" type="select" label="Will you select rRNAs 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 rRNAs 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="tRNAs">
|
|
175 <param name="refGenomeSource" type="select" label="Will you select tRNA 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 </param>
|
|
179 <when value="indexed">
|
|
180 <param name="indices" type="select" label="Select a tRNA reference">
|
|
181 <options from_data_table="bwa_indexes">
|
|
182 <filter type="sort_by" column="2" />
|
|
183 <validator type="no_options" message="No indexes are available" />
|
|
184 </options>
|
|
185 </param>
|
|
186 </when>
|
|
187 <when value="history">
|
|
188 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
|
|
189 </when>
|
|
190 </conditional>
|
|
191 <conditional name="exons">
|
|
192 <param name="refGenomeSource" type="select" label="Will you select exons database from your history or use a built-in index?">
|
|
193 <option value="indexed">Use a built-in index</option>
|
|
194 <option value="history">Use one from the history</option>
|
|
195 </param>
|
|
196 <when value="indexed">
|
|
197 <param name="indices" type="select" label="Select a exons reference">
|
|
198 <options from_data_table="bwa_indexes">
|
|
199 <filter type="sort_by" column="2" />
|
|
200 <validator type="no_options" message="No indexes are available" />
|
|
201 </options>
|
|
202 </param>
|
|
203 </when>
|
|
204 <when value="history">
|
|
205 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
|
|
206 </when>
|
|
207 </conditional>
|
|
208 <param name="min" type="integer" value="18" label="minimum read size"/>
|
|
209 <param name="max" type="integer" value="29" label="maximum read size"/>
|
|
210 <param name="si_min" type="integer" value="21" label="lower bound of siRNA range"/>
|
|
211 <param name="si_max" type="integer" value="21" label="higher bound of siRNA range"/>
|
|
212 <param name="pi_min" type="integer" value="23" label="lower bound of piRNA range"/>
|
|
213 <param name="pi_max" type="integer" value="29" label="higher bound of piRNA range"/>
|
|
214
|
|
215 <param name="mis" type="integer" value="0" label="genome mismatches"/>
|
|
216 <param name="misTE" type="integer" value="3" label="TE mismatches"/>
|
|
217 <param name="PPPon" type="boolean" checked="true" label="PPPartners"/>
|
|
218 </inputs>
|
|
219 <outputs>
|
|
220 <data format="html" name="html_out" label="${tool.name}_${first_input.name}_${on_string}"/>
|
|
221
|
|
222 <collection type="list" label="${tool.name}_fastq_outputs" name="output1">
|
|
223 <discover_datasets pattern="(?P<name>.*)" directory="fastq_dir" />
|
|
224 </collection>
|
|
225
|
|
226 </outputs>
|
|
227 </tool>
|