comparison jbrowse.xml @ 25:1cfc579079a6 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse commit b6f9a87b6091cc881a49e0b6acfadc5e7786967f
author iuc
date Tue, 29 Jan 2019 05:34:16 -0500
parents dba3c47e1798
children 08776ba76cf5
comparison
equal deleted inserted replaced
24:fa30df9b79c2 25:1cfc579079a6
2 <description>genome browser</description> 2 <description>genome browser</description>
3 <macros> 3 <macros>
4 <import>macros.xml</import> 4 <import>macros.xml</import>
5 </macros> 5 </macros>
6 <expand macro="requirements"/> 6 <expand macro="requirements"/>
7 <expand macro="stdio"/>
8 <version_command>python '${__tool_directory__}/jbrowse.py' --version</version_command> 7 <version_command>python '${__tool_directory__}/jbrowse.py' --version</version_command>
9 <command><![CDATA[ 8 <command detect_errors="aggressive"><![CDATA[
10 #if $action.action_select == "create": 9 #if $action.action_select == "create":
11 mkdir -p $output.files_path && 10 mkdir -p $output.files_path &&
12 #else: 11 #else:
13 cp -R $action.update_jbrowse.extra_files_path $output.files_path && 12 cp -R $action.update_jbrowse.extra_files_path $output.files_path &&
14 #end if 13 #end if
71 #if str($reference_genome.genome_type_select) == "indexed": 70 #if str($reference_genome.genome_type_select) == "indexed":
72 <genome path="${reference_genome.genomes.fields.path}"> 71 <genome path="${reference_genome.genomes.fields.path}">
73 <metadata /> 72 <metadata />
74 </genome>s 73 </genome>s
75 #else 74 #else
76 #for $genome in $reference_genome.genomes: 75 <genome path="$reference_genome.genome">
77 <genome path="$genome"> 76 <metadata>
78 <metadata> 77 <dataset id="${__app__.security.encode_id($reference_genome.genome.id)}" hid="${reference_genome.genome.hid}"
79 <dataset id="${__app__.security.encode_id($genome.id)}" hid="${genome.hid}" 78 size="${reference_genome.genome.get_size(nice_size=True)}"
80 size="${genome.get_size(nice_size=True)}" 79 edam_format="${reference_genome.genome.datatype.edam_format}"
81 edam_format="${genome.datatype.edam_format}" 80 file_ext="${reference_genome.genome.ext}" />
82 file_ext="${genome.ext}" /> 81 <history id="${__app__.security.encode_id($reference_genome.genome.history_id)}"
83 <history id="${__app__.security.encode_id($genome.history_id)}" 82 user_email="${reference_genome.genome.history.user.email}"
84 user_email="${genome.history.user.email}" 83 user_id="${reference_genome.genome.history.user_id}"
85 user_id="${genome.history.user_id}" 84 display_name="${reference_genome.genome.history.get_display_name()}"/>
86 display_name="${genome.history.get_display_name()}"/> 85 <metadata
87 <metadata 86 #for (key, value) in $reference_genome.genome.get_metadata().items():
88 #for (key, value) in $genome.get_metadata().items(): 87 #if "_types" not in $key:
89 #if "_types" not in $key: 88 ${key}="${value}"
90 ${key}="${value}" 89 #end if
91 #end if 90 #end for
92 #end for 91 />
93 /> 92 <tool
94 <tool 93 tool_id="${reference_genome.genome.creating_job.tool_id}"
95 tool_id="${genome.creating_job.tool_id}" 94 tool_version="${reference_genome.genome.creating_job.tool_version}"
96 tool_version="${genome.creating_job.tool_version}" 95 />
97 /> 96 </metadata>
98 </metadata> 97 </genome>
99 </genome>
100 #end for
101 #end if 98 #end if
102 </genomes> 99 </genomes>
103 <general> 100 <general>
104 <defaultLocation>${jbgen.defaultLocation}</defaultLocation> 101 <defaultLocation>${jbgen.defaultLocation}</defaultLocation>
105 <trackPadding>${jbgen.trackPadding}</trackPadding> 102 <trackPadding>${jbgen.trackPadding}</trackPadding>
115 <galaxyUrl>${__app__.config.galaxy_infrastructure_url}</galaxyUrl> 112 <galaxyUrl>${__app__.config.galaxy_infrastructure_url}</galaxyUrl>
116 </metadata> 113 </metadata>
117 <tracks> 114 <tracks>
118 #for $tg in $track_groups: 115 #for $tg in $track_groups:
119 #for $track in $tg.data_tracks: 116 #for $track in $tg.data_tracks:
120 #if $track.data_format.data_format_select == "rest":
121 <track cat="${tg.category}" format="${track.data_format.data_format_select}" visibility="${track.data_format.track_visibility}"> 117 <track cat="${tg.category}" format="${track.data_format.data_format_select}" visibility="${track.data_format.track_visibility}">
122 <url>${track.data_format.url}</url> 118 #if $track.data_format.data_format_select != "rest" and $track.data_format.data_format_select != "sparql":
123 </track>
124 #else:
125 <track cat="${tg.category}" format="${track.data_format.data_format_select}" visibility="${track.data_format.track_visibility}">
126 <files> 119 <files>
127 #for $dataset in $track.data_format.annotation: 120 #for $dataset in $track.data_format.annotation:
128 <trackFile path="${dataset}" ext="${dataset.ext}" label="${dataset.element_identifier}"> 121 <trackFile path="${dataset}" ext="${dataset.ext}" label="${dataset.element_identifier}">
129 <metadata> 122 <metadata>
130 <dataset id="${__app__.security.encode_id($dataset.id)}" hid="${dataset.hid}" 123 <dataset id="${__app__.security.encode_id($dataset.id)}" hid="${dataset.hid}"
148 /> 141 />
149 </metadata> 142 </metadata>
150 </trackFile> 143 </trackFile>
151 #end for 144 #end for
152 </files> 145 </files>
146 #end if
153 147
154 <options> 148 <options>
155 #if str($track.data_format.data_format_select) == "gene_calls" or str($track.data_format.data_format_select) == "blast": 149 #if str($track.data_format.data_format_select) == "gene_calls" or str($track.data_format.data_format_select) == "blast" or str($track.data_format.data_format_select) == "rest" or str($track.data_format.data_format_select) == "sparql":
156 <style> 150 <style>
157 <overridePlugins>${track.data_format.override_apollo_plugins}</overridePlugins> 151 <overridePlugins>${track.data_format.override_apollo_plugins}</overridePlugins>
158 <overrideDraggable>${track.data_format.override_apollo_drag}</overrideDraggable> 152 <overrideDraggable>${track.data_format.override_apollo_drag}</overrideDraggable>
159 <className>${track.data_format.jbstyle.style_classname}</className> 153 <className>${track.data_format.jbstyle.style_classname}</className>
160 <description>${track.data_format.jbstyle.style_description}</description> 154 <description>${track.data_format.jbstyle.style_description}</description>
246 #else if str($track.data_format.jbcolor.bicolor_pivot.bicolor_pivot_select) == "mean": 240 #else if str($track.data_format.jbcolor.bicolor_pivot.bicolor_pivot_select) == "mean":
247 <bicolor_pivot>mean</bicolor_pivot> 241 <bicolor_pivot>mean</bicolor_pivot>
248 #else: 242 #else:
249 <bicolor_pivot>${track.data_format.jbcolor.bicolor_pivot.pivot_point}</bicolor_pivot> 243 <bicolor_pivot>${track.data_format.jbcolor.bicolor_pivot.pivot_point}</bicolor_pivot>
250 #end if 244 #end if
245 <multibigwig>${track.data_format.MultiBigWig}</multibigwig>
251 </wiggle> 246 </wiggle>
252 #else if str($track.data_format.data_format_select) == "pileup": 247 #else if str($track.data_format.data_format_select) == "pileup":
253 <pileup> 248 <pileup>
254 <auto_snp>${track.data_format.auto_snp}</auto_snp> 249 <auto_snp>${track.data_format.auto_snp}</auto_snp>
255 <bam_indices> 250 <bam_indices>
256 #for $dataset in $track.data_format.annotation: 251 #for $dataset in $track.data_format.annotation:
257 <bam_index>${dataset.metadata.bam_index}</bam_index> 252 <bam_index>${dataset.metadata.bam_index}</bam_index>
258 #end for 253 #end for
259 </bam_indices> 254 </bam_indices>
255 <chunkSizeLimit>${track.data_format.chunkSizeLimit}</chunkSizeLimit>
260 </pileup> 256 </pileup>
261 #else if str($track.data_format.data_format_select) == "blast": 257 #else if str($track.data_format.data_format_select) == "blast":
262 <blast> 258 <blast>
263 #if str($track.data_format.blast_parent) != "": 259 #if str($track.data_format.blast_parent) != "":
264 <parent>${track.data_format.blast_parent}</parent> 260 <parent>${track.data_format.blast_parent}</parent>
288 #if $track.data_format.match_part.match_part_select: 284 #if $track.data_format.match_part.match_part_select:
289 <match>${track.data_format.match_part.name}</match> 285 <match>${track.data_format.match_part.name}</match>
290 #end if 286 #end if
291 <index>${track.data_format.index}</index> 287 <index>${track.data_format.index}</index>
292 </gff> 288 </gff>
293 ## #else if str($track.data_format.data_format_select) == "sparql": 289 #else if str($track.data_format.data_format_select) == "rest":
294 ## <sparql> 290 <label>${track.data_format.label}</label>
295 ## <url>${track.data_format.url}</url> 291 <rest>
296 ## <label>${track.data_format.label}</label> 292 <url>${track.data_format.url}</url>
297 ## <!-- This is going to be an absolutey nightmare --> 293 </rest>
298 ## <query>${track.data_format.query}</query> 294 #else if str($track.data_format.data_format_select) == "sparql":
299 ## </sparql> 295 <label>${track.data_format.label}</label>
296 <sparql>
297 <url>${track.data_format.url}</url>
298 <query>${track.data_format.query}</query>
299 </sparql>
300 #end if 300 #end if
301 </options> 301 </options>
302 </track> 302 </track>
303 #end if
304 #end for 303 #end for
305 #end for 304 #end for
306 </tracks> 305 </tracks>
306 ## Disable plugins until https://github.com/GMOD/jbrowse/issues/1288 is fixed
307 ## <plugins
308 ## ComboTrackSelector="${plugins.ComboTrackSelector}"
309 ## Bookmarks="${plugins.Bookmarks}"
310 ## GCContent="${plugins.GCContent}"
311 ## BlastView="${plugins.BlastView}"
312 ## theme="${plugins.theme}"
313 ## />
307 <plugins 314 <plugins
308 ComboTrackSelector="${plugins.ComboTrackSelector}" 315 ComboTrackSelector="${plugins.ComboTrackSelector}"
309 Bookmarks="${plugins.Bookmarks}" 316 Bookmarks=""
310 GCContent="${plugins.GCContent}" 317 GCContent="${plugins.GCContent}"
311 theme="${plugins.theme}" 318 BlastView="${plugins.BlastView}"
319 theme=""
312 /> 320 />
313 </root>]]></configfile> 321 </root>]]></configfile>
314 </configfiles> 322 </configfiles>
315 <inputs> 323 <inputs>
316 <conditional name="reference_genome"> 324 <conditional name="reference_genome">
333 </when> 341 </when>
334 <when value="history"> 342 <when value="history">
335 <param 343 <param
336 format="fasta" 344 format="fasta"
337 label="Select the reference genome" 345 label="Select the reference genome"
338 name="genomes" 346 name="genome"
339 type="data" 347 type="data" />
340 multiple="True" />
341 </when> 348 </when>
342 </conditional> 349 </conditional>
343 350
344 <param name="standalone" type="boolean" truevalue="Complete" falsevalue="Data Directory" checked="true" label="Produce Standalone Instance" help="Produce a full, working JBrowse instance or just the data directory. Data dir mode is experimental and intended to be used with Apollo"/> 351 <param name="standalone" type="boolean" truevalue="Complete" falsevalue="Data Directory" checked="true" label="Produce Standalone Instance" help="Produce a full, working JBrowse instance or just the data directory. Data dir mode is experimental and intended to be used with Apollo"/>
345 352
388 <option value="pileup">BAM Pileups</option> 395 <option value="pileup">BAM Pileups</option>
389 <option value="blast">Blast XML</option> 396 <option value="blast">Blast XML</option>
390 <option value="wiggle">BigWig XY</option> 397 <option value="wiggle">BigWig XY</option>
391 <option value="vcf">VCF SNPs</option> 398 <option value="vcf">VCF SNPs</option>
392 <option value="rest">REST Endpoint</option> 399 <option value="rest">REST Endpoint</option>
393 <!--<option value="sparql">SPARQL</option>--> 400 <option value="sparql">SPARQL</option>
394 </param> 401 </param>
395 <when value="blast"> 402 <when value="blast">
396 <expand macro="input_conditional" label="BlastXML Track Data" format="blastxml" /> 403 <expand macro="input_conditional" label="BlastXML Track Data" format="blastxml" />
397 404
398 <param label="Features used in Blast Search" 405 <param label="Features used in Blast Search"
454 461
455 <conditional name="track_config"> 462 <conditional name="track_config">
456 <param type="select" label="JBrowse Track Type [Advanced]" name="track_class"> 463 <param type="select" label="JBrowse Track Type [Advanced]" name="track_class">
457 <option value="JBrowse/View/Track/HTMLFeatures">HTML Features</option> 464 <option value="JBrowse/View/Track/HTMLFeatures">HTML Features</option>
458 <option value="JBrowse/View/Track/CanvasFeatures" selected="true">Canvas Features</option> 465 <option value="JBrowse/View/Track/CanvasFeatures" selected="true">Canvas Features</option>
459 <option value="BlastView/View/Track/CanvasFeatures">Blast Features</option> 466 <option value="BlastView/View/Track/CanvasFeatures">Blast Features</option><!-- Disable plugins until https://github.com/GMOD/jbrowse/issues/1288 is fixed -->
460 </param> 467 </param>
461 <when value="JBrowse/View/Track/CanvasFeatures"> 468 <when value="JBrowse/View/Track/CanvasFeatures">
462 <section name="canvas_options" title="CanvasFeatures Options [Advanced]" expanded="false"> 469 <section name="canvas_options" title="CanvasFeatures Options [Advanced]" expanded="false">
463 <param label="Transcript type" 470 <param label="Transcript type"
464 name="transcriptType" 471 name="transcriptType"
489 value="" 496 value=""
490 help="If your input files represents transcripts, give the name of the corresponding features here (e.g. 'mRNA' or 'transcript')" 497 help="If your input files represents transcripts, give the name of the corresponding features here (e.g. 'mRNA' or 'transcript')"
491 optional="True"/> 498 optional="True"/>
492 </section> 499 </section>
493 </when> 500 </when>
494 <when value="BlastView/View/Track/CanvasFeatures" /> 501 <!--when value="BlastView/View/Track/CanvasFeatures" /-->
495 </conditional> 502 </conditional>
496 <expand macro="track_styling" /> 503 <expand macro="track_styling" />
497 <expand macro="color_selection" /> 504 <expand macro="color_selection" />
498 <expand macro="track_menu" /> 505 <expand macro="track_menu" />
499 <expand macro="track_display" /> 506 <expand macro="track_display" />
504 help="Not recommended for deep coverage BAM files" 511 help="Not recommended for deep coverage BAM files"
505 type="boolean" 512 type="boolean"
506 name="auto_snp" 513 name="auto_snp"
507 truevalue="true" 514 truevalue="true"
508 falsevalue="false" /> 515 falsevalue="false" />
516 <param label="Maximum size of BAM chunks"
517 name="chunkSizeLimit"
518 type="integer"
519 help="Maximum size in bytes of BAM chunks that the browser will try to deal with. When this is exceeded, most tracks will display 'Too much data' message."
520 value="5000000" />
509 <expand macro="track_display" /> 521 <expand macro="track_display" />
510 </when> 522 </when>
511 <when value="wiggle"> 523 <when value="wiggle">
512 <expand macro="input_conditional" label="BigWig Track Data" format="bigwig" /> 524 <expand macro="input_conditional" label="BigWig Track Data" format="bigwig" />
513 525
541 </conditional> 553 </conditional>
542 <param type="select" label="Visual Scaling" name="scale_select2"> 554 <param type="select" label="Visual Scaling" name="scale_select2">
543 <option value="linear" selected="true">Linear</option> 555 <option value="linear" selected="true">Linear</option>
544 <option value="log">Logarithmic (Dynamically Calculated)</option> 556 <option value="log">Logarithmic (Dynamically Calculated)</option>
545 </param> 557 </param>
558
559 <param label="Use MultiBigWig Plugin" name="MultiBigWig" truevalue="True" falsevalue="" type="boolean"
560 help="MultiBigWig is a plugin to group multiple big-wig tracks in a more aesthetically pleasing format and to show data in a higher density display." />
561
546 <expand macro="color_selection_minmax" /> 562 <expand macro="color_selection_minmax" />
547 <expand macro="track_display" /> 563 <expand macro="track_display" />
548 </when> 564 </when>
549 <when value="rest"> 565 <when value="rest">
550 <param type="text" label="REST Endpoint" name="url" /> 566 <param type="text" label="REST Endpoint" name="url" />
567 <param type="text" label="Track Label" name="label" value="REST Genes" />
568 <expand macro="track_styling"
569 classname="feature"
570 label="description"
571 description="Hit_titles"
572 height="600px"/>
573 <expand macro="color_selection"
574 token_scaling_lin_select="false"
575 token_scaling_log_select="true" />
576 <expand macro="track_menu" />
577 <expand macro="track_display" />
551 </when> 578 </when>
552 <!-- 579
553 <when value="sparql"> 580 <when value="sparql">
554 <param type="text" label="SPARQL Server URL" name="url" /> 581 <param type="text" label="SPARQL Server URL" name="url" />
555 <param type="text" label="Track Label" name="key" value="SPARQL Genes" /> 582 <param type="text" label="Track Label" name="label" value="SPARQL Genes" />
556 <param type="text" label="SPARQL Query" name="query" area="true" /> 583 <param type="text" label="SPARQL Query" name="query" area="true">
584 <sanitizer>
585 <mapping initial="galaxy.util.mapped_chars">
586 <add source="&#10;" target=" " />
587 <add source="&gt;" target="__gt__" />
588 <add source="&lt;" target="__lt__" />
589 </mapping>
590 <valid initial="default">
591 <add value="|" />
592 <add value="#" />
593 <add value="{"/>
594 <add value="}"/>
595 <add value="!"/>
596 <add value="?"/>
597 <add value="&amp;"/>
598 <add value="+"/>
599 <add value="="/>
600 <add value="'"/>
601 <add value='"'/>
602 </valid>
603 </sanitizer>
604 </param>
605 <expand macro="track_styling"
606 classname="feature"
607 label="description"
608 description="Hit_titles"
609 height="600px"/>
610 <expand macro="color_selection"
611 token_scaling_lin_select="false"
612 token_scaling_log_select="true" />
613 <expand macro="track_menu" />
557 <expand macro="track_display" /> 614 <expand macro="track_display" />
558 </when> 615 </when>
559 -->
560 </conditional> 616 </conditional>
561 </repeat> 617 </repeat>
562 </repeat> 618 </repeat>
563 619
564 <expand macro="general_options" /> 620 <expand macro="general_options" />
621 <!-- Disable plugins until https://github.com/GMOD/jbrowse/issues/1288 is fixed -->
565 <section name="plugins" title="Plugins" expanded="false"> 622 <section name="plugins" title="Plugins" expanded="false">
623
624 <param
625 label="BlastView" name="BlastView" truevalue="True" falsevalue="" type="boolean" checked="true"
626 help="A JBrowse plugin for viewing blast alignments. This plugin makes MANY assumptions about the format of your data, and may not work without those assumptions: 1) you use protein_match / match_part 2) your features have a Blast_qseq, Blast_mseq, and Blast_sseq attribute in their GFF3 representation." />
627
566 <param 628 <param
567 label="Combo Track Selector" name="ComboTrackSelector" truevalue="True" falsevalue="" type="boolean" 629 label="Combo Track Selector" name="ComboTrackSelector" truevalue="True" falsevalue="" type="boolean"
568 help="ComboTrackSelector is a plugin to allow the co-existence of the Hierarchical and Faceted Track selectors in JBrowse, built for/by the Arabidopsis Information Portal (Araport) project" /> 630 help="ComboTrackSelector is a plugin to allow the co-existence of the Hierarchical and Faceted Track selectors in JBrowse, built for/by the Arabidopsis Information Portal (Araport) project" />
569 <param 631 <!-- No way to disable now that it's built in jbrowse conda package -->
632 <!--param
570 label="Bookmarks" name="Bookmarks" truevalue="True" falsevalue="" type="boolean" 633 label="Bookmarks" name="Bookmarks" truevalue="True" falsevalue="" type="boolean"
571 help="JBrowse plugin allowing users to manage a persistent list of bookmarks kept in localstorage" /> 634 help="JBrowse plugin allowing users to manage a persistent list of bookmarks kept in localstorage" /-->
572 635
573 <param 636 <param
574 label="GC Content" name="GCContent" truevalue="True" falsevalue="" type="boolean" 637 label="GC Content" name="GCContent" truevalue="True" falsevalue="" type="boolean"
575 help="A JBrowse plugin for plotting GC Content and GC Skew. The plugin consists of a storeClass that automatically calculates the percentage of G/C bases in a region, a track type that derives from the Wiggle XY or density types, and a dialog box to adjust the sliding window size, window step size, and the calculation mode (content or skew)." /> 638 help="A JBrowse plugin for plotting GC Content and GC Skew. The plugin consists of a storeClass that automatically calculates the percentage of G/C bases in a region, a track type that derives from the Wiggle XY or density types, and a dialog box to adjust the sliding window size, window step size, and the calculation mode (content or skew)." />
576 639
577 <param type="select" label="JBrowse Theme" name="theme"> 640 <!--param type="select" label="JBrowse Theme" name="theme">
578 <option value="" selected="True">Default</option> 641 <option value="" selected="True">Default</option>
579 <option value="Minimalist">Minimalist</option> 642 <option value="Minimalist">Minimalist</option>
580 <option value="Dark">Dark</option> 643 <option value="Dark">Dark</option>
581 </param> 644 </param-->
582 </section> 645 </section>
583 646
584 <param type="hidden" name="uglyTestingHack" value="" /> 647 <param type="hidden" name="uglyTestingHack" value="" />
585 </inputs> 648 </inputs>
586 <outputs> 649 <outputs>
588 </outputs> 651 </outputs>
589 <tests> 652 <tests>
590 <test> 653 <test>
591 <!-- gencode --> 654 <!-- gencode -->
592 <param name="reference_genome|genome_type_select" value="history"/> 655 <param name="reference_genome|genome_type_select" value="history"/>
593 <param name="reference_genome|genomes" value="merlin.fa"/> 656 <param name="reference_genome|genome" value="merlin.fa"/>
594 <param name="gencode" value="1" /> 657 <param name="gencode" value="1" />
595 <param name="standalone" value="Data Directory" /> 658 <param name="standalone" value="Data Directory" />
596 <param name="uglyTestingHack" value="enabled" /> 659 <param name="uglyTestingHack" value="enabled" />
597 <output name="output" file="gencode/test-1.xml" lines_diff="14"/> 660 <output name="output" file="gencode/test-1.xml" lines_diff="14"/>
598 </test> 661 </test>
599 <test> 662 <test>
600 <param name="reference_genome|genome_type_select" value="history"/> 663 <param name="reference_genome|genome_type_select" value="history"/>
601 <param name="reference_genome|genomes" value="merlin.fa"/> 664 <param name="reference_genome|genome" value="merlin.fa"/>
602 <param name="gencode" value="11" /> 665 <param name="gencode" value="11" />
603 <param name="standalone" value="Data Directory" /> 666 <param name="standalone" value="Data Directory" />
604 <param name="uglyTestingHack" value="enabled" /> 667 <param name="uglyTestingHack" value="enabled" />
605 <output name="output" file="gencode/test.xml" lines_diff="14"/> 668 <output name="output" file="gencode/test.xml" lines_diff="14"/>
606 </test> 669 </test>
607 <test> 670 <test>
608 <param name="reference_genome|genome_type_select" value="history"/> 671 <param name="reference_genome|genome_type_select" value="history"/>
609 <param name="reference_genome|genomes" value="merlin.fa"/> 672 <param name="reference_genome|genome" value="merlin.fa"/>
610 <param name="gencode" value="11" /> 673 <param name="gencode" value="11" />
611 <param name="standalone" value="Data Directory" /> 674 <param name="standalone" value="Data Directory" />
612 <repeat name="track_groups"> 675 <repeat name="track_groups">
613 <param name="category" value="Auto Coloured" /> 676 <param name="category" value="Auto Coloured" />
614 <repeat name="data_tracks"> 677 <repeat name="data_tracks">
800 <param name="uglyTestingHack" value="enabled" /> 863 <param name="uglyTestingHack" value="enabled" />
801 <output name="output" file="gff3/test.xml" lines_diff="256" /> 864 <output name="output" file="gff3/test.xml" lines_diff="256" />
802 </test> 865 </test>
803 <test> 866 <test>
804 <param name="reference_genome|genome_type_select" value="history"/> 867 <param name="reference_genome|genome_type_select" value="history"/>
805 <param name="reference_genome|genomes" value="merlin.fa"/> 868 <param name="reference_genome|genome" value="merlin.fa"/>
806 <param name="gencode" value="11" /> 869 <param name="gencode" value="11" />
807 <param name="standalone" value="Data Directory" /> 870 <param name="standalone" value="Data Directory" />
808 871
809 <repeat name="track_groups"> 872 <repeat name="track_groups">
810 <param name="category" value="With menu or index" /> 873 <param name="category" value="With menu or index" />
863 <param name="uglyTestingHack" value="enabled" /> 926 <param name="uglyTestingHack" value="enabled" />
864 <output name="output" file="menus/test.xml" lines_diff="24"/> 927 <output name="output" file="menus/test.xml" lines_diff="24"/>
865 </test> 928 </test>
866 <test> 929 <test>
867 <param name="reference_genome|genome_type_select" value="history"/> 930 <param name="reference_genome|genome_type_select" value="history"/>
868 <param name="reference_genome|genomes" value="merlin.fa"/> 931 <param name="reference_genome|genome" value="merlin.fa"/>
869 <param name="gencode" value="11" /> 932 <param name="gencode" value="11" />
870 <param name="standalone" value="Data Directory" /> 933 <param name="standalone" value="Data Directory" />
871 934
872 <repeat name="track_groups"> 935 <repeat name="track_groups">
873 <param name="category" value="With canvas config" /> 936 <param name="category" value="With canvas config" />
900 <param name="uglyTestingHack" value="enabled" /> 963 <param name="uglyTestingHack" value="enabled" />
901 <output name="output" file="track_config/test.xml" lines_diff="26"/> 964 <output name="output" file="track_config/test.xml" lines_diff="26"/>
902 </test> 965 </test>
903 <test> 966 <test>
904 <param name="reference_genome|genome_type_select" value="history"/> 967 <param name="reference_genome|genome_type_select" value="history"/>
905 <param name="reference_genome|genomes" value="merlin.fa"/> 968 <param name="reference_genome|genome" value="merlin.fa"/>
906 <param name="gencode" value="11" /> 969 <param name="gencode" value="11" />
907 <param name="standalone" value="Data Directory" /> 970 <param name="standalone" value="Data Directory" />
908 971
909 <repeat name="track_groups"> 972 <repeat name="track_groups">
910 <param name="category" value="Auto Coloured" /> 973 <param name="category" value="Auto Coloured" />
921 </test> 984 </test>
922 985
923 <test> 986 <test>
924 <!-- data_table --> 987 <!-- data_table -->
925 <param name="reference_genome|genome_type_select" value="indexed"/> 988 <param name="reference_genome|genome_type_select" value="indexed"/>
926 <param name="reference_genome|genomes" value="merlin"/> 989 <param name="reference_genome|genome" value="merlin"/>
927 <param name="gencode" value="1" /> 990 <param name="gencode" value="1" />
928 <param name="standalone" value="Data Directory" /> 991 <param name="standalone" value="Data Directory" />
929 <param name="uglyTestingHack" value="enabled" /> 992 <param name="uglyTestingHack" value="enabled" />
930 <output name="output" file="gencode/test-data_table.xml" lines_diff="6" /> 993 <output name="output" file="gencode/test-data_table.xml" lines_diff="6" />
994 </test>
995
996 <test>
997 <param name="reference_genome|genome_type_select" value="history"/>
998 <param name="reference_genome|genome" value="merlin.fa"/>
999 <param name="gencode" value="11" />
1000 <param name="standalone" value="Data Directory" />
1001
1002 <repeat name="track_groups">
1003 <param name="category" value="External endpoints" />
1004 <repeat name="data_tracks">
1005 <conditional name="data_format">
1006 <param name="data_format_select" value="rest"/>
1007 <param name="url" value="http://example.org.external/rest_api/"/>
1008 <param name="label" value="Rest api"/>
1009 </conditional>
1010 </repeat>
1011 <repeat name="data_tracks">
1012 <conditional name="data_format">
1013 <param name="data_format_select" value="sparql"/>
1014 <param name="url" value="http://example.org.external/sparql/"/>
1015 <param name="label" value="Sparql endpoint"/>
1016 <param name="query" value=" DEFINE sql:select-option 'order'
1017 prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
1018 select ?start,
1019 ?end,
1020 IF( ?faldo_type = faldo:ForwardStrandPosition,
1021 1,
1022 IF( ?faldo_type = faldo:ReverseStrandPosition,
1023 -1,
1024 0
1025 )
1026 ) as ?strand,
1027 str(?obj_type_name) as ?type,
1028 str(?label) as ?name,
1029 str(?obj_name) as ?description,
1030 ?obj as ?uniqueID,
1031 ?parent as ?parentUniqueID
1032 where {
1033 values ?faldo_type { faldo:ForwardStrandPosition faldo:ReverseStrandPosition faldo:BothStrandsPosition }
1034 }"/>
1035 </conditional>
1036 </repeat>
1037 </repeat>
1038
1039 <param name="uglyTestingHack" value="enabled" />
1040 <output name="output" file="endpoints/test.xml" lines_diff="48"/>
931 </test> 1041 </test>
932 </tests> 1042 </tests>
933 <help><![CDATA[ 1043 <help><![CDATA[
934 JBrowse-in-Galaxy 1044 JBrowse-in-Galaxy
935 ================= 1045 =================
950 about how to run the command line tools to format your data, and which 1060 about how to run the command line tools to format your data, and which
951 options need to be supplied and where. Additionally it comes with many 1061 options need to be supplied and where. Additionally it comes with many
952 javascript functions to handle colouring of features which would be 1062 javascript functions to handle colouring of features which would be
953 nearly impossible to write without the assistance of this tool. 1063 nearly impossible to write without the assistance of this tool.
954 1064
955 The JBrowse-in-Galaxy tool is maintained by `Eric 1065 The JBrowse-in-Galaxy tool is maintained by `the Galaxy IUC
956 Rasche <mailto:esr+jig@tamu.edu>`__, who you can contact if you 1066 <https://github.com/galaxyproject/tools-iuc/issues>`__, who you can help you
957 encounter missing features or bugs. 1067 with missing features or bugs in the tool.
958 1068
959 Options 1069 Options
960 ------- 1070 -------
961 1071
962 The first option you encounter is the **Fasta Sequence(s)**. This option 1072 The first option you encounter is the **Fasta Sequence(s)**. This option
964 instances that contain data for multiple genomes or chrosomomes 1074 instances that contain data for multiple genomes or chrosomomes
965 (generally known as "landmark features" in gff3 terminology.) Up to 30 1075 (generally known as "landmark features" in gff3 terminology.) Up to 30
966 will be shown from the dropdown selector within JBrowse, this is a known 1076 will be shown from the dropdown selector within JBrowse, this is a known
967 issue. 1077 issue.
968 1078
969 **Standalone Instances** are a somewhat in-development feature. 1079 **Standalone Instances** enable you to have either a complete JBrowse instance
1080 in a dataset, or just the data directory without JBrowse (e.g. for Apollo).
970 Currently Galaxy copies the entire JBrowse directory in order to have a 1081 Currently Galaxy copies the entire JBrowse directory in order to have a
971 complete, downloadable file that contains a ready-to-go JBrowse 1082 complete, downloadable file that contains a ready-to-go JBrowse
972 instance. This is obviously an anti-feature because users don't want a 1083 instance. This is obviously an anti-feature because users don't want a
973 complete copy of JBrowse (6-20Mb) that's duplicated for every JBrowse 1084 complete copy of JBrowse (12Mb) that's duplicated for every JBrowse
974 dataset in their history, and admins don't want useless copies of 1085 dataset in their history, and admins don't want useless copies of
975 JBrowse on disk. Unfortunately we have not come up with the perfect 1086 JBrowse on disk. Unfortunately we have not come up with the perfect
976 solution just yet, but we're working on it! In the meantime, users have 1087 solution just yet, but we're working on it! In the meantime, users have
977 been given the option to produce just the ``data/`` directory. For those 1088 been given the option to produce just the ``data/`` directory. For those
978 unfamiliar with JBrowse, the ``data/`` directory contains processed data 1089 unfamiliar with JBrowse, the ``data/`` directory contains processed data
979 files, but no way to view them. This feature is additionally implemented 1090 files, but no way to view them. This feature is additionally implemented
980 for upcoming `Apollo <https://github.com/gmod/apollo>`__ integration. 1091 for upcoming `Apollo <https://github.com/gmod/apollo>`__ integration.
981 1092
982 **Genetic Code** is a new feature in v0.4 of JiG / v1.12.0 of JBrowse, 1093 **Genetic Code** is a new feature in v0.4 of JiG / v1.12.0 of JBrowse,
983 which allows users to specify a non standard genetic code, and have 1094 which allows users to specify a non standard genetic code, and have
984 JBrowse highlight the correct start and stop codons. If you would like 1095 JBrowse highlight the correct start and stop codons.
985 to use a coding table not provided by this list, please let
986 `me <mailto:esr+jig@tamu.edu>`__ know so that I may add support for
987 this.
988 1096
989 **Track Groups** represent a set of tracks in a single category. These 1097 **Track Groups** represent a set of tracks in a single category. These
990 can be used to let your users understand relationships between large 1098 can be used to let your users understand relationships between large
991 groups of tracks. 1099 groups of tracks.
992 1100
1084 1192
1085 .. image:: bam.png 1193 .. image:: bam.png
1086 1194
1087 This is *strongly discouraged* for high coverage density datasets. 1195 This is *strongly discouraged* for high coverage density datasets.
1088 Unfortunately there are no other configuration options exposed for bam 1196 Unfortunately there are no other configuration options exposed for bam
1089 files. If you find JBrowse options you wish to see exposed, please let 1197 files.
1090 `me <mailto:esr+jig@tamu.edu>`__ know.
1091 1198
1092 BlastXML 1199 BlastXML
1093 ~~~~~~~~ 1200 ~~~~~~~~
1094 1201
1095 .. image:: blast.png 1202 .. image:: blast.png