annotate piPipe.xml @ 3:1f1b6c9b09f1 draft

Uploaded
author romaingred
date Thu, 12 Oct 2017 10:23:53 -0400
parents 02c0b9b2cc02
children bbe202c54a29
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
198009598544 Uploaded
romaingred
parents:
diff changeset
1 <tool id="piPipe" name="piPipe" version="0.0.1">
198009598544 Uploaded
romaingred
parents:
diff changeset
2 <description>Full studies of sRNA</description>
198009598544 Uploaded
romaingred
parents:
diff changeset
3 <command interpreter="perl">
198009598544 Uploaded
romaingred
parents:
diff changeset
4
198009598544 Uploaded
romaingred
parents:
diff changeset
5 ./bin/piPipe.pl
198009598544 Uploaded
romaingred
parents:
diff changeset
6
198009598544 Uploaded
romaingred
parents:
diff changeset
7 --fastq ${first_input}
198009598544 Uploaded
romaingred
parents:
diff changeset
8 --fastq_n ${first_input.name}
198009598544 Uploaded
romaingred
parents:
diff changeset
9 #for $input_file in $input_files:
198009598544 Uploaded
romaingred
parents:
diff changeset
10 --fastq ${input_file.additional_input}
198009598544 Uploaded
romaingred
parents:
diff changeset
11 --fastq_n ${input_file.additional_input.name}
198009598544 Uploaded
romaingred
parents:
diff changeset
12 #end for
198009598544 Uploaded
romaingred
parents:
diff changeset
13
198009598544 Uploaded
romaingred
parents:
diff changeset
14 #if $Genome.refGenomeSource == "history":
198009598544 Uploaded
romaingred
parents:
diff changeset
15 --ref "${Genome.ownFile}"
198009598544 Uploaded
romaingred
parents:
diff changeset
16 --build_index
198009598544 Uploaded
romaingred
parents:
diff changeset
17 #else:
198009598544 Uploaded
romaingred
parents:
diff changeset
18 --ref "${Genome.indices.fields.path}"
198009598544 Uploaded
romaingred
parents:
diff changeset
19 #end if
198009598544 Uploaded
romaingred
parents:
diff changeset
20
198009598544 Uploaded
romaingred
parents:
diff changeset
21 #if $tRNAs.refGenomeSource == "history":
198009598544 Uploaded
romaingred
parents:
diff changeset
22 --tRNAs "${tRNAs.ownFile}"
198009598544 Uploaded
romaingred
parents:
diff changeset
23 --build_tRNAs
198009598544 Uploaded
romaingred
parents:
diff changeset
24 #else:
198009598544 Uploaded
romaingred
parents:
diff changeset
25 --tRNAs "${tRNAs.indices.fields.path}"
198009598544 Uploaded
romaingred
parents:
diff changeset
26 #end if
198009598544 Uploaded
romaingred
parents:
diff changeset
27
198009598544 Uploaded
romaingred
parents:
diff changeset
28 #if $snRNAs.refGenomeSource == "history":
198009598544 Uploaded
romaingred
parents:
diff changeset
29 --snRNAs "${snRNAs.ownFile}"
198009598544 Uploaded
romaingred
parents:
diff changeset
30 --build_snRNAs
198009598544 Uploaded
romaingred
parents:
diff changeset
31 #else:
198009598544 Uploaded
romaingred
parents:
diff changeset
32 --snRNAs "${snRNAs.indices.fields.path}"
198009598544 Uploaded
romaingred
parents:
diff changeset
33 #end if
198009598544 Uploaded
romaingred
parents:
diff changeset
34
198009598544 Uploaded
romaingred
parents:
diff changeset
35 #if $miRNAs.refGenomeSource == "history":
198009598544 Uploaded
romaingred
parents:
diff changeset
36 --miRNAs "${miRNAs.ownFile}"
198009598544 Uploaded
romaingred
parents:
diff changeset
37 --build_miRNAs
198009598544 Uploaded
romaingred
parents:
diff changeset
38 #else:
198009598544 Uploaded
romaingred
parents:
diff changeset
39 --miRNAs "${miRNAs.indices.fields.path}"
198009598544 Uploaded
romaingred
parents:
diff changeset
40 #end if
198009598544 Uploaded
romaingred
parents:
diff changeset
41
198009598544 Uploaded
romaingred
parents:
diff changeset
42 #if $exons.refGenomeSource == "history":
198009598544 Uploaded
romaingred
parents:
diff changeset
43 --exons "${exons.ownFile}"
198009598544 Uploaded
romaingred
parents:
diff changeset
44 --build_exons
198009598544 Uploaded
romaingred
parents:
diff changeset
45 #else:
198009598544 Uploaded
romaingred
parents:
diff changeset
46 --exons "${exons.indices.fields.path}"
198009598544 Uploaded
romaingred
parents:
diff changeset
47 #end if
198009598544 Uploaded
romaingred
parents:
diff changeset
48
198009598544 Uploaded
romaingred
parents:
diff changeset
49 #if $TE.refGenomeSource == "history":
198009598544 Uploaded
romaingred
parents:
diff changeset
50 --TE "${TE.ownFile}"
198009598544 Uploaded
romaingred
parents:
diff changeset
51 --build_TE
198009598544 Uploaded
romaingred
parents:
diff changeset
52 #else:
198009598544 Uploaded
romaingred
parents:
diff changeset
53 --TE "${TE.indices.fields.path}"
198009598544 Uploaded
romaingred
parents:
diff changeset
54 #end if
198009598544 Uploaded
romaingred
parents:
diff changeset
55
198009598544 Uploaded
romaingred
parents:
diff changeset
56 #if $rRNAs.refGenomeSource == "history":
198009598544 Uploaded
romaingred
parents:
diff changeset
57 --rRNAs "${rRNAs.ownFile}"
198009598544 Uploaded
romaingred
parents:
diff changeset
58 --build_rRNAs
198009598544 Uploaded
romaingred
parents:
diff changeset
59 #else:
198009598544 Uploaded
romaingred
parents:
diff changeset
60 --rRNAs "${rRNAs.indices.fields.path}"
198009598544 Uploaded
romaingred
parents:
diff changeset
61 #end if
198009598544 Uploaded
romaingred
parents:
diff changeset
62
198009598544 Uploaded
romaingred
parents:
diff changeset
63 --si_min $si_min
198009598544 Uploaded
romaingred
parents:
diff changeset
64 --si_max $si_max
198009598544 Uploaded
romaingred
parents:
diff changeset
65 --pi_min $pi_min
198009598544 Uploaded
romaingred
parents:
diff changeset
66 --pi_max $pi_max
198009598544 Uploaded
romaingred
parents:
diff changeset
67 --min $min
198009598544 Uploaded
romaingred
parents:
diff changeset
68 --max $max
198009598544 Uploaded
romaingred
parents:
diff changeset
69
198009598544 Uploaded
romaingred
parents:
diff changeset
70 --mis $mis
198009598544 Uploaded
romaingred
parents:
diff changeset
71 --misTE $misTE
198009598544 Uploaded
romaingred
parents:
diff changeset
72 --dir $html_out.files_path
198009598544 Uploaded
romaingred
parents:
diff changeset
73 --html $html_out
198009598544 Uploaded
romaingred
parents:
diff changeset
74 --PPPon $PPPon
198009598544 Uploaded
romaingred
parents:
diff changeset
75 </command>
198009598544 Uploaded
romaingred
parents:
diff changeset
76
198009598544 Uploaded
romaingred
parents:
diff changeset
77 <requirements>
198009598544 Uploaded
romaingred
parents:
diff changeset
78 <requirement type="package" version="3.4.0">R</requirement>
2
02c0b9b2cc02 Uploaded
romaingred
parents: 0
diff changeset
79 <requirement type="package" version="0.7.15">bwa</requirement>
0
198009598544 Uploaded
romaingred
parents:
diff changeset
80 <requirement type="package" version="2.26.0">bedTools</requirement>
198009598544 Uploaded
romaingred
parents:
diff changeset
81 <requirement type="package" version="1.5">samtools</requirement>
198009598544 Uploaded
romaingred
parents:
diff changeset
82 </requirements>
198009598544 Uploaded
romaingred
parents:
diff changeset
83
198009598544 Uploaded
romaingred
parents:
diff changeset
84 <inputs>
198009598544 Uploaded
romaingred
parents:
diff changeset
85 <param format="fastqsanger" name="first_input" type="data" label="fastq produced by fasteris" help=""/>
198009598544 Uploaded
romaingred
parents:
diff changeset
86 <repeat name="input_files" title="Additional Fastq Files">
198009598544 Uploaded
romaingred
parents:
diff changeset
87 <param format="fastqsanger" name="additional_input" type="data" label="fastq produced by fasteris" help=""/>
198009598544 Uploaded
romaingred
parents:
diff changeset
88 </repeat>
198009598544 Uploaded
romaingred
parents:
diff changeset
89 <conditional name="Genome">
198009598544 Uploaded
romaingred
parents:
diff changeset
90 <param name="refGenomeSource" type="select" label="Will you select a reference genome from your history or use a built-in index?">
198009598544 Uploaded
romaingred
parents:
diff changeset
91 <option value="indexed">Use a built-in index</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
92 <option value="history">Use one from the history</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
93 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
94 <when value="indexed">
198009598544 Uploaded
romaingred
parents:
diff changeset
95 <param name="indices" type="select" label="Select a reference genome">
198009598544 Uploaded
romaingred
parents:
diff changeset
96 <options from_data_table="bwa_indexes">
198009598544 Uploaded
romaingred
parents:
diff changeset
97 <filter type="sort_by" column="2" />
198009598544 Uploaded
romaingred
parents:
diff changeset
98 <validator type="no_options" message="No indexes are available" />
198009598544 Uploaded
romaingred
parents:
diff changeset
99 </options>
198009598544 Uploaded
romaingred
parents:
diff changeset
100 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
101 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
102 <when value="history">
198009598544 Uploaded
romaingred
parents:
diff changeset
103 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
198009598544 Uploaded
romaingred
parents:
diff changeset
104 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
105 </conditional>
198009598544 Uploaded
romaingred
parents:
diff changeset
106 <conditional name="TE">
198009598544 Uploaded
romaingred
parents:
diff changeset
107 <param name="refGenomeSource" type="select" label="Will you select TE database from your history or use a built-in index?">
198009598544 Uploaded
romaingred
parents:
diff changeset
108 <option value="indexed">Use a built-in index</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
109 <option value="history">Use one from the history</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
110 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
111 <when value="indexed">
198009598544 Uploaded
romaingred
parents:
diff changeset
112 <param name="indices" type="select" label="Select a TE reference">
198009598544 Uploaded
romaingred
parents:
diff changeset
113 <options from_data_table="bwa_indexes">
198009598544 Uploaded
romaingred
parents:
diff changeset
114 <filter type="sort_by" column="2" />
198009598544 Uploaded
romaingred
parents:
diff changeset
115 <validator type="no_options" message="No indexes are available" />
198009598544 Uploaded
romaingred
parents:
diff changeset
116 </options>
198009598544 Uploaded
romaingred
parents:
diff changeset
117 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
118 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
119 <when value="history">
198009598544 Uploaded
romaingred
parents:
diff changeset
120 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
198009598544 Uploaded
romaingred
parents:
diff changeset
121 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
122 </conditional>
198009598544 Uploaded
romaingred
parents:
diff changeset
123 <conditional name="miRNAs">
198009598544 Uploaded
romaingred
parents:
diff changeset
124 <param name="refGenomeSource" type="select" label="Will you select miRNA database from your history or use a built-in index?">
198009598544 Uploaded
romaingred
parents:
diff changeset
125 <option value="indexed">Use a built-in index</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
126 <option value="history">Use one from the history</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
127 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
128 <when value="indexed">
198009598544 Uploaded
romaingred
parents:
diff changeset
129 <param name="indices" type="select" label="Select a miRNA reference">
198009598544 Uploaded
romaingred
parents:
diff changeset
130 <options from_data_table="bwa_indexes">
198009598544 Uploaded
romaingred
parents:
diff changeset
131 <filter type="sort_by" column="2" />
198009598544 Uploaded
romaingred
parents:
diff changeset
132 <validator type="no_options" message="No indexes are available" />
198009598544 Uploaded
romaingred
parents:
diff changeset
133 </options>
198009598544 Uploaded
romaingred
parents:
diff changeset
134 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
135 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
136 <when value="history">
198009598544 Uploaded
romaingred
parents:
diff changeset
137 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
198009598544 Uploaded
romaingred
parents:
diff changeset
138 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
139 </conditional>
198009598544 Uploaded
romaingred
parents:
diff changeset
140 <conditional name="snRNAs">
198009598544 Uploaded
romaingred
parents:
diff changeset
141 <param name="refGenomeSource" type="select" label="Will you select snRNA database from your history or use a built-in index?">
198009598544 Uploaded
romaingred
parents:
diff changeset
142 <option value="indexed">Use a built-in index</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
143 <option value="history">Use one from the history</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
144 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
145 <when value="indexed">
198009598544 Uploaded
romaingred
parents:
diff changeset
146 <param name="indices" type="select" label="Select a snRNAs reference">
198009598544 Uploaded
romaingred
parents:
diff changeset
147 <options from_data_table="bwa_indexes">
198009598544 Uploaded
romaingred
parents:
diff changeset
148 <filter type="sort_by" column="2" />
198009598544 Uploaded
romaingred
parents:
diff changeset
149 <validator type="no_options" message="No indexes are available" />
198009598544 Uploaded
romaingred
parents:
diff changeset
150 </options>
198009598544 Uploaded
romaingred
parents:
diff changeset
151 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
152 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
153 <when value="history">
198009598544 Uploaded
romaingred
parents:
diff changeset
154 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
198009598544 Uploaded
romaingred
parents:
diff changeset
155 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
156 </conditional>
198009598544 Uploaded
romaingred
parents:
diff changeset
157 <conditional name="rRNAs">
198009598544 Uploaded
romaingred
parents:
diff changeset
158 <param name="refGenomeSource" type="select" label="Will you select rRNAs database from your history or use a built-in index?">
198009598544 Uploaded
romaingred
parents:
diff changeset
159 <option value="indexed">Use a built-in index</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
160 <option value="history">Use one from the history</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
161 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
162 <when value="indexed">
198009598544 Uploaded
romaingred
parents:
diff changeset
163 <param name="indices" type="select" label="Select a rRNAs reference">
198009598544 Uploaded
romaingred
parents:
diff changeset
164 <options from_data_table="bwa_indexes">
198009598544 Uploaded
romaingred
parents:
diff changeset
165 <filter type="sort_by" column="2" />
198009598544 Uploaded
romaingred
parents:
diff changeset
166 <validator type="no_options" message="No indexes are available" />
198009598544 Uploaded
romaingred
parents:
diff changeset
167 </options>
198009598544 Uploaded
romaingred
parents:
diff changeset
168 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
169 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
170 <when value="history">
198009598544 Uploaded
romaingred
parents:
diff changeset
171 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
198009598544 Uploaded
romaingred
parents:
diff changeset
172 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
173 </conditional>
198009598544 Uploaded
romaingred
parents:
diff changeset
174 <conditional name="tRNAs">
198009598544 Uploaded
romaingred
parents:
diff changeset
175 <param name="refGenomeSource" type="select" label="Will you select tRNA database from your history or use a built-in index?">
198009598544 Uploaded
romaingred
parents:
diff changeset
176 <option value="indexed">Use a built-in index</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
177 <option value="history">Use one from the history</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
178 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
179 <when value="indexed">
198009598544 Uploaded
romaingred
parents:
diff changeset
180 <param name="indices" type="select" label="Select a tRNA reference">
198009598544 Uploaded
romaingred
parents:
diff changeset
181 <options from_data_table="bwa_indexes">
198009598544 Uploaded
romaingred
parents:
diff changeset
182 <filter type="sort_by" column="2" />
198009598544 Uploaded
romaingred
parents:
diff changeset
183 <validator type="no_options" message="No indexes are available" />
198009598544 Uploaded
romaingred
parents:
diff changeset
184 </options>
198009598544 Uploaded
romaingred
parents:
diff changeset
185 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
186 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
187 <when value="history">
198009598544 Uploaded
romaingred
parents:
diff changeset
188 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
198009598544 Uploaded
romaingred
parents:
diff changeset
189 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
190 </conditional>
198009598544 Uploaded
romaingred
parents:
diff changeset
191 <conditional name="exons">
198009598544 Uploaded
romaingred
parents:
diff changeset
192 <param name="refGenomeSource" type="select" label="Will you select exons database from your history or use a built-in index?">
198009598544 Uploaded
romaingred
parents:
diff changeset
193 <option value="indexed">Use a built-in index</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
194 <option value="history">Use one from the history</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
195 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
196 <when value="indexed">
198009598544 Uploaded
romaingred
parents:
diff changeset
197 <param name="indices" type="select" label="Select a exons reference">
198009598544 Uploaded
romaingred
parents:
diff changeset
198 <options from_data_table="bwa_indexes">
198009598544 Uploaded
romaingred
parents:
diff changeset
199 <filter type="sort_by" column="2" />
198009598544 Uploaded
romaingred
parents:
diff changeset
200 <validator type="no_options" message="No indexes are available" />
198009598544 Uploaded
romaingred
parents:
diff changeset
201 </options>
198009598544 Uploaded
romaingred
parents:
diff changeset
202 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
203 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
204 <when value="history">
198009598544 Uploaded
romaingred
parents:
diff changeset
205 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
198009598544 Uploaded
romaingred
parents:
diff changeset
206 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
207 </conditional>
198009598544 Uploaded
romaingred
parents:
diff changeset
208 <param name="min" type="integer" value="18" label="minimum read size"/>
198009598544 Uploaded
romaingred
parents:
diff changeset
209 <param name="max" type="integer" value="29" label="maximum read size"/>
198009598544 Uploaded
romaingred
parents:
diff changeset
210 <param name="si_min" type="integer" value="21" label="lower bound of siRNA range"/>
198009598544 Uploaded
romaingred
parents:
diff changeset
211 <param name="si_max" type="integer" value="21" label="higher bound of siRNA range"/>
198009598544 Uploaded
romaingred
parents:
diff changeset
212 <param name="pi_min" type="integer" value="23" label="lower bound of piRNA range"/>
198009598544 Uploaded
romaingred
parents:
diff changeset
213 <param name="pi_max" type="integer" value="29" label="higher bound of piRNA range"/>
198009598544 Uploaded
romaingred
parents:
diff changeset
214
198009598544 Uploaded
romaingred
parents:
diff changeset
215 <param name="mis" type="integer" value="0" label="genome mismatches"/>
198009598544 Uploaded
romaingred
parents:
diff changeset
216 <param name="misTE" type="integer" value="3" label="TE mismatches"/>
198009598544 Uploaded
romaingred
parents:
diff changeset
217 <param name="PPPon" type="boolean" checked="true" label="PPPartners"/>
198009598544 Uploaded
romaingred
parents:
diff changeset
218 </inputs>
198009598544 Uploaded
romaingred
parents:
diff changeset
219 <outputs>
198009598544 Uploaded
romaingred
parents:
diff changeset
220 <data format="html" name="html_out" label="${tool.name}_${first_input.name}_${on_string}"/>
198009598544 Uploaded
romaingred
parents:
diff changeset
221
198009598544 Uploaded
romaingred
parents:
diff changeset
222 <collection type="list" label="${tool.name}_fastq_outputs" name="output1">
198009598544 Uploaded
romaingred
parents:
diff changeset
223 <discover_datasets pattern="(?P&lt;name&gt;.*)" directory="fastq_dir" />
198009598544 Uploaded
romaingred
parents:
diff changeset
224 </collection>
198009598544 Uploaded
romaingred
parents:
diff changeset
225
198009598544 Uploaded
romaingred
parents:
diff changeset
226 </outputs>
198009598544 Uploaded
romaingred
parents:
diff changeset
227 </tool>