annotate piPipe.xml @ 16:2be918bf0efe draft

Uploaded
author romaingred
date Mon, 16 Oct 2017 04:11:32 -0400
parents 98b4a5ec8e63
children b9cf69322742
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>
2
02c0b9b2cc02 Uploaded
romaingred
parents: 0
diff changeset
78 <requirement type="package" version="0.7.15">bwa</requirement>
4
bbe202c54a29 Uploaded
romaingred
parents: 2
diff changeset
79 <requirement type="package" version="2.26.0">bedtools</requirement>
0
198009598544 Uploaded
romaingred
parents:
diff changeset
80 <requirement type="package" version="1.5">samtools</requirement>
198009598544 Uploaded
romaingred
parents:
diff changeset
81 </requirements>
198009598544 Uploaded
romaingred
parents:
diff changeset
82
198009598544 Uploaded
romaingred
parents:
diff changeset
83 <inputs>
198009598544 Uploaded
romaingred
parents:
diff changeset
84 <param format="fastqsanger" name="first_input" type="data" label="fastq produced by fasteris" help=""/>
198009598544 Uploaded
romaingred
parents:
diff changeset
85 <repeat name="input_files" title="Additional Fastq Files">
198009598544 Uploaded
romaingred
parents:
diff changeset
86 <param format="fastqsanger" name="additional_input" type="data" label="fastq produced by fasteris" help=""/>
198009598544 Uploaded
romaingred
parents:
diff changeset
87 </repeat>
198009598544 Uploaded
romaingred
parents:
diff changeset
88 <conditional name="Genome">
198009598544 Uploaded
romaingred
parents:
diff changeset
89 <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
90 <option value="indexed">Use a built-in index</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
91 <option value="history">Use one from the history</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
92 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
93 <when value="indexed">
198009598544 Uploaded
romaingred
parents:
diff changeset
94 <param name="indices" type="select" label="Select a reference genome">
198009598544 Uploaded
romaingred
parents:
diff changeset
95 <options from_data_table="bwa_indexes">
198009598544 Uploaded
romaingred
parents:
diff changeset
96 <filter type="sort_by" column="2" />
198009598544 Uploaded
romaingred
parents:
diff changeset
97 <validator type="no_options" message="No indexes are available" />
198009598544 Uploaded
romaingred
parents:
diff changeset
98 </options>
198009598544 Uploaded
romaingred
parents:
diff changeset
99 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
100 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
101 <when value="history">
198009598544 Uploaded
romaingred
parents:
diff changeset
102 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
198009598544 Uploaded
romaingred
parents:
diff changeset
103 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
104 </conditional>
198009598544 Uploaded
romaingred
parents:
diff changeset
105 <conditional name="TE">
198009598544 Uploaded
romaingred
parents:
diff changeset
106 <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
107 <option value="indexed">Use a built-in index</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
108 <option value="history">Use one from the history</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
109 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
110 <when value="indexed">
198009598544 Uploaded
romaingred
parents:
diff changeset
111 <param name="indices" type="select" label="Select a TE reference">
198009598544 Uploaded
romaingred
parents:
diff changeset
112 <options from_data_table="bwa_indexes">
198009598544 Uploaded
romaingred
parents:
diff changeset
113 <filter type="sort_by" column="2" />
198009598544 Uploaded
romaingred
parents:
diff changeset
114 <validator type="no_options" message="No indexes are available" />
198009598544 Uploaded
romaingred
parents:
diff changeset
115 </options>
198009598544 Uploaded
romaingred
parents:
diff changeset
116 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
117 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
118 <when value="history">
198009598544 Uploaded
romaingred
parents:
diff changeset
119 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
198009598544 Uploaded
romaingred
parents:
diff changeset
120 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
121 </conditional>
198009598544 Uploaded
romaingred
parents:
diff changeset
122 <conditional name="miRNAs">
198009598544 Uploaded
romaingred
parents:
diff changeset
123 <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
124 <option value="indexed">Use a built-in index</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
125 <option value="history">Use one from the history</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
126 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
127 <when value="indexed">
198009598544 Uploaded
romaingred
parents:
diff changeset
128 <param name="indices" type="select" label="Select a miRNA reference">
198009598544 Uploaded
romaingred
parents:
diff changeset
129 <options from_data_table="bwa_indexes">
198009598544 Uploaded
romaingred
parents:
diff changeset
130 <filter type="sort_by" column="2" />
198009598544 Uploaded
romaingred
parents:
diff changeset
131 <validator type="no_options" message="No indexes are available" />
198009598544 Uploaded
romaingred
parents:
diff changeset
132 </options>
198009598544 Uploaded
romaingred
parents:
diff changeset
133 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
134 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
135 <when value="history">
198009598544 Uploaded
romaingred
parents:
diff changeset
136 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
198009598544 Uploaded
romaingred
parents:
diff changeset
137 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
138 </conditional>
198009598544 Uploaded
romaingred
parents:
diff changeset
139 <conditional name="snRNAs">
198009598544 Uploaded
romaingred
parents:
diff changeset
140 <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
141 <option value="indexed">Use a built-in index</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
142 <option value="history">Use one from the history</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
143 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
144 <when value="indexed">
198009598544 Uploaded
romaingred
parents:
diff changeset
145 <param name="indices" type="select" label="Select a snRNAs reference">
198009598544 Uploaded
romaingred
parents:
diff changeset
146 <options from_data_table="bwa_indexes">
198009598544 Uploaded
romaingred
parents:
diff changeset
147 <filter type="sort_by" column="2" />
198009598544 Uploaded
romaingred
parents:
diff changeset
148 <validator type="no_options" message="No indexes are available" />
198009598544 Uploaded
romaingred
parents:
diff changeset
149 </options>
198009598544 Uploaded
romaingred
parents:
diff changeset
150 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
151 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
152 <when value="history">
198009598544 Uploaded
romaingred
parents:
diff changeset
153 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
198009598544 Uploaded
romaingred
parents:
diff changeset
154 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
155 </conditional>
198009598544 Uploaded
romaingred
parents:
diff changeset
156 <conditional name="rRNAs">
198009598544 Uploaded
romaingred
parents:
diff changeset
157 <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
158 <option value="indexed">Use a built-in index</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
159 <option value="history">Use one from the history</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
160 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
161 <when value="indexed">
198009598544 Uploaded
romaingred
parents:
diff changeset
162 <param name="indices" type="select" label="Select a rRNAs reference">
198009598544 Uploaded
romaingred
parents:
diff changeset
163 <options from_data_table="bwa_indexes">
198009598544 Uploaded
romaingred
parents:
diff changeset
164 <filter type="sort_by" column="2" />
198009598544 Uploaded
romaingred
parents:
diff changeset
165 <validator type="no_options" message="No indexes are available" />
198009598544 Uploaded
romaingred
parents:
diff changeset
166 </options>
198009598544 Uploaded
romaingred
parents:
diff changeset
167 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
168 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
169 <when value="history">
198009598544 Uploaded
romaingred
parents:
diff changeset
170 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
198009598544 Uploaded
romaingred
parents:
diff changeset
171 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
172 </conditional>
198009598544 Uploaded
romaingred
parents:
diff changeset
173 <conditional name="tRNAs">
198009598544 Uploaded
romaingred
parents:
diff changeset
174 <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
175 <option value="indexed">Use a built-in index</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
176 <option value="history">Use one from the history</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
177 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
178 <when value="indexed">
198009598544 Uploaded
romaingred
parents:
diff changeset
179 <param name="indices" type="select" label="Select a tRNA reference">
198009598544 Uploaded
romaingred
parents:
diff changeset
180 <options from_data_table="bwa_indexes">
198009598544 Uploaded
romaingred
parents:
diff changeset
181 <filter type="sort_by" column="2" />
198009598544 Uploaded
romaingred
parents:
diff changeset
182 <validator type="no_options" message="No indexes are available" />
198009598544 Uploaded
romaingred
parents:
diff changeset
183 </options>
198009598544 Uploaded
romaingred
parents:
diff changeset
184 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
185 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
186 <when value="history">
198009598544 Uploaded
romaingred
parents:
diff changeset
187 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
198009598544 Uploaded
romaingred
parents:
diff changeset
188 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
189 </conditional>
198009598544 Uploaded
romaingred
parents:
diff changeset
190 <conditional name="exons">
198009598544 Uploaded
romaingred
parents:
diff changeset
191 <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
192 <option value="indexed">Use a built-in index</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
193 <option value="history">Use one from the history</option>
198009598544 Uploaded
romaingred
parents:
diff changeset
194 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
195 <when value="indexed">
198009598544 Uploaded
romaingred
parents:
diff changeset
196 <param name="indices" type="select" label="Select a exons reference">
198009598544 Uploaded
romaingred
parents:
diff changeset
197 <options from_data_table="bwa_indexes">
198009598544 Uploaded
romaingred
parents:
diff changeset
198 <filter type="sort_by" column="2" />
198009598544 Uploaded
romaingred
parents:
diff changeset
199 <validator type="no_options" message="No indexes are available" />
198009598544 Uploaded
romaingred
parents:
diff changeset
200 </options>
198009598544 Uploaded
romaingred
parents:
diff changeset
201 </param>
198009598544 Uploaded
romaingred
parents:
diff changeset
202 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
203 <when value="history">
198009598544 Uploaded
romaingred
parents:
diff changeset
204 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
198009598544 Uploaded
romaingred
parents:
diff changeset
205 </when>
198009598544 Uploaded
romaingred
parents:
diff changeset
206 </conditional>
198009598544 Uploaded
romaingred
parents:
diff changeset
207 <param name="min" type="integer" value="18" label="minimum read size"/>
198009598544 Uploaded
romaingred
parents:
diff changeset
208 <param name="max" type="integer" value="29" label="maximum read size"/>
198009598544 Uploaded
romaingred
parents:
diff changeset
209 <param name="si_min" type="integer" value="21" label="lower bound of siRNA range"/>
198009598544 Uploaded
romaingred
parents:
diff changeset
210 <param name="si_max" type="integer" value="21" label="higher bound of siRNA range"/>
198009598544 Uploaded
romaingred
parents:
diff changeset
211 <param name="pi_min" type="integer" value="23" label="lower bound of piRNA range"/>
198009598544 Uploaded
romaingred
parents:
diff changeset
212 <param name="pi_max" type="integer" value="29" label="higher bound of piRNA range"/>
198009598544 Uploaded
romaingred
parents:
diff changeset
213
198009598544 Uploaded
romaingred
parents:
diff changeset
214 <param name="mis" type="integer" value="0" label="genome mismatches"/>
198009598544 Uploaded
romaingred
parents:
diff changeset
215 <param name="misTE" type="integer" value="3" label="TE mismatches"/>
198009598544 Uploaded
romaingred
parents:
diff changeset
216 <param name="PPPon" type="boolean" checked="true" label="PPPartners"/>
198009598544 Uploaded
romaingred
parents:
diff changeset
217 </inputs>
198009598544 Uploaded
romaingred
parents:
diff changeset
218 <outputs>
13
98b4a5ec8e63 Uploaded
romaingred
parents: 6
diff changeset
219 <data format="html" name="html_out" label="${tool.name}_${first_input.name}_${on_string}"/>
0
198009598544 Uploaded
romaingred
parents:
diff changeset
220
13
98b4a5ec8e63 Uploaded
romaingred
parents: 6
diff changeset
221 <collection format ="fastqsanger" type="list" label="${tool.name}_fastq_outputs" name="output_fastqsanger">
16
2be918bf0efe Uploaded
romaingred
parents: 13
diff changeset
222 <discover_datasets format ="fastqsanger" pattern="(?P&lt;name&gt;.*)" directory="fastq_dir" />
0
198009598544 Uploaded
romaingred
parents:
diff changeset
223 </collection>
198009598544 Uploaded
romaingred
parents:
diff changeset
224
198009598544 Uploaded
romaingred
parents:
diff changeset
225 </outputs>
198009598544 Uploaded
romaingred
parents:
diff changeset
226 </tool>