Mercurial > repos > fubar > jbrowse2dev
comparison jbrowse2/jbrowse2.xml @ 7:234cf4490901 draft
Uploaded
author | fubar |
---|---|
date | Fri, 05 Jan 2024 04:31:35 +0000 |
parents | 88b9b105c09b |
children | 6a41f87b5d7f |
comparison
equal
deleted
inserted
replaced
6:88b9b105c09b | 7:234cf4490901 |
---|---|
19 | 19 |
20 ## Once that's done, we run the python script to handle the real work | 20 ## Once that's done, we run the python script to handle the real work |
21 python '$__tool_directory__/jbrowse2.py' | 21 python '$__tool_directory__/jbrowse2.py' |
22 | 22 |
23 --jbrowse \${JBROWSE_SOURCE_DIR} | 23 --jbrowse \${JBROWSE_SOURCE_DIR} |
24 --standalone '$standalone' | |
25 | 24 |
26 --outdir '$output.files_path' | 25 --outdir '$output.files_path' |
27 '$trackxml' && | 26 '$trackxml' && |
28 | 27 |
29 #if str($standalone) != "data": | 28 cp '$output.files_path/index.html' '$output' |
30 cp '$output.files_path/index.html' '$output' | |
31 #else: | |
32 cp '$dummyIndex' '$output' | |
33 #end if | |
34 | 29 |
35 ## Ugly testing hack since I cannot get <extra_files> to test the files I want to test. Hmph. | 30 ## Ugly testing hack since I cannot get <extra_files> to test the files I want to test. Hmph. |
36 #if str($uglyTestingHack) == "enabled": | 31 #if str($uglyTestingHack) == "enabled": |
37 && cp '$trackxml' '$output' | 32 && cp '$trackxml' '$output' |
38 #end if | 33 #end if |
210 type="data"> | 205 type="data"> |
211 </param> | 206 </param> |
212 </when> | 207 </when> |
213 </conditional> | 208 </conditional> |
214 | 209 |
215 <param name="standalone" label="Include all reference and track data in the JBrowse2 object" type="select" | |
216 help="Default is efficient but will not work offline. Including reference sequences, tracks and indexes will allow standalone viewing, at the cost of copying and moving all data" > | |
217 <option value="complete">Complete: Choose ONLY if need to view offline, or if history cannot be published. WARNING: produces bloated downloads storing redundant copies of all data! | |
218 </option> | |
219 <option value="minimal" selected="true">Sufficient: Uses URLs for Galaxy data. Requires internet access and a published history to download, share and view remotely. | |
220 </option> | |
221 </param> | |
222 | |
223 <repeat name="track_groups" title="Track Group"> | 210 <repeat name="track_groups" title="Track Group"> |
224 <param label="Track Category" | 211 <param label="Track Category" |
225 name="category" | 212 name="category" |
226 type="text" | 213 type="text" |
227 value="Default" | 214 value="Default" |
228 help="Organise your tracks into Categories for a nicer end-user experience. You can use #date# and it will be replaced with the current date in 'yyyy-mm-dd' format, which is very useful for repeatedly updating a JBrowse instance when member databases / underlying tool versions are updated." optional="False"> | 215 help="Organise your tracks into Categories for a nicer end-user experience. You can use #date# and it will be replaced with the current date in 'yyyy-mm-dd' format, which is very useful for repeatedly updating a JBrowse instance when member databases / underlying tool versions are updated." optional="False"> |
229 </param> | 216 </param> |
230 <repeat name="data_tracks" title="Annotation Track"> | 217 <repeat name="data_tracks" title="Annotation Track"> |
231 <conditional name="data_format" label="Track Options"> | 218 <conditional name="data_format" label="Track Options"> |
232 <param type="select" label="Track Type" name="data_format_select"> | 219 <param type="select" label="Track Type" name="data_format_select"> |
233 <option value="blast">Blast XML</option> | 220 <option value="blast">Blast XML track - converted to GFF with actual gaps between hits</option> |
234 <option value="gene_calls">GFF/GFF3/BED Features</option> | 221 <option value="gene_calls" selected="true">GFF/GFF3/BED feature tracks</option> |
235 <option value="hic">HiC data (convert .cool with hicexplorer)</option> | 222 <option value="hic">HiC binary data. Existing cool format must be converted to binary hic - hic_matrix will NOT work.</option> |
236 <option value="pileup">BAM Pileups</option> | 223 <option value="pileup">BAM Pileup track</option> |
237 <option value="vcf">VCF SNPs</option> | 224 <option value="vcf">VCF SNP annotation track</option> |
238 <option value="wiggle">BigWig XY</option> | 225 <option value="wiggle">BigWig XY track</option> |
239 </param> | 226 </param> |
240 <when value="hic"> | 227 <when value="hic"> |
241 <expand macro="input_conditional" label="HiC Track Data" format="hic" help="Cool files must be converted first with hicexplorer" /> | 228 <expand macro="input_conditional" label="HiC Track Data" format="hic" help="Cool files must be converted first with hicexplorer" /> |
242 </when> | 229 </when> |
243 <when value="blast"> | 230 <when value="blast"> |
314 </repeat> | 301 </repeat> |
315 </repeat> | 302 </repeat> |
316 <param type="hidden" name="uglyTestingHack" value="" /> | 303 <param type="hidden" name="uglyTestingHack" value="" /> |
317 </inputs> | 304 </inputs> |
318 <outputs> | 305 <outputs> |
319 <data format="html" name="output" label="JBrowse2 on $reference_genome.genome.element_identifier - $standalone"/> | 306 <data format="html" name="output" label="JBrowse2 on $reference_genome.genome.element_identifier"/> |
320 </outputs> | 307 </outputs> |
321 <tests> | 308 <tests> |
322 <test> | 309 <test> |
323 <param name="reference_genome|genome_type_select" value="history"/> | 310 <param name="reference_genome|genome_type_select" value="history"/> |
324 <param name="reference_genome|genome" value="merlin.fa"/> | 311 <param name="reference_genome|genome" value="merlin.fa"/> |
325 <param name="standalone" value="minimal" /> | |
326 <param name="uglyTestingHack" value="enabled" /> | 312 <param name="uglyTestingHack" value="enabled" /> |
327 <output name="output"> | 313 <output name="output"> |
328 <assert_contents> | 314 <assert_contents> |
329 <has_text text="genome path="></has_text> | 315 <has_text text="genome path="></has_text> |
330 <has_text text="dataset id="></has_text> | 316 <has_text text="dataset id="></has_text> |
335 </output> | 321 </output> |
336 </test> | 322 </test> |
337 <test> | 323 <test> |
338 <param name="reference_genome|genome_type_select" value="history"/> | 324 <param name="reference_genome|genome_type_select" value="history"/> |
339 <param name="reference_genome|genome" value="merlin.fa"/> | 325 <param name="reference_genome|genome" value="merlin.fa"/> |
340 <param name="standalone" value="minimal" /> | |
341 <repeat name="track_groups"> | 326 <repeat name="track_groups"> |
342 <param name="category" value="Default" /> | 327 <param name="category" value="Default" /> |
343 <repeat name="data_tracks"> | 328 <repeat name="data_tracks"> |
344 <conditional name="data_format"> | 329 <conditional name="data_format"> |
345 <param name="data_format_select" value="gene_calls"/> | 330 <param name="data_format_select" value="gene_calls"/> |
362 <test> | 347 <test> |
363 <conditional name="reference_genome"> | 348 <conditional name="reference_genome"> |
364 <param name="genome_type_select" value="history"/> | 349 <param name="genome_type_select" value="history"/> |
365 <param name="genome" value="merlin.fa"/> | 350 <param name="genome" value="merlin.fa"/> |
366 </conditional> | 351 </conditional> |
367 <param name="standalone" value="minimal" /> | |
368 <repeat name="track_groups"> | 352 <repeat name="track_groups"> |
369 <param name="category" value="Auto Coloured" /> | 353 <param name="category" value="Auto Coloured" /> |
370 <repeat name="data_tracks"> | 354 <repeat name="data_tracks"> |
371 <conditional name="data_format"> | 355 <conditional name="data_format"> |
372 <param name="data_format_select" value="pileup"/> | 356 <param name="data_format_select" value="pileup"/> |
386 </test> | 370 </test> |
387 | 371 |
388 <test> | 372 <test> |
389 <param name="reference_genome|genome_type_select" value="history"/> | 373 <param name="reference_genome|genome_type_select" value="history"/> |
390 <param name="reference_genome|genome" value="merlin.fa"/> | 374 <param name="reference_genome|genome" value="merlin.fa"/> |
391 <param name="standalone" value="minimal" /> | |
392 <param name="uglyTestingHack" value="enabled" /> | 375 <param name="uglyTestingHack" value="enabled" /> |
393 <output name="output"> | 376 <output name="output"> |
394 <assert_contents> | 377 <assert_contents> |
395 <has_text text="merlin.fa"/> | 378 <has_text text="merlin.fa"/> |
396 </assert_contents> | 379 </assert_contents> |
408 | 391 |
409 Compared to JBrowse1-in-Galaxy, there is no support for alternative codons for unusual genomes, | 392 Compared to JBrowse1-in-Galaxy, there is no support for alternative codons for unusual genomes, |
410 and detailed track styling is not yet implemented. Send code. | 393 and detailed track styling is not yet implemented. Send code. |
411 JBrowse1 development has now ceased in favour of JBrowse2. | 394 JBrowse1 development has now ceased in favour of JBrowse2. |
412 | 395 |
396 Use and local viewing | |
397 ===================== | |
398 | |
399 A JBrowse2 history item can be opened by viewing it (the "eye" icon). | |
400 They can also be downloaded as archives ("floppy disk" icon) to share and for local viewing. | |
401 One extra step is required before they can be viewed. A local python web server must be started using a script included in each archive. | |
402 Unpack the archive (tar -xvzf [filename].tgz) and the first level directory will contain a file named "servejb2.py" | |
403 | |
404 Assuming you have python3 installed, running | |
405 | |
406 *python3 servjb2.py* | |
407 | |
408 will serve the unarchived JBrowse2 configuration, so it can be browsed by pointing a web browser to localhost:8080 | |
413 | 409 |
414 Overview | 410 Overview |
415 -------- | 411 -------- |
416 | 412 |
417 JBrowse is a fast, embeddable genome browser built completely with | 413 JBrowse is a fast, embeddable genome browser built completely with |
434 ------- | 430 ------- |
435 | 431 |
436 The first option you encounter is the **Fasta Sequence(s)**. This option | 432 The first option you encounter is the **Fasta Sequence(s)**. This option |
437 now accepts multiple fasta files, allowing you to build JBrowse | 433 now accepts multiple fasta files, allowing you to build JBrowse |
438 instances that contain data for multiple genomes or chrosomomes | 434 instances that contain data for multiple genomes or chrosomomes |
439 (generally known as "landmark features" in gff3 terminology.) Up to 30 | 435 (generally known as "landmark features" in gff3 terminology.) |
440 will be shown from the dropdown selector within JBrowse, this is a known | |
441 issue. | |
442 | 436 |
443 **Track Groups** represent a set of tracks in a single category. These | 437 **Track Groups** represent a set of tracks in a single category. These |
444 can be used to let your users understand relationships between large | 438 can be used to let your users understand relationships between large |
445 groups of tracks. | 439 groups of tracks. |
446 | 440 |
447 .. image:: sections.png | 441 .. image:: sections.png |
448 | 442 |
449 Annotation Tracks | 443 Annotation Tracks |
450 ----------------- | 444 ----------------- |
451 | 445 |
452 Within Track Groups, you have one or more **Annotation Tracks**. Each | |
453 Annotation Track is a groups of datasets which have similar styling. | |
454 This allows you to rapidly build up JBrowse instances without having to | |
455 configure tracks individually. A massive improvement over previous | |
456 versions. For example, if you have five different GFF3 files from | |
457 various gene callers that you wish to display, you can take advantage of | |
458 this feature to style all of them similarly. | |
459 | |
460 There are a few different types of tracks supported, each with their own | 446 There are a few different types of tracks supported, each with their own |
461 set of options: | 447 set of options: |
462 | 448 |
463 GFF3/BED | 449 GFF3/BED |
464 ~~~~~~~~ | 450 ~~~~~~~~ |
465 | 451 |
466 These are your standard feature tracks. They usually highlight genes, | 452 These are standard feature tracks. They usually highlight genes, |
467 mRNAs and other features of interest along a genomic region. The | 453 mRNAs and other features of interest along a genomic region. |
468 underlying tool and this help documentation focus primarily on GFF3 | |
469 data, and have not been tested extensively with other formats. Automatic | |
470 min/max detection will fail under BED datasets. | |
471 | 454 |
472 BAM Pileups | 455 BAM Pileups |
473 ~~~~~~~~~~~ | 456 ~~~~~~~~~~~ |
474 | 457 |
475 We support BAM files and can automatically generate SNP tracks based on | 458 We support BAM files and can automatically generate SNP tracks based on |
476 that bam data. | 459 that bam data. |
477 | 460 |
478 .. image:: bam.png | |
479 | |
480 This is *strongly discouraged* for high coverage density datasets. | |
481 Unfortunately there are no other configuration options exposed for bam | |
482 files. | |
483 | 461 |
484 BlastXML | 462 BlastXML |
485 ~~~~~~~~ | 463 ~~~~~~~~ |
486 | 464 |
487 .. image:: blast.png | 465 .. image:: blast.png |
510 Bigwig XY | 488 Bigwig XY |
511 ~~~~~~~~~ | 489 ~~~~~~~~~ |
512 | 490 |
513 .. image:: bigwig.png | 491 .. image:: bigwig.png |
514 | 492 |
515 **XYPlot** | 493 |
516 | |
517 BigWig tracks can be displayed as a "density" plot which is a continuous | |
518 line which varies in colour, or as an "XYplot." XYplots are preferable | |
519 for users to visually identify specific features in a bigwig track, | |
520 however density tracks are more visually compact. | |
521 | 494 |
522 VCFs/SNPs | 495 VCFs/SNPs |
523 ~~~~~~~~~ | 496 ~~~~~~~~~ |
524 | 497 |
525 These tracks do not support any special configuration. | 498 These tracks do not support any special configuration. |