comparison jbrowse.xml @ 17:ff11d442feed draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse commit 908f16ea4eb082227437dc93e06e8cb742f5a257
author iuc
date Wed, 15 Nov 2017 15:15:27 -0500
parents b5c5470d7c09
children 836d1aa3e89a
comparison
equal deleted inserted replaced
16:b5c5470d7c09 17:ff11d442feed
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"/> 7 <expand macro="stdio"/>
8 <version_command>python jbrowse.py --version</version_command>
8 <command><![CDATA[ 9 <command><![CDATA[
9 10
10 #if $action.action_select == "create": 11 #if $action.action_select == "create":
11 mkdir -p $output.files_path && 12 mkdir -p $output.files_path &&
12 #else: 13 #else:
73 <genomes> 74 <genomes>
74 #if str($reference_genome.genome_type_select) == "indexed": 75 #if str($reference_genome.genome_type_select) == "indexed":
75 <genome>${reference_genome.genomes.fields.path}</genome> 76 <genome>${reference_genome.genomes.fields.path}</genome>
76 #else 77 #else
77 #for $genome in $reference_genome.genomes: 78 #for $genome in $reference_genome.genomes:
78 <genome>$genome</genome> 79 <genome path="$genome">
80 <metadata>
81 <dataset id="${__app__.security.encode_id($genome.id)}" hid="${genome.hid}"
82 size="${genome.get_size(nice_size=True)}"
83 edam_format="${genome.datatype.edam_format}"
84 file_ext="${genome.ext}" />
85 <history id="${__app__.security.encode_id($genome.history_id)}"
86 user_email="${genome.history.user.email}"
87 user_id="${genome.history.user_id}"
88 display_name="${genome.history.get_display_name()}"/>
89 <metadata
90 #for (key, value) in $genome.get_metadata().items():
91 #if "_types" not in $key:
92 ${key}="${value}"
93 #end if
94 #end for
95 />
96 <tool
97 tool_id="${genome.creating_job.tool_id}"
98 tool_version="${genome.creating_job.tool_version}"
99 />
100 </metadata>
101 </genome>
79 #end for 102 #end for
80 #end if 103 #end if
81 </genomes> 104 </genomes>
82 <general> 105 <general>
83 <defaultLocation>${jbgen.defaultLocation}</defaultLocation> 106 <defaultLocation>${jbgen.defaultLocation}</defaultLocation>
89 <show_nav>${jbgen.show_nav}</show_nav> 112 <show_nav>${jbgen.show_nav}</show_nav>
90 <show_overview>${jbgen.show_overview}</show_overview> 113 <show_overview>${jbgen.show_overview}</show_overview>
91 <show_menu>${jbgen.show_menu}</show_menu> 114 <show_menu>${jbgen.show_menu}</show_menu>
92 <hideGenomeOptions>${jbgen.hideGenomeOptions}</hideGenomeOptions> 115 <hideGenomeOptions>${jbgen.hideGenomeOptions}</hideGenomeOptions>
93 </general> 116 </general>
117 <galaxyUrl>${__app__.config.galaxy_infrastructure_url}</galaxyUrl>
94 </metadata> 118 </metadata>
95 <tracks> 119 <tracks>
96 #for $tg in $track_groups: 120 #for $tg in $track_groups:
97 #for $track in $tg.data_tracks: 121 #for $track in $tg.data_tracks:
122 #if $track.data_format.data_format_select == "rest":
123 <track cat="${tg.category}" format="${track.data_format.data_format_select}" visibility="${track.data_format.track_visibility}">
124 <url>${track.data_format.url}</url>
125 </track>
126 #else:
98 <track cat="${tg.category}" format="${track.data_format.data_format_select}" visibility="${track.data_format.track_visibility}"> 127 <track cat="${tg.category}" format="${track.data_format.data_format_select}" visibility="${track.data_format.track_visibility}">
99 <files> 128 <files>
100 #for $dataset in $track.data_format.annotation: 129 #for $dataset in $track.data_format.annotation:
101 <trackFile path="${dataset}" ext="${dataset.ext}" label="${dataset.element_identifier}" /> 130 <trackFile path="${dataset}" ext="${dataset.ext}" label="${dataset.element_identifier}">
131 <metadata>
132 <dataset id="${__app__.security.encode_id($dataset.id)}" hid="${dataset.hid}"
133 size="${dataset.get_size(nice_size=True)}"
134 edam_format="${dataset.datatype.edam_format}"
135 file_ext="${dataset.ext}" />
136 <history id="${__app__.security.encode_id($dataset.history_id)}"
137 user_email="${dataset.history.user.email}"
138 user_id="${dataset.history.user_id}"
139 display_name="${dataset.history.get_display_name()}"/>
140 <metadata
141 #for (key, value) in $dataset.get_metadata().items():
142 #if "_types" not in $key:
143 ${key}="${value}"
144 #end if
145 #end for
146 />
147 <tool
148 tool_id="${dataset.creating_job.tool_id}"
149 tool_version="${dataset.creating_job.tool_version}"
150 />
151 </metadata>
152 </trackFile>
102 #end for 153 #end for
103 </files> 154 </files>
104 155
105 <options> 156 <options>
106 #if str($track.data_format.data_format_select) == "gene_calls" or str($track.data_format.data_format_select) == "blast": 157 #if str($track.data_format.data_format_select) == "gene_calls" or str($track.data_format.data_format_select) == "blast":
107 <style> 158 <style>
159 <overridePlugins>${track.data_format.override_apollo_plugins}</overridePlugins>
160 <overrideDraggable>${track.data_format.override_apollo_drag}</overrideDraggable>
108 <className>${track.data_format.jbstyle.style_classname}</className> 161 <className>${track.data_format.jbstyle.style_classname}</className>
109 <description>${track.data_format.jbstyle.style_description}</description> 162 <description>${track.data_format.jbstyle.style_description}</description>
110 <label>${track.data_format.jbstyle.style_label}</label> 163 <label>${track.data_format.jbstyle.style_label}</label>
111 <height>${track.data_format.jbstyle.style_height}</height> 164 <height>${track.data_format.jbstyle.style_height}</height>
165 <maxHeight>${track.data_format.jbstyle.max_height}</maxHeight>
112 </style> 166 </style>
113 <scaling> 167 <scaling>
114 #if str($track.data_format.jbcolor_scale.color_score.color_score_select) == "none": 168 #if str($track.data_format.jbcolor_scale.color_score.color_score_select) == "none":
115 <method>ignore</method> 169 <method>ignore</method>
116 <scheme> 170 <scheme>
175 <autoscale>global</autoscale> 229 <autoscale>global</autoscale>
176 #else: 230 #else:
177 <min>${track.data_format.scaling.minimum}</min> 231 <min>${track.data_format.scaling.minimum}</min>
178 <max>${track.data_format.scaling.maximum}</max> 232 <max>${track.data_format.scaling.maximum}</max>
179 #end if 233 #end if
234 <scale>${track.data_format.scale_select2}</scale>
180 235
181 ## Wiggle tracks need special color config 236 ## Wiggle tracks need special color config
182 #if str($track.data_format.jbcolor.color.color_select) != "automatic": 237 #if str($track.data_format.jbcolor.color.color_select) != "automatic":
183 <color_pos>${track.data_format.jbcolor.color.style_pos_color}</color_pos> 238 <color_pos>${track.data_format.jbcolor.color.style_pos_color}</color_pos>
184 <color_neg>${track.data_format.jbcolor.color.style_neg_color}</color_neg> 239 <color_neg>${track.data_format.jbcolor.color.style_neg_color}</color_neg>
245 ## <query>${track.data_format.query}</query> 300 ## <query>${track.data_format.query}</query>
246 ## </sparql> 301 ## </sparql>
247 #end if 302 #end if
248 </options> 303 </options>
249 </track> 304 </track>
305 #end if
250 #end for 306 #end for
251 #end for 307 #end for
252 </tracks> 308 </tracks>
253 </root> 309 <plugins
254 ]]></configfile> 310 ComboTrackSelector="${plugins.ComboTrackSelector}"
311 Bookmarks="${plugins.Bookmarks}"
312 GCContent="${plugins.GCContent}"
313 theme="${plugins.theme}"
314 />
315 </root>]]></configfile>
255 </configfiles> 316 </configfiles>
256 <inputs> 317 <inputs>
257 <conditional name="reference_genome"> 318 <conditional name="reference_genome">
258 <param help="Built-in references" label="Reference genome to display" name="genome_type_select" type="select"> 319 <param help="Built-in references" label="Reference genome to display" name="genome_type_select" type="select">
259 <option selected="True" value="indexed">Use a built-in genome</option> 320 <option selected="True" value="indexed">Use a built-in genome</option>
282 </when> 343 </when>
283 </conditional> 344 </conditional>
284 345
285 <param name="standalone" label="Produce Standalone Instance" type="boolean" truevalue="Complete" falsevalue="Data Directory" help="Produce a full, working JBrowse instance or just the data directory. Data dir mode is experimental and intended to be used with Apollo" checked="True"/> 346 <param name="standalone" label="Produce Standalone Instance" type="boolean" truevalue="Complete" falsevalue="Data Directory" help="Produce a full, working JBrowse instance or just the data directory. Data dir mode is experimental and intended to be used with Apollo" checked="True"/>
286 347
287
288 <param label="Genetic Code" name="gencode" type="select"> 348 <param label="Genetic Code" name="gencode" type="select">
289 <option value="1">1. The Standard Code</option> 349 <option value="1">1. The Standard Code</option>
290 <option value="2">2. The Vertebrate Mitochondrial Code</option> 350 <option value="2">2. The Vertebrate Mitochondrial Code</option>
291 <option value="3">3. The Yeast Mitochondrial Code</option> 351 <option value="3">3. The Yeast Mitochondrial Code</option>
292 <option value="4">4. The Mold, Protozoan, and Coelenterate Mitochondrial Code and the Mycoplasma/Spiroplasma Code</option> 352 <option value="4">4. The Mold, Protozoan, and Coelenterate Mitochondrial Code and the Mycoplasma/Spiroplasma Code</option>
323 <repeat name="track_groups" title="Track Group"> 383 <repeat name="track_groups" title="Track Group">
324 <param label="Track Category" 384 <param label="Track Category"
325 name="category" 385 name="category"
326 type="text" 386 type="text"
327 value="Default" 387 value="Default"
328 help="Organise your tracks into Categories for a nicer end-user experience" optional="False"/> 388 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"/>
329 <repeat name="data_tracks" title="Annotation Track"> 389 <repeat name="data_tracks" title="Annotation Track">
330 <conditional name="data_format"> 390 <conditional name="data_format" label="Track Options">
331 <param type="select" label="Track Type" name="data_format_select"> 391 <param type="select" label="Track Type" name="data_format_select">
332 <option value="gene_calls">GFF/GFF3/BED/GBK Features</option> 392 <option value="gene_calls">GFF/GFF3/BED/GBK Features</option>
333 <option value="pileup">BAM Pileups</option> 393 <option value="pileup">BAM Pileups</option>
334 <option value="blast">Blast XML</option> 394 <option value="blast">Blast XML</option>
335 <option value="wiggle">BigWig XY</option> 395 <option value="wiggle">BigWig XY</option>
336 <option value="vcf">VCF SNPs</option> 396 <option value="vcf">VCF SNPs</option>
397 <option value="rest">REST Endpoint</option>
337 <!--<option value="sparql">SPARQL</option>--> 398 <!--<option value="sparql">SPARQL</option>-->
338 </param> 399 </param>
339 <when value="blast"> 400 <when value="blast">
340 <expand macro="input_conditional" label="BlastXML Track Data" format="blastxml" /> 401 <expand macro="input_conditional" label="BlastXML Track Data" format="blastxml" />
341 402
375 <expand macro="input_conditional" label="SNP Track Data" format="vcf" /> 436 <expand macro="input_conditional" label="SNP Track Data" format="vcf" />
376 <expand macro="track_display" /> 437 <expand macro="track_display" />
377 </when> 438 </when>
378 <when value="gene_calls"> 439 <when value="gene_calls">
379 <expand macro="input_conditional" label="GFF/GFF3/BED Track Data" format="gff,gff3,bed" /> 440 <expand macro="input_conditional" label="GFF/GFF3/BED Track Data" format="gff,gff3,bed" />
380 <conditional name="match_part"> 441 <conditional name="match_part" label="match/match_part data">
381 <param label="This is match/match_part data" 442 <param label="This is match/match_part data"
382 type="boolean" 443 type="boolean"
383 name="match_part_select" 444 name="match_part_select"
384 truevalue="true" 445 truevalue="true"
385 falsevalue="false" /> 446 falsevalue="false" />
398 459
399 <conditional name="track_config"> 460 <conditional name="track_config">
400 <param type="select" label="JBrowse Track Type [Advanced]" name="track_class"> 461 <param type="select" label="JBrowse Track Type [Advanced]" name="track_class">
401 <option value="JBrowse/View/Track/HTMLFeatures">HTML Features</option> 462 <option value="JBrowse/View/Track/HTMLFeatures">HTML Features</option>
402 <option value="JBrowse/View/Track/CanvasFeatures" selected="true">Canvas Features</option> 463 <option value="JBrowse/View/Track/CanvasFeatures" selected="true">Canvas Features</option>
464 <option value="BlastView/View/Track/CanvasFeatures">Blast Features</option>
403 </param> 465 </param>
404 <when value="JBrowse/View/Track/CanvasFeatures"> 466 <when value="JBrowse/View/Track/CanvasFeatures">
405 <section name="canvas_options" title="CanvasFeatures Options [Advanced]" expanded="false"> 467 <section name="canvas_options" title="CanvasFeatures Options [Advanced]" expanded="false">
406 <param label="Transcript type" 468 <param label="Transcript type"
407 name="transcriptType" 469 name="transcriptType"
464 type="boolean" 526 type="boolean"
465 name="var_band" 527 name="var_band"
466 truevalue="true" 528 truevalue="true"
467 falsevalue="false" /> 529 falsevalue="false" />
468 530
469 <conditional name="scaling"> 531 <conditional name="scaling" label="Scaling">
470 <param type="select" label="Track Scaling" name="scale_select"> 532 <param type="select" label="Track Scaling" name="scale_select">
471 <option value="auto_local">Autoscale (local)</option> 533 <option value="auto_local">Autoscale (local)</option>
472 <option value="auto_global" selected="true">Autoscale (global)</option> 534 <option value="auto_global" selected="true">Autoscale (global)</option>
473 <option value="fixed">Specify Min/Max</option> 535 <option value="fixed">Specify Min/Max</option>
474 </param> 536 </param>
479 type="integer" value="0" /> 541 type="integer" value="0" />
480 <param label="Track maximum" name="maximum" 542 <param label="Track maximum" name="maximum"
481 type="integer" value="100" /> 543 type="integer" value="100" />
482 </when> 544 </when>
483 </conditional> 545 </conditional>
546 <param type="select" label="Visual Scaling" name="scale_select2">
547 <option value="linear" selected="true">Linear</option>
548 <option value="log">Logarithmic (Dynamically Calculated)</option>
549 </param>
484 <expand macro="color_selection_minmax" /> 550 <expand macro="color_selection_minmax" />
485 <expand macro="track_display" /> 551 <expand macro="track_display" />
552 </when>
553 <when value="rest">
554 <param type="text" label="REST Endpoint" name="url" />
486 </when> 555 </when>
487 <!-- 556 <!--
488 <when value="sparql"> 557 <when value="sparql">
489 <param type="text" label="SPARQL Server URL" name="url" /> 558 <param type="text" label="SPARQL Server URL" name="url" />
490 <param type="text" label="Track Label" name="key" value="SPARQL Genes" /> 559 <param type="text" label="Track Label" name="key" value="SPARQL Genes" />
495 </conditional> 564 </conditional>
496 </repeat> 565 </repeat>
497 </repeat> 566 </repeat>
498 567
499 <expand macro="general_options" /> 568 <expand macro="general_options" />
569 <section name="plugins" title="Plugins" expanded="false">
570 <param
571 label="Combo Track Selector" name="ComboTrackSelector" truevalue="True" falsevalue="" type="boolean"
572 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" />
573 <param
574 label="Bookmarks" name="Bookmarks" truevalue="True" falsevalue="" type="boolean"
575 help="JBrowse plugin allowing users to manage a persistent list of bookmarks kept in localstorage" />
576
577 <param
578 label="GC Content" name="GCContent" truevalue="True" falsevalue="" type="boolean"
579 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)." />
580
581 <param type="select" label="JBrowse Theme" name="theme">
582 <option value="" selected="True">Default</option>
583 <option value="Minimalist">Minimalist</option>
584 <option value="Dark">Dark</option>
585 </param>
586 </section>
587
500 <param type="hidden" name="uglyTestingHack" value="" /> 588 <param type="hidden" name="uglyTestingHack" value="" />
501 </inputs> 589 </inputs>
502 <outputs> 590 <outputs>
503 <data format="html" name="output" label="JBrowse on $on_string - $standalone"/> 591 <data format="html" name="output" label="JBrowse on $on_string - $standalone"/>
504 </outputs> 592 </outputs>
516 <param name="reference_genome|genome_type_select" value="history"/> 604 <param name="reference_genome|genome_type_select" value="history"/>
517 <param name="reference_genome|genomes" value="merlin.fa"/> 605 <param name="reference_genome|genomes" value="merlin.fa"/>
518 <param name="gencode" value="11" /> 606 <param name="gencode" value="11" />
519 <param name="standalone" value="Data Directory" /> 607 <param name="standalone" value="Data Directory" />
520 <param name="uglyTestingHack" value="enabled" /> 608 <param name="uglyTestingHack" value="enabled" />
521 <output name="output" file="gencode/test.xml" lines_diff="4"/> 609 <output name="output" file="gencode/test.xml" lines_diff="14"/>
522 </test> 610 </test>
523 <test> 611 <test>
524 <param name="reference_genome|genome_type_select" value="history"/> 612 <param name="reference_genome|genome_type_select" value="history"/>
525 <param name="reference_genome|genomes" value="merlin.fa"/> 613 <param name="reference_genome|genomes" value="merlin.fa"/>
526 <param name="gencode" value="11" /> 614 <param name="gencode" value="11" />
712 </conditional> 800 </conditional>
713 </repeat> 801 </repeat>
714 </repeat> 802 </repeat>
715 803
716 <param name="uglyTestingHack" value="enabled" /> 804 <param name="uglyTestingHack" value="enabled" />
717 <output name="output" file="gff3/test.xml" lines_diff="24" /> 805 <output name="output" file="gff3/test.xml" lines_diff="64" />
718 </test> 806 </test>
719 <test> 807 <test>
720 <param name="reference_genome|genome_type_select" value="history"/> 808 <param name="reference_genome|genome_type_select" value="history"/>
721 <param name="reference_genome|genomes" value="merlin.fa"/> 809 <param name="reference_genome|genomes" value="merlin.fa"/>
722 <param name="gencode" value="11" /> 810 <param name="gencode" value="11" />
775 </conditional> 863 </conditional>
776 </repeat> 864 </repeat>
777 </repeat> 865 </repeat>
778 866
779 <param name="uglyTestingHack" value="enabled" /> 867 <param name="uglyTestingHack" value="enabled" />
780 <output name="output" file="menus/test.xml" lines_diff="6"/> 868 <output name="output" file="menus/test.xml" lines_diff="24"/>
781 </test> 869 </test>
782 <test> 870 <test>
783 <param name="reference_genome|genome_type_select" value="history"/> 871 <param name="reference_genome|genome_type_select" value="history"/>
784 <param name="reference_genome|genomes" value="merlin.fa"/> 872 <param name="reference_genome|genomes" value="merlin.fa"/>
785 <param name="gencode" value="11" /> 873 <param name="gencode" value="11" />
812 </conditional> 900 </conditional>
813 </repeat> 901 </repeat>
814 </repeat> 902 </repeat>
815 903
816 <param name="uglyTestingHack" value="enabled" /> 904 <param name="uglyTestingHack" value="enabled" />
817 <output name="output" file="track_config/test.xml" lines_diff="6"/> 905 <output name="output" file="track_config/test.xml" lines_diff="26"/>
818 </test> 906 </test>
819 </tests> 907 </tests>
820 <help><![CDATA[ 908 <help><![CDATA[
821 JBrowse-in-Galaxy 909 JBrowse-in-Galaxy
822 ================= 910 =================
823 911
824 JBrowse-in-Galaxy offers a highly configurable, workflow-compatible 912 JBrowse-in-Galaxy offers a highly configurable, workflow-compatible
825 alternative to Trackster. 913 alternative to Trackster.
914
915 Overview
916 --------
917
918 JBrowse is a fast, embeddable genome browser built completely with
919 JavaScript and HTML5.
826 920
827 The JBrowse-in-Galaxy (JiG) tool was written to help build complex 921 The JBrowse-in-Galaxy (JiG) tool was written to help build complex
828 JBrowse installations straight from Galaxy, taking advantage of the 922 JBrowse installations straight from Galaxy, taking advantage of the
829 latest Galaxy features such as dataset collections, sections, and colour 923 latest Galaxy features such as dataset collections, sections, and colour
830 pickers. It allows you to build up a JBrowse instance without worrying 924 pickers. It allows you to build up a JBrowse instance without worrying