comparison tests.xml @ 84:cb62314a6297 draft

planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit ac73da32d59853ca563e7939d05016a6f3a6899e-dirty
author yating-l
date Fri, 03 Nov 2017 17:08:19 -0400
parents
children a65e52152476
comparison
equal deleted inserted replaced
83:0bc486356e2a 84:cb62314a6297
1 <macro>
2 <xml name="test_cases">
3 <!-- Test with only the fasta file -->
4 <test>
5 <param name="genome_name" value="Dbia3"/>
6 <param name="fasta_file" value="common/dbia3.fa"/>
7 <output name="output" file="only_genome/only_genome.html">
8 <!-- Use macro to check the whole common structure without repeated code -->
9 <expand macro="verify_hub_structure_no_track" test="only_genome" />
10 </output>
11 </test>
12
13 <!-- Test with Bam -->
14 <test>
15 <param name="genome_name" value="Dbia3"/>
16 <param name="fasta_file" value="common/dbia3.fa"/>
17 <repeat name="group">
18 <param name="group_name" value="Default group"/>
19 <repeat name="format">
20 <conditional name="formatChoice">
21 <param name="format_select" value="bam"/>
22 <param name="BAM" value="bam/inputs/HISAT2_Accepted_Hits.bam" />
23 <param name="longLabel" value="HISAT sequence alignment" />
24 <param name="track_color" value="#000000"/>
25 </conditional>
26 </repeat>
27 </repeat>
28 <output name="output" file="bam/bam.html">
29 <!-- Verify tracks folder contains bam and bai -->
30 <extra_files type="file"
31 name="myHub/Dbia3/tracks/HISAT2_Accepted_Hits.bam"
32 value="bam/myHub/Dbia3/tracks/HISAT2_Accepted_Hits.bam"
33 compare="sim_size"
34 />
35 <extra_files type="file"
36 name="myHub/Dbia3/tracks/HISAT2_Accepted_Hits.bam.bai"
37 value="bam/myHub/Dbia3/tracks/HISAT2_Accepted_Hits.bam.bai"
38 compare="sim_size"
39 />
40 <!-- Use macro to check the whole common structure without repeated code -->
41 <expand macro="verify_hub_structure" test="bam" />
42 </output>
43 </test>
44
45 <!-- Test with Bed Generic -->
46 <test>
47 <param name="genome_name" value="Dbia3"/>
48 <param name="fasta_file" value="common/dbia3.fa"/>
49 <repeat name="group">
50 <param name="group_name" value="Default group"/>
51 <repeat name="format">
52 <conditional name="formatChoice">
53 <param name="format_select" value="bed" />
54 <conditional name="bedChoice">
55 <param name="bed_select" value="bed_generic"/>
56 <param name="BED" ftype="bed" value="bed_generic/inputs/TBLASTN_Alignment_to_proteins"/>
57 <param name="longLabel" value="TBLASTN alignment" />
58 <param name="track_color" value="#000000"/>
59 </conditional>
60 </conditional>
61 </repeat>
62 </repeat>
63 <output name="output" file="bed_generic/bed_generic.html">
64 <extra_files type="file"
65 name="myHub/Dbia3/tracks/TBLASTN_Alignment_to_proteins.bb"
66 value="bed_generic/myHub/Dbia3/tracks/TBLASTN_Alignment_to_proteins.bb"
67 compare="sim_size"
68 />
69 <expand macro="verify_hub_structure" test="bed_generic" />
70 </output>
71 </test>
72
73 <!-- Test with Bed Simple repeat -->
74 <test>
75 <param name="genome_name" value="Dbia3"/>
76 <param name="fasta_file" value="common/dbia3.fa"/>
77 <repeat name="group">
78 <param name="group_name" value="Default group"/>
79 <repeat name="format">
80 <conditional name="formatChoice">
81 <param name="format_select" value="bed" />
82 <conditional name="bedChoice">
83 <param name="bed_select" value="bed_simple_repeats_option"/>
84 <param name="BED_simple_repeats" ftype="bed" value="bed_simple_repeats/inputs/Repeating_Elements_by_TrfBig"/>
85 <param name="longLabel" value="Simple repeat" />
86 <param name="track_color" value="#000000"/>
87 </conditional>
88 </conditional>
89 </repeat>
90 </repeat>
91 <output name="output" file="bed_simple_repeats/bed_simple_repeats_trackhub.html">
92 <extra_files type="file"
93 name="myHub/Dbia3/tracks/Repeating_Elements_by_TrfBig.bb"
94 value="bed_simple_repeats/myHub/Dbia3/tracks/Repeating_Elements_by_TrfBig.bb"
95 compare="sim_size"
96 />
97 <expand macro="verify_hub_structure" test="bed_simple_repeats" />
98 </output>
99 </test>
100
101 <!-- Test with Psl -->
102 <test>
103 <param name="genome_name" value="Dbia3"/>
104 <param name="fasta_file" value="common/dbia3.fa"/>
105 <repeat name="group">
106 <param name="group_name" value="Default group"/>
107 <repeat name="format">
108 <conditional name="formatChoice">
109 <param name="format_select" value="psl"/>
110 <param name="PSL" value="psl/inputs/blastXmlToPsl"/>
111 <param name="longLabel" value="BLAST Alignment" />
112 <param name="track_color" value="#000000"/>
113 </conditional>
114 </repeat>
115 </repeat>
116 <output name="output" file="psl/psl_trackhub.html">
117 <extra_files type="file"
118 name="myHub/Dbia3/tracks/blastXmlToPsl.bb"
119 value="psl/myHub/Dbia3/tracks/blastXmlToPsl.bb"
120 compare="sim_size"
121 />
122 <expand macro="verify_hub_structure" test="psl" />
123 </output>
124 </test>
125
126 <!-- Test with BigWig -->
127 <test>
128 <param name="genome_name" value="Dbia3"/>
129 <param name="fasta_file" value="common/dbia3.fa"/>
130 <repeat name="group">
131 <param name="group_name" value="Default group"/>
132 <repeat name="format">
133 <conditional name="formatChoice">
134 <param name="format_select" value="bigwig"/>
135 <param name="BIGWIG" value="bigwig/inputs/RNA-Seq_Alignment_Coverage"/>
136 <param name="longLabel" value="RNA-Seq Coverage" />
137 <param name="track_color" value="#000000"/>
138 </conditional>
139 </repeat>
140 </repeat>
141 <output name="output" file="bigwig/bigwig.html">
142 <extra_files type="file"
143 name="myHub/Dbia3/tracks/RNA-Seq_Alignment_Coverage.bigwig"
144 value="bigwig/myHub/Dbia3/tracks/RNA-Seq_Alignment_Coverage.bigwig"
145 compare="sim_size"
146 />
147 <expand macro="verify_hub_structure" test="bigwig" />
148 <!-- check additional trackDb settings for BigWig -->
149 <extra_files type="file" name="myHub/Dbia3/trackDb.txt">
150 <assert_contents>
151 <has_text text="autoScale"/>
152 <has_text text="maxHeightPixels"/>
153 <has_text text="windowingFunction"/>
154 </assert_contents>
155 </extra_files>
156 </output>
157 </test>
158
159 <!-- Test with GFF3 -->
160 <test>
161 <param name="genome_name" value="Dbia3"/>
162 <param name="fasta_file" value="common/dbia3.fa"/>
163 <repeat name="group">
164 <param name="group_name" value="Default group"/>
165 <repeat name="format">
166 <conditional name="formatChoice">
167 <param name="format_select" value="gff3"/>
168 <param name="GFF3" value="gff3/inputs/Augustus_Gene_Predictions"/>
169 <param name="longLabel" value="Augustus" />
170 <param name="track_color" value="#000000"/>
171 </conditional>
172 </repeat>
173 </repeat>
174 <output name="output" file="gff3/gff3_trackhub.html">
175 <extra_files type="file"
176 name="myHub/Dbia3/tracks/Augustus_Gene_Predictions.bb"
177 value="gff3/myHub/Dbia3/tracks/Augustus_Gene_Predictions.bb"
178 compare="sim_size"
179 />
180 <expand macro="verify_hub_structure" test="gff3" />
181 </output>
182 </test>
183
184 <!-- Test with GTF -->
185 <test>
186 <param name="genome_name" value="Dbia3"/>
187 <param name="fasta_file" value="common/dbia3.fa"/>
188 <repeat name="group">
189 <param name="group_name" value="Default group"/>
190 <repeat name="format">
191 <conditional name="formatChoice">
192 <param name="format_select" value="gtf"/>
193 <param name="GTF" value="gtf/inputs/StringTie_Assembled_Transcripts"/>
194 <param name="longLabel" value="StringTie transcripts" />
195 <param name="track_color" value="#000000"/>
196 </conditional>
197 </repeat>
198 </repeat>
199 <output name="output" file="gtf/gtf_trackhub.html">
200 <extra_files type="file"
201 name="myHub/Dbia3/tracks/StringTie_Assembled_Transcripts.bb"
202 value="gtf/myHub/Dbia3/tracks/StringTie_Assembled_Transcripts.bb"
203 compare="sim_size"
204 />
205 <expand macro="verify_hub_structure" test="gtf" />
206 </output>
207 </test>
208
209 <!-- Test with BLAT Alignment -->
210 <test>
211 <param name="genome_name" value="Dbia3"/>
212 <param name="fasta_file" value="common/dbia3.fa"/>
213 <repeat name="group">
214 <param name="group_name" value="Default group"/>
215 <repeat name="format">
216 <conditional name="formatChoice">
217 <param name="format_select" value="bed" />
218 <conditional name="bedChoice">
219 <param name="bed_select" value="bed_blat_alignment_option"/>
220 <param name="BED_blat_alignment" ftype="bed" value="bed_blat_alignment/inputs/BLAT_alignment_bigpsl"/>
221 <param name="longLabel" value="BLAT alignment" />
222 <param name="track_color" value="#000000"/>
223 <param name="database" value="NCBI" />
224 </conditional>
225 </conditional>
226 </repeat>
227 </repeat>
228 <output name="output" file="bed_blat_alignment/blat_alignment_trackhub.html">
229 <extra_files type="file"
230 name="myHub/Dbia3/tracks/BLAT_alignment_bigpsl.bb"
231 value="bed_blat_alignment/myHub/Dbia3/tracks/BLAT_alignment_bigpsl.bb"
232 compare="sim_size"
233 />
234 <expand macro="verify_hub_structure" test="bed_blat_alignment" />
235 <!-- check additional trackDb settings for BLAT -->
236 <extra_files type="file" name="myHub/Dbia3/trackDb.txt">
237 <assert_contents>
238 <has_text text="searchIndex"/>
239 <has_text text="url"/>
240 <has_text text="urlLabel"/>
241 <has_text text="iframeUrl"/>
242 <has_text text="iframeOptions"/>
243 </assert_contents>
244 </extra_files>
245 </output>
246 </test>
247
248 <!-- Test with BLAST Alignment -->
249 <test>
250 <param name="genome_name" value="Dbia3"/>
251 <param name="fasta_file" value="common/dbia3.fa"/>
252 <repeat name="group">
253 <param name="group_name" value="Default group"/>
254 <repeat name="format">
255 <conditional name="formatChoice">
256 <param name="format_select" value="bed" />
257 <conditional name="bedChoice">
258 <param name="bed_select" value="bed_blast_alignment_option"/>
259 <param name="BED_blast_alignment" ftype="bed" value="bed_blast_alignment/inputs/BLAST_alignment_bigpsl"/>
260 <param name="longLabel" value="BLAST alignment" />
261 <param name="track_color" value="#000000"/>
262 <param name="database" value="NCBI" />
263 </conditional>
264 </conditional>
265 </repeat>
266 </repeat>
267 <output name="output" file="bed_blast_alignment/blast_alignment_trackhub.html">
268 <extra_files type="file"
269 name="myHub/Dbia3/tracks/BLAST_alignment_bigpsl.bb"
270 value="bed_blast_alignment/myHub/Dbia3/tracks/BLAST_alignment_bigpsl.bb"
271 compare="sim_size"
272 />
273 <expand macro="verify_hub_structure" test="bed_blast_alignment" />
274 <!-- check additional trackDb settings for BLAST -->
275 <extra_files type="file" name="myHub/Dbia3/trackDb.txt">
276 <assert_contents>
277 <has_text text="searchIndex"/>
278 <has_text text="url"/>
279 <has_text text="urlLabel"/>
280 <has_text text="iframeUrl"/>
281 <has_text text="iframeOptions"/>
282 </assert_contents>
283 </extra_files>
284 </output>
285 </test>
286
287 <!-- Test with Regtools Splice Junctions -->
288 <test>
289 <param name="genome_name" value="Dbia3"/>
290 <param name="fasta_file" value="common/dbia3.fa"/>
291 <repeat name="group">
292 <param name="group_name" value="Default group"/>
293 <repeat name="format">
294 <conditional name="formatChoice">
295 <param name="format_select" value="bed" />
296 <conditional name="bedChoice">
297 <param name="bed_select" value="bed_splice_junctions_option"/>
298 <param name="BED_splice_junctions" ftype="bed" value="bed_splice_junctions/inputs/regtools_junctions"/>
299 <param name="longLabel" value="Splice junctions" />
300 <param name="track_color" value="#000000"/>
301 </conditional>
302 </conditional>
303 </repeat>
304 </repeat>
305 <output name="output" file="bed_splice_junctions/splice_junctions_trackhub.html">
306 <extra_files type="file"
307 name="myHub/Dbia3/tracks/regtools_junctions.bb"
308 value="bed_splice_junctions/myHub/Dbia3/tracks/regtools_junctions.bb"
309 compare="sim_size"
310 />
311 <expand macro="verify_hub_structure" test="bed_splice_junctions" />
312 </output>
313 </test>
314
315 <!-- Test with Cytoband -->
316 <test>
317 <param name="genome_name" value="Dbia3"/>
318 <param name="fasta_file" value="common/dbia3.fa"/>
319 <repeat name="group">
320 <param name="group_name" value="Default group"/>
321 <repeat name="format">
322 <conditional name="formatChoice">
323 <param name="format_select" value="bed" />
324 <conditional name="bedChoice">
325 <param name="bed_select" value="bed_cytoBand"/>
326 <param name="BED_cytoBand" ftype="bed" value="bed_cytoband/inputs/Cytoband"/>
327 <param name="longLabel" value="Cytoband" />
328 <param name="track_color" value="#000000"/>
329 </conditional>
330 </conditional>
331 </repeat>
332 </repeat>
333 <output name="output" file="bed_cytoband/cytoband_trackhub.html">
334 <extra_files type="file"
335 name="myHub/Dbia3/tracks/Cytoband.bb"
336 value="bed_cytoband/myHub/Dbia3/tracks/Cytoband.bb"
337 compare="sim_size"
338 />
339 <expand macro="verify_hub_structure" test="bed_cytoband" />
340 <extra_files type="file" name="myHub/Dbia3/trackDb.txt">
341 <assert_contents>
342 <has_text text="track cytoBandIdeo"/>
343 </assert_contents>
344 </extra_files>
345 </output>
346 </test>
347
348 <!-- Test with bigBed -->
349 <test>
350 <param name="genome_name" value="Dbia3"/>
351 <param name="fasta_file" value="common/dbia3.fa"/>
352 <repeat name="group">
353 <param name="group_name" value="Default group"/>
354 <repeat name="format">
355 <conditional name="formatChoice">
356 <param name="format_select" value="bigbed"/>
357 <param name="BIGBED" value="big_bed/inputs/BLAT_alignment_bigbed" />
358 <param name="longLabel" value="bigBed" />
359 <param name="track_color" value="#000000"/>
360 </conditional>
361 </repeat>
362 </repeat>
363 <output name="output" file="big_bed/bigbed_trackhub.html">
364 <extra_files type="file"
365 name="myHub/Dbia3/tracks/BLAT_alignment_bigbed.bigbed"
366 value="big_bed/myHub/Dbia3/tracks/BLAT_alignment_bigbed.bigbed"
367 compare="sim_size"
368 />
369 <expand macro="verify_hub_structure" test="big_bed" />
370 </output>
371 </test>
372
373 <!-- Test with one group and multiple tracks -->
374 <test>
375 <param name="genome_name" value="Dbia3"/>
376 <param name="fasta_file" value="common/dbia3.fa"/>
377 <repeat name="group">
378 <param name="group_name" value="Default group"/>
379 <repeat name="format">
380 <conditional name="formatChoice">
381 <param name="format_select" value="gtf"/>
382 <param name="GTF" value="gtf/inputs/StringTie_Assembled_Transcripts"/>
383 <param name="track_color" value="#000000"/>
384 </conditional>
385 </repeat>
386 <repeat name="format">
387 <conditional name="formatChoice">
388 <param name="format_select" value="gff3"/>
389 <param name="GFF3" value="gff3/inputs/Augustus_Gene_Predictions"/>
390 <param name="track_color" value="#000000"/>
391 </conditional>
392 </repeat>
393 </repeat>
394 <output name="output" file="gtf_gff/gtf_gff_trackhub.html">
395 <extra_files type="file"
396 name="myHub/Dbia3/tracks/StringTie_Assembled_Transcripts.bb"
397 value="gtf/myHub/Dbia3/tracks/StringTie_Assembled_Transcripts.bb"
398 compare="sim_size"
399 />
400 <extra_files type="file"
401 name="myHub/Dbia3/tracks/Augustus_Gene_Predictions.bb"
402 value="gff3/myHub/Dbia3/tracks/Augustus_Gene_Predictions.bb"
403 compare="sim_size"
404 />
405 <expand macro="verify_hub_structure" test="gtf_gff" />
406 </output>
407 </test>
408
409 <!-- Test with one group and all the supported datatypes -->
410 <test>
411 <param name="genome_name" value="Dbia3"/>
412 <param name="fasta_file" value="common/dbia3.fa"/>
413 <repeat name="group">
414 <param name="group_name" value="Default group"/>
415 <repeat name="format">
416 <conditional name="formatChoice">
417 <param name="format_select" value="bam"/>
418 <param name="BAM" value="bam/inputs/HISAT2_Accepted_Hits.bam"/>
419 <param name="track_color" value="#000000"/>
420 </conditional>
421 </repeat>
422 <repeat name="format">
423 <conditional name="formatChoice">
424 <param name="format_select" value="bed"/>
425 <conditional name="bedChoice">
426 <param name="bed_select" value="bed_generic"/>
427 <param name="BED" ftype="bed" value="bed_generic/inputs/TBLASTN_Alignment_to_proteins"/>
428 <param name="track_color" value="#000000"/>
429 </conditional>
430 </conditional>
431 </repeat>
432 <repeat name="format">
433 <conditional name="formatChoice">
434 <param name="format_select" value="bed"/>
435 <conditional name="bedChoice">
436 <param name="bed_select" value="bed_simple_repeats_option"/>
437 <param name="BED_simple_repeats" ftype="bed"
438 value="bed_simple_repeats/inputs/Repeating_Elements_by_TrfBig"/>
439 <param name="track_color" value="#000000"/>
440 </conditional>
441 </conditional>
442 </repeat>
443 <repeat name="format">
444 <conditional name="formatChoice">
445 <param name="format_select" value="psl"/>
446 <param name="PSL" value="psl/inputs/blastXmlToPsl"/>
447 <param name="track_color" value="#000000"/>
448 </conditional>
449 </repeat>
450 <repeat name="format">
451 <conditional name="formatChoice">
452 <param name="format_select" value="bigwig"/>
453 <param name="BIGWIG" value="bigwig/inputs/RNA-Seq_Alignment_Coverage"/>
454 <param name="track_color" value="#000000"/>
455 </conditional>
456 </repeat>
457 <repeat name="format">
458 <conditional name="formatChoice">
459 <param name="format_select" value="gff3"/>
460 <param name="GFF3" value="gff3/inputs/Augustus_Gene_Predictions"/>
461 <param name="track_color" value="#000000"/>
462 </conditional>
463 </repeat>
464 <repeat name="format">
465 <conditional name="formatChoice">
466 <param name="format_select" value="gtf"/>
467 <param name="GTF" value="gtf/inputs/StringTie_Assembled_Transcripts"/>
468 <param name="track_color" value="#000000"/>
469 </conditional>
470 </repeat>
471 <repeat name="format">
472 <conditional name="formatChoice">
473 <param name="format_select" value="bed" />
474 <conditional name="bedChoice">
475 <param name="bed_select" value="bed_cytoBand"/>
476 <param name="BED_cytoBand" ftype="bed" value="bed_cytoband/inputs/Cytoband"/>
477 <param name="track_color" value="#000000"/>
478 </conditional>
479 </conditional>
480 </repeat>
481 <repeat name="format">
482 <conditional name="formatChoice">
483 <param name="format_select" value="bed" />
484 <conditional name="bedChoice">
485 <param name="bed_select" value="bed_splice_junctions_option"/>
486 <param name="BED_splice_junctions" ftype="bed" value="bed_splice_junctions/inputs/regtools_junctions"/>
487 <param name="track_color" value="#000000"/>
488 </conditional>
489 </conditional>
490 </repeat>
491 <repeat name="format">
492 <conditional name="formatChoice">
493 <param name="format_select" value="bed" />
494 <conditional name="bedChoice">
495 <param name="bed_select" value="bed_blast_alignment_option"/>
496 <param name="BED_blast_alignment" ftype="bed" value="bed_blast_alignment/inputs/BLAST_alignment_bigpsl"/>
497 <param name="track_color" value="#000000"/>
498 <param name="database" value="NCBI" />
499 </conditional>
500 </conditional>
501 </repeat>
502 <repeat name="format">
503 <conditional name="formatChoice">
504 <param name="format_select" value="bed" />
505 <conditional name="bedChoice">
506 <param name="bed_select" value="bed_blat_alignment_option"/>
507 <param name="BED_blat_alignment" ftype="bed" value="bed_blat_alignment/inputs/BLAT_alignment_bigpsl"/>
508 <param name="track_color" value="#000000"/>
509 <param name="database" value="NCBI" />
510 </conditional>
511 </conditional>
512 </repeat>
513 </repeat>
514 <output name="output" file="all_datatypes/all_datatypes_trackhub.html">
515 <!-- verify tracks folder contains all the files -->
516 <extra_files type="file"
517 name="myHub/Dbia3/tracks/HISAT2_Accepted_Hits.bam"
518 value="all_datatypes/myHub/Dbia3/tracks/HISAT2_Accepted_Hits.bam"
519 compare="sim_size"
520 />
521 <extra_files type="file"
522 name="myHub/Dbia3/tracks/HISAT2_Accepted_Hits.bam.bai"
523 value="all_datatypes/myHub/Dbia3/tracks/HISAT2_Accepted_Hits.bam.bai"
524 compare="sim_size"
525 />
526 <extra_files type="file"
527 name="myHub/Dbia3/tracks/TBLASTN_Alignment_to_proteins.bb"
528 value="all_datatypes/myHub/Dbia3/tracks/TBLASTN_Alignment_to_proteins.bb"
529 compare="sim_size"
530 />
531 <extra_files type="file"
532 name="myHub/Dbia3/tracks/Repeating_Elements_by_TrfBig.bb"
533 value="all_datatypes/myHub/Dbia3/tracks/Repeating_Elements_by_TrfBig.bb"
534 compare="sim_size"
535 />
536 <extra_files type="file"
537 name="myHub/Dbia3/tracks/blastXmlToPsl.bb"
538 value="all_datatypes/myHub/Dbia3/tracks/blastXmlToPsl.bb"
539 compare="sim_size"
540 />
541 <extra_files type="file"
542 name="myHub/Dbia3/tracks/RNA-Seq_Alignment_Coverage.bigwig"
543 value="all_datatypes/myHub/Dbia3/tracks/RNA-Seq_Alignment_Coverage.bigwig"
544 compare="sim_size"
545 />
546 <extra_files type="file"
547 name="myHub/Dbia3/tracks/Augustus_Gene_Predictions.bb"
548 value="all_datatypes/myHub/Dbia3/tracks/Augustus_Gene_Predictions.bb"
549 compare="sim_size"
550 />
551 <extra_files type="file"
552 name="myHub/Dbia3/tracks/StringTie_Assembled_Transcripts.bb"
553 value="all_datatypes/myHub/Dbia3/tracks/StringTie_Assembled_Transcripts.bb"
554 compare="sim_size"
555 />
556 <extra_files type="file"
557 name="myHub/Dbia3/tracks/Cytoband.bb"
558 value="all_datatypes/myHub/Dbia3/tracks/Cytoband.bb"
559 compare="sim_size"
560 />
561 <extra_files type="file"
562 name="myHub/Dbia3/tracks/regtools_junctions.bb"
563 value="all_datatypes/myHub/Dbia3/tracks/regtools_junctions.bb"
564 compare="sim_size"
565 />
566 <extra_files type="file"
567 name="myHub/Dbia3/tracks/BLAST_alignment_bigpsl.bb"
568 value="all_datatypes/myHub/Dbia3/tracks/BLAST_alignment_bigpsl.bb"
569 compare="sim_size"
570 />
571 <extra_files type="file"
572 name="myHub/Dbia3/tracks/BLAT_alignment_bigpsl.bb"
573 value="all_datatypes/myHub/Dbia3/tracks/BLAT_alignment_bigpsl.bb"
574 compare="sim_size"
575 />
576 <expand macro="verify_hub_structure" test="all_datatypes" />
577 </output>
578 </test>
579
580 <!-- Test with two groups and no tracks -->
581 <test>
582 <param name="genome_name" value="Dbia3"/>
583 <param name="fasta_file" value="common/dbia3.fa"/>
584 <repeat name="group">
585 <param name="group_name" value="Default group"/>
586 </repeat>
587 <repeat name="group">
588 <param name="group_name" value="Other group"/>
589 </repeat>
590 <output name="output" file="two_groups_no_track/two_groups_no_track_trackhub.html">
591 <expand macro="verify_hub_structure_no_track" test="two_groups_no_track" />
592 </output>
593 </test>
594
595 <!-- Test with two groups and one track in first -->
596 <test>
597 <param name="genome_name" value="Dbia3"/>
598 <param name="fasta_file" value="common/dbia3.fa"/>
599 <repeat name="group">
600 <param name="group_name" value="Default group"/>
601 <repeat name="format">
602 <conditional name="formatChoice">
603 <param name="format_select" value="bigwig"/>
604 <param name="BIGWIG" value="bigwig/inputs/RNA-Seq_Alignment_Coverage"/>
605 <param name="track_color" value="#000000"/>
606 </conditional>
607 </repeat>
608 </repeat>
609 <repeat name="group">
610 <param name="group_name" value="Other group"/>
611 </repeat>
612 <output name="output" file="two_groups_one_track_first/two_groups_one_track_first_trackhub.html">
613 <!-- Check tracks exist -->
614 <extra_files type="file"
615 name="myHub/Dbia3/tracks/RNA-Seq_Alignment_Coverage.bigwig"
616 value="bigwig/myHub/Dbia3/tracks/RNA-Seq_Alignment_Coverage.bigwig"
617 compare="sim_size"
618 />
619 <expand macro="verify_hub_structure" test="two_groups_one_track_first" />
620 </output>
621 </test>
622
623 <!-- Test with two groups and one track in both -->
624 <test>
625 <param name="genome_name" value="Dbia3"/>
626 <param name="fasta_file" value="common/dbia3.fa"/>
627 <repeat name="group">
628 <param name="group_name" value="Default group"/>
629 <repeat name="format">
630 <conditional name="formatChoice">
631 <param name="format_select" value="bigwig"/>
632 <param name="BIGWIG" value="bigwig/inputs/RNA-Seq_Alignment_Coverage"/>
633 <param name="track_color" value="#000000"/>
634 </conditional>
635 </repeat>
636 </repeat>
637 <repeat name="group">
638 <param name="group_name" value="Other group"/>
639 <repeat name="format">
640 <conditional name="formatChoice">
641 <param name="format_select" value="gtf"/>
642 <param name="GTF" value="gtf/inputs/StringTie_Assembled_Transcripts"/>
643 <param name="track_color" value="#000000"/>
644 </conditional>
645 </repeat>
646 </repeat>
647 <output name="output" file="two_groups_one_track_both/two_groups_one_track_both_trackhub.html">
648 <!-- Check tracks exist -->
649 <!-- First group -->
650 <extra_files type="file"
651 name="myHub/Dbia3/tracks/RNA-Seq_Alignment_Coverage.bigwig"
652 value="bigwig/myHub/Dbia3/tracks/RNA-Seq_Alignment_Coverage.bigwig"
653 compare="sim_size"
654 />
655
656 <!-- Second group -->
657 <extra_files type="file"
658 name="myHub/Dbia3/tracks/StringTie_Assembled_Transcripts.bb"
659 value="gtf/myHub/Dbia3/tracks/StringTie_Assembled_Transcripts.bb"
660 compare="sim_size"
661 />
662 <expand macro="verify_hub_structure" test="two_groups_one_track_both" />
663 <!-- Check the groups.txt exists and is properly populated -->
664 </output>
665 </test>
666
667 <!-- Test with two groups and multiple tracks in both -->
668 <test>
669 <param name="genome_name" value="Dbia3"/>
670 <param name="fasta_file" value="common/dbia3.fa"/>
671 <repeat name="group">
672 <param name="group_name" value="Default group"/>
673 <repeat name="format">
674 <conditional name="formatChoice">
675 <param name="format_select" value="bigwig"/>
676 <param name="BIGWIG" value="bigwig/inputs/RNA-Seq_Alignment_Coverage"/>
677 <param name="track_color" value="#000000"/>
678 </conditional>
679 </repeat>
680 <repeat name="format">
681 <conditional name="formatChoice">
682 <param name="format_select" value="bam"/>
683 <param name="BAM" value="bam/inputs/HISAT2_Accepted_Hits.bam"/>
684 <param name="track_color" value="#000000"/>
685 </conditional>
686 </repeat>
687 </repeat>
688 <repeat name="group">
689 <param name="group_name" value="Other group"/>
690 <repeat name="format">
691 <conditional name="formatChoice">
692 <param name="format_select" value="gtf"/>
693 <param name="GTF" value="gtf/inputs/StringTie_Assembled_Transcripts"/>
694 <param name="track_color" value="#000000"/>
695 </conditional>
696 </repeat>
697 <repeat name="format">
698 <conditional name="formatChoice">
699 <param name="format_select" value="gff3"/>
700 <param name="GFF3" value="gff3_multi_fasta/inputs/Multi-Fasta_GlimmerHMM_Gene_Predictions"/>
701 <param name="track_color" value="#000000"/>
702 </conditional>
703 </repeat>
704 </repeat>
705 <output name="output" file="two_groups_multiple_tracks/two_groups_multiple_tracks_trackhub.html">
706 <!-- Check tracks exist -->
707 <!-- First group -->
708 <extra_files type="file"
709 name="myHub/Dbia3/tracks/RNA-Seq_Alignment_Coverage.bigwig"
710 value="bigwig/myHub/Dbia3/tracks/RNA-Seq_Alignment_Coverage.bigwig"
711 compare="sim_size"
712 />
713 <extra_files type="file"
714 name="myHub/Dbia3/tracks/HISAT2_Accepted_Hits.bam"
715 value="bam/myHub/Dbia3/tracks/HISAT2_Accepted_Hits.bam"
716 compare="sim_size"
717 />
718 <extra_files type="file"
719 name="myHub/Dbia3/tracks/HISAT2_Accepted_Hits.bam.bai"
720 value="bam/myHub/Dbia3/tracks/HISAT2_Accepted_Hits.bam.bai"
721 compare="sim_size"
722 />
723
724 <!-- Second group -->
725 <extra_files type="file"
726 name="myHub/Dbia3/tracks/StringTie_Assembled_Transcripts.bb"
727 value="gtf/myHub/Dbia3/tracks/StringTie_Assembled_Transcripts.bb"
728 compare="sim_size"
729 />
730 <extra_files type="file"
731 name="myHub/Dbia3/tracks/Multi-Fasta_GlimmerHMM_Gene_Predictions.bb"
732 value="gff3_multi_fasta/myHub/Dbia3/tracks/Multi-Fasta_GlimmerHMM_Gene_Predictions.bb"
733 compare="sim_size"
734 />
735 <expand macro="verify_hub_structure" test="two_groups_multiple_tracks" />
736 </output>
737 </test>
738
739 <!-- Test default color in a track -->
740 <test>
741 <param name="genome_name" value="Dbia3"/>
742 <param name="fasta_file" value="common/dbia3.fa"/>
743 <repeat name="group">
744 <param name="group_name" value="Default group"/>
745 <repeat name="format">
746 <conditional name="formatChoice">
747 <param name="format_select" value="bam"/>
748 <param name="BAM" value="bam/inputs/HISAT2_Accepted_Hits.bam"/>
749 <param name="track_color" value="#000000"/>
750 </conditional>
751 </repeat>
752 </repeat>
753 <output name="output" file="default_color/default_color_trackhub.html">
754 <expand macro="verify_hub_structure" test="default_color" />
755 <!-- Verify trackDb.txt contains the color 0,0,0 -->
756 <extra_files type="file" name="myHub/Dbia3/trackDb.txt">
757 <assert_contents>
758 <has_text text="color 0,0,0"/>
759 </assert_contents>
760 </extra_files>
761
762 <!-- TODO: Find a way to check also that the whole common structure is intact too, without too much repetition -->
763 </output>
764 </test>
765
766 <!-- Test changed color in a track -->
767 <test>
768 <param name="genome_name" value="Dbia3"/>
769 <param name="fasta_file" value="common/dbia3.fa"/>
770 <repeat name="group">
771 <param name="group_name" value="Default group"/>
772 <repeat name="format">
773 <conditional name="formatChoice">
774 <param name="format_select" value="bam"/>
775 <param name="BAM" value="bam/inputs/HISAT2_Accepted_Hits.bam"/>
776 <param name="track_color" value="#8064a2"/>
777 </conditional>
778 </repeat>
779 </repeat>
780 <output name="output" file="changed_color/changed_color_trackhub.html">
781 <expand macro="verify_hub_structure" test="changed_color" />
782 <!-- Verify trackDb.txt contains the color 128,100,162 -->
783 <extra_files type="file" name="myHub/Dbia3/trackDb.txt">
784 <assert_contents>
785 <has_text text="color 128,100,162"/>
786 </assert_contents>
787 </extra_files>
788
789 <!-- TODO: Find a way to check also that the whole common structure is intact too, without too much repetition -->
790 </output>
791 </test>
792
793 <!-- Test for StringTie Chromosome end coordinates -->
794 <test>
795 <param name="genome_name" value="Dbia3"/>
796 <param name="fasta_file" value="common/dbia3.fa"/>
797 <repeat name="group">
798 <param name="group_name" value="Default group"/>
799 <repeat name="format">
800 <conditional name="formatChoice">
801 <param name="format_select" value="gtf"/>
802 <param name="GTF" ftype="gtf" value="stringtie_chromosome_end_coordinates/inputs/StringTie_Assembled_Transcripts"/>
803 <param name="track_color" value="#000000"/>
804 </conditional>
805 </repeat>
806 </repeat>
807 <output name="output" file="stringtie_chromosome_end_coordinates/stringtie_chromosome_end_coordinates_trackhub.html">
808 <extra_files type="file"
809 name="myHub/Dbia3/tracks/StringTie_Assembled_Transcripts.bb"
810 value="stringtie_chromosome_end_coordinates/myHub/Dbia3/tracks/StringTie_Assembled_Transcripts.bb"
811 compare="sim_size"
812 />
813 <expand macro="verify_hub_structure" test="stringtie_chromosome_end_coordinates" />
814
815 <!-- TODO: Find a way to check also that the whole common structure is intact too, without too much repetition -->
816 </output>
817 </test>
818
819 <!-- Test default label in a track -->
820 <test>
821 <param name="genome_name" value="Dbia3"/>
822 <param name="fasta_file" value="common/dbia3.fa"/>
823 <repeat name="group">
824 <param name="group_name" value="Default group"/>
825 <repeat name="format">
826 <conditional name="formatChoice">
827 <param name="format_select" value="bam"/>
828 <param name="BAM" value="bam/inputs/HISAT2_Accepted_Hits.bam"/>
829 <param name="track_color" value="#000000"/>
830 </conditional>
831 </repeat>
832 </repeat>
833 <output name="output" file="default_color/default_color_trackhub.html">
834 <expand macro="verify_hub_structure" test="default_color" />
835 <!-- Verify trackDb.txt contains default label -->
836 <extra_files type="file" name="myHub/Dbia3/trackDb.txt">
837 <assert_contents>
838 <has_text text="longLabel HISAT2 Accepted Hits.bam"/>
839 </assert_contents>
840 </extra_files>
841
842 <!-- TODO: Find a way to check also that the whole common structure is intact too, without too much repetition -->
843 </output>
844 </test>
845
846 <!-- Test customized label in a track -->
847 <test>
848 <param name="genome_name" value="Dbia3"/>
849 <param name="fasta_file" value="common/dbia3.fa"/>
850 <repeat name="group">
851 <param name="group_name" value="Default group"/>
852 <repeat name="format">
853 <conditional name="formatChoice">
854 <param name="format_select" value="bam"/>
855 <param name="BAM" value="bam/inputs/HISAT2_Accepted_Hits.bam"/>
856 <param name="longLabel" value="HISAT sequence alignment" />
857 <param name="track_color" value="#000000"/>
858 </conditional>
859 </repeat>
860 </repeat>
861 <output name="output" file="changed_label/changed_label_trackhub.html">
862 <expand macro="verify_hub_structure" test="changed_label" />
863 <!-- Verify trackDb.txt contains the customized label -->
864 <extra_files type="file" name="myHub/Dbia3/trackDb.txt">
865 <assert_contents>
866 <has_text text="longLabel HISAT sequence alignment"/>
867 </assert_contents>
868 </extra_files>
869
870 <!-- TODO: Find a way to check also that the whole common structure is intact too, without too much repetition -->
871 </output>
872 </test>
873
874 <!-- Test TrixIndex for Blat alignment track -->
875 <test>
876 <param name="genome_name" value="Dbia3"/>
877 <param name="fasta_file" value="common/dbia3.fa"/>
878 <repeat name="group">
879 <param name="group_name" value="Default group"/>
880 <repeat name="format">
881 <conditional name="formatChoice">
882 <param name="format_select" value="bed" />
883 <conditional name="bedChoice">
884 <param name="bed_select" value="bed_blat_alignment_option"/>
885 <param name="BED_blat_alignment" ftype="bed" value="bed_blat_alignment/inputs/BLAT_alignment_bigpsl"/>
886 <param name="longLabel" value="BLAT alignment" />
887 <param name="track_color" value="#000000"/>
888 <param name="database" value="NCBI" />
889 <conditional name="add_trix_index">
890 <param name="add_trix_index_selector" value="yes" />
891 <param name="trix_index" value="trix_index_files/blat_out.ix,trix_index_files/blat_out.ixx" />
892 </conditional>
893 </conditional>
894 </conditional>
895 </repeat>
896 </repeat>
897 <param name="debug_mode" value="true" />
898 <output name="output" file="trix_index_files/blat_alignment_trackhub.html">
899 <extra_files type="file"
900 name="myHub/Dbia3/tracks/BLAT_alignment_bigpsl.bb"
901 value="bed_blat_alignment/myHub/Dbia3/tracks/BLAT_alignment_bigpsl.bb"
902 compare="sim_size"
903 />
904 <expand macro="verify_hub_structure" test="bed_blat_alignment" />
905 <!-- check additional trackDb settings for BLAT -->
906 <extra_files type="file" name="myHub/Dbia3/trackDb.txt">
907 <assert_contents>
908 <has_text text="searchIndex"/>
909 <has_text text="searchTrix"/>
910 <has_text text="url"/>
911 <has_text text="urlLabel"/>
912 <has_text text="iframeUrl"/>
913 <has_text text="iframeOptions"/>
914 </assert_contents>
915 </extra_files>
916 <!-- check Trix index directory -->
917 <extra_files type="file" name="myHub/Dbia3/trix/BLAT_alignment_bigpsl.bb.ix"
918 value="trix_index/blat_out.ix" />
919 <extra_files type="file" name="myHub/Dbia3/trix/BLAT_alignment_bigpsl.bb.ixx"
920 value="trix_index/blat_out.ixx" />
921 </output>
922 </test>
923
924 <!-- Test TrixIndex for BLAST Alignment -->
925 <test>
926 <param name="genome_name" value="Dbia3"/>
927 <param name="fasta_file" value="common/dbia3.fa"/>
928 <repeat name="group">
929 <param name="group_name" value="Default group"/>
930 <repeat name="format">
931 <conditional name="formatChoice">
932 <param name="format_select" value="bed" />
933 <conditional name="bedChoice">
934 <param name="bed_select" value="bed_blast_alignment_option"/>
935 <param name="BED_blast_alignment" ftype="bed" value="bed_blast_alignment/inputs/BLAST_alignment_bigpsl"/>
936 <param name="longLabel" value="BLAST alignment" />
937 <param name="track_color" value="#000000"/>
938 <param name="database" value="NCBI" />
939 <conditional name="add_trix_index">
940 <param name="add_trix_index_selector" value="yes" />
941 <param name="trix_index" value="trix_index_files/blast_out.ix,trix_index_files/blast_out.ixx" />
942 </conditional>
943 </conditional>
944 </conditional>
945 </repeat>
946 </repeat>
947 <param name="debug_mode" value="true" />
948 <output name="output" file="trix_index_files/blast_alignment_trackhub.html">
949 <extra_files type="file"
950 name="myHub/Dbia3/tracks/BLAST_alignment_bigpsl.bb"
951 value="bed_blast_alignment/myHub/Dbia3/tracks/BLAST_alignment_bigpsl.bb"
952 compare="sim_size"
953 />
954 <expand macro="verify_hub_structure" test="bed_blast_alignment" />
955 <!-- check additional trackDb settings for BLAST -->
956 <extra_files type="file" name="myHub/Dbia3/trackDb.txt">
957 <assert_contents>
958 <has_text text="searchIndex"/>
959 <has_text text="searchTrix"/>
960 <has_text text="url"/>
961 <has_text text="urlLabel"/>
962 <has_text text="iframeUrl"/>
963 <has_text text="iframeOptions"/>
964 </assert_contents>
965 </extra_files>
966 <!-- check Trix index directory -->
967 <extra_files type="file" name="myHub/Dbia3/trix/BLAST_alignment_bigpsl.bb.ix"
968 value="trix_index/blast_out.ix" />
969 <extra_files type="file" name="myHub/Dbia3/trix/BLAST_alignment_bigpsl.bb.ixx"
970 value="trix_index/blast_out.ixx" />
971 </output>
972 </test>
973
974 <!-- Test TrixIndex for BigBed -->
975 <test>
976 <param name="genome_name" value="Dbia3"/>
977 <param name="fasta_file" value="common/dbia3.fa"/>
978 <repeat name="group">
979 <param name="group_name" value="Default group"/>
980 <repeat name="format">
981 <conditional name="formatChoice">
982 <param name="format_select" value="bigbed"/>
983 <param name="BIGBED" value="big_bed/inputs/BLAT_alignment_bigbed" />
984 <param name="longLabel" value="bigBed" />
985 <param name="track_color" value="#000000"/>
986 <conditional name="add_trix_index">
987 <param name="add_trix_index_selector" value="yes" />
988 <param name="trix_index" value="trix_index_files/blast_out.ix,trix_index_files/blast_out.ixx" />
989 <param name="trix_id" value="name" />
990 </conditional>
991 </conditional>
992 </repeat>
993 </repeat>
994 <param name="debug_mode" value="true" />
995 <output name="output" file="trix_index_files/bigbed_trackhub.html">
996 <extra_files type="file"
997 name="myHub/Dbia3/tracks/BLAT_alignment_bigbed.bigbed"
998 value="big_bed/myHub/Dbia3/tracks/BLAT_alignment_bigbed.bigbed"
999 compare="sim_size"
1000 />
1001 <expand macro="verify_hub_structure" test="big_bed">
1002 <has_text text="searchIndex"/>
1003 <has_text text="searchTrix"/>
1004 </expand>
1005
1006 <!-- check Trix index directory -->
1007 <extra_files type="file" name="myHub/Dbia3/trix/BLAT_alignment_bigbed.bigbed.ix"
1008 value="trix_index/blat_out.ix" />
1009 <extra_files type="file" name="myHub/Dbia3/trix/BLAT_alignment_bigbed.bigbed.ixx"
1010 value="trix_index/blat_out.ixx" />
1011 </output>
1012 </test>
1013
1014 <!-- Test for big files? -->
1015
1016 <!-- Find tests that should fail -->
1017 </xml>
1018 </macro>