Mercurial > repos > iuc > jbrowse
comparison jbrowse.xml @ 5:ae9382cfb6ac draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse commit 3bbca939ca8a3298a3a2d6450abb04a96851e1ed
author | iuc |
---|---|
date | Sat, 25 Jun 2016 15:06:43 -0400 |
parents | 7342f467507b |
children | ecbdfc775b9a |
comparison
equal
deleted
inserted
replaced
4:d022577ff9cf | 5:ae9382cfb6ac |
---|---|
1 <tool id="jbrowse" name="JBrowse" version="0.4"> | 1 <tool id="jbrowse" name="JBrowse" version="0.5"> |
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"/> | 7 <expand macro="stdio"/> |
8 <version_command>python jbrowse.py --version</version_command> | 8 <version_command>python jbrowse.py --version</version_command> |
9 <command><![CDATA[ | 9 <command><![CDATA[ |
10 mkdir -p $output.files_path && | 10 |
11 #if $action.action_select == "create": | |
12 mkdir -p $output.files_path; | |
13 #else: | |
14 cp -R $action.update_jbrowse.extra_files_path $output.files_path; | |
15 #end if | |
16 | |
11 ## Copy the XML file into the directory, mostly for debugging | 17 ## Copy the XML file into the directory, mostly for debugging |
12 ## but nice if users want to reproduce locally | 18 ## but nice if users want to reproduce locally |
13 cp $trackxml $output.files_path/galaxy.xml && | 19 cp $trackxml $output.files_path/galaxy.xml && |
14 | 20 |
15 ## Once that's done, we run the python script to handle the real work | 21 ## Once that's done, we run the python script to handle the real work |
16 python $__tool_directory__/jbrowse.py | 22 python $__tool_directory__/jbrowse.py |
17 $trackxml | |
18 | 23 |
19 --jbrowse \${JBROWSE_SOURCE_DIR} | 24 --jbrowse \${JBROWSE_SOURCE_DIR} |
20 #if str($standalone) == "Complete": | 25 #if str($standalone) == "Complete": |
21 --standalone | 26 --standalone |
22 #end if | 27 #end if |
23 --outdir $output.files_path; | 28 |
29 --outdir $output.files_path | |
30 $trackxml; | |
24 | 31 |
25 #if str($standalone) == "Complete": | 32 #if str($standalone) == "Complete": |
26 mv $output.files_path/index.html $output; | 33 mv $output.files_path/index.html $output; |
27 #else: | 34 #else: |
28 mv $dummyIndex $output; | 35 mv $dummyIndex $output; |
63 <configfile name="trackxml"><![CDATA[<?xml version="1.0"?> | 70 <configfile name="trackxml"><![CDATA[<?xml version="1.0"?> |
64 <root> | 71 <root> |
65 <metadata> | 72 <metadata> |
66 <gencode>$gencode</gencode> | 73 <gencode>$gencode</gencode> |
67 <genomes> | 74 <genomes> |
68 #for $genome in $genomes: | 75 #if str($action.genomes) != "None": |
76 #for $genome in $action.genomes: | |
69 <genome>$genome</genome> | 77 <genome>$genome</genome> |
70 #end for | 78 #end for |
79 #end if | |
71 </genomes> | 80 </genomes> |
81 <general> | |
82 <defaultLocation>${jbgen.defaultLocation}</defaultLocation> | |
83 <trackPadding>${jbgen.trackPadding}</trackPadding> | |
84 | |
85 <shareLink>${jbgen.shareLink}</shareLink> | |
86 <aboutDescription>${jbgen.aboutDescription}</aboutDescription> | |
87 <show_tracklist>${jbgen.show_tracklist}</show_tracklist> | |
88 <show_nav>${jbgen.show_nav}</show_nav> | |
89 <show_overview>${jbgen.show_overview}</show_overview> | |
90 <show_menu>${jbgen.show_menu}</show_menu> | |
91 <hideGenomeOptions>${jbgen.hideGenomeOptions}</hideGenomeOptions> | |
92 </general> | |
72 </metadata> | 93 </metadata> |
73 <tracks> | 94 <tracks> |
74 #for $tg in $track_groups: | 95 #for $tg in $track_groups: |
75 #for $track in $tg.data_tracks: | 96 #for $track in $tg.data_tracks: |
76 <track cat="${tg.category}" format="${track.data_format.data_format_select}"> | 97 <track cat="${tg.category}" format="${track.data_format.data_format_select}" visibility="${track.data_format.track_visibility}"> |
77 <files> | 98 <files> |
78 #for $dataset in $track.data_format.annotation: | 99 #for $dataset in $track.data_format.annotation: |
79 <trackFile path="${dataset}" ext="${dataset.ext}" label="${dataset.element_identifier}" /> | 100 <trackFile path="${dataset}" ext="${dataset.ext}" label="${dataset.element_identifier}" /> |
80 #end for | 101 #end for |
81 </files> | 102 </files> |
172 <protein>${track.data_format.is_protein}</protein> | 193 <protein>${track.data_format.is_protein}</protein> |
173 <min_gap>${track.data_format.min_gap}</min_gap> | 194 <min_gap>${track.data_format.min_gap}</min_gap> |
174 </blast> | 195 </blast> |
175 #else if str($track.data_format.data_format_select) == "gene_calls": | 196 #else if str($track.data_format.data_format_select) == "gene_calls": |
176 <gff> | 197 <gff> |
198 <trackType>${track.data_format.track_class}</trackType> | |
177 #if $track.data_format.match_part.match_part_select: | 199 #if $track.data_format.match_part.match_part_select: |
178 <match>${track.data_format.match_part.name}</match> | 200 <match>${track.data_format.match_part.name}</match> |
179 #end if | 201 #end if |
180 </gff> | 202 </gff> |
203 ## #else if str($track.data_format.data_format_select) == "sparql": | |
204 ## <sparql> | |
205 ## <url>${track.data_format.url}</url> | |
206 ## <label>${track.data_format.label}</label> | |
207 ## <!-- This is going to be an absolutey nightmare --> | |
208 ## <query>${track.data_format.query}</query> | |
209 ## </sparql> | |
181 #end if | 210 #end if |
182 </options> | 211 </options> |
183 </track> | 212 </track> |
184 #end for | 213 #end for |
185 #end for | 214 #end for |
187 </root> | 216 </root> |
188 ]]> | 217 ]]> |
189 </configfile> | 218 </configfile> |
190 </configfiles> | 219 </configfiles> |
191 <inputs> | 220 <inputs> |
192 <param label="Fasta Sequence(s)" | 221 <conditional name="action" label="Action"> |
193 name="genomes" | 222 <param type="select" label="JBrowse-in-Galaxy Action" name="action_select"> |
194 type="data" | 223 <option value="create">New JBrowse Instance</option> |
195 format="fasta" | 224 <option value="update">Update exising JBrowse Instance</option> |
196 multiple="True"/> | 225 </param> |
226 <when value="create"> | |
227 <param label="Fasta Sequence(s)" | |
228 name="genomes" | |
229 type="data" | |
230 format="fasta" | |
231 multiple="True"/> | |
232 </when> | |
233 <when value="update"> | |
234 <param label="Additional Fasta Sequence(s)" | |
235 help="If sequences are selected, they will be added to the existing JBrowse instance. You should not select any sequences if you are simply updating an existing JBrowse instance which already has the required reference sequences." | |
236 name="genomes" | |
237 type="data" | |
238 format="fasta" | |
239 optional="True" | |
240 multiple="True"/> | |
241 <param label="Previous JBrowse Instance" | |
242 name="update_jbrowse" | |
243 type="data" | |
244 format="html" /> | |
245 </when> | |
246 </conditional> | |
247 | |
197 <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"/> | 248 <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"/> |
198 | 249 |
199 <param label="Genetic Code" name="gencode" type="select"> | 250 <param label="Genetic Code" name="gencode" type="select"> |
200 <option value="1">1. The Standard Code</option> | 251 <option value="1">1. The Standard Code</option> |
201 <option value="2">2. The Vertebrate Mitochondrial Code</option> | 252 <option value="2">2. The Vertebrate Mitochondrial Code</option> |
229 <option value="gene_calls">GFF/GFF3/BED/GBK Features</option> | 280 <option value="gene_calls">GFF/GFF3/BED/GBK Features</option> |
230 <option value="pileup">BAM Pileups</option> | 281 <option value="pileup">BAM Pileups</option> |
231 <option value="blast">Blast XML</option> | 282 <option value="blast">Blast XML</option> |
232 <option value="wiggle">BigWig XY</option> | 283 <option value="wiggle">BigWig XY</option> |
233 <option value="vcf">VCF SNPs</option> | 284 <option value="vcf">VCF SNPs</option> |
285 <!--<option value="sparql">SPARQL</option>--> | |
234 </param> | 286 </param> |
235 <when value="blast"> | 287 <when value="blast"> |
236 <expand macro="input_conditional" label="BlastXML Track Data" format="blastxml" /> | 288 <expand macro="input_conditional" label="BlastXML Track Data" format="blastxml" /> |
237 | 289 |
238 <param label="Features used in Blast Search" | 290 <param label="Features used in Blast Search" |
260 description="Hit_titles" | 312 description="Hit_titles" |
261 height="600px"/> | 313 height="600px"/> |
262 <expand macro="color_selection" | 314 <expand macro="color_selection" |
263 token_scaling_lin_select="false" | 315 token_scaling_lin_select="false" |
264 token_scaling_log_select="true" /> | 316 token_scaling_log_select="true" /> |
317 <expand macro="track_display" /> | |
265 </when> | 318 </when> |
266 <when value="vcf"> | 319 <when value="vcf"> |
267 <expand macro="input_conditional" label="SNP Track Data" format="vcf" /> | 320 <expand macro="input_conditional" label="SNP Track Data" format="vcf" /> |
321 <expand macro="track_display" /> | |
268 </when> | 322 </when> |
269 <when value="gene_calls"> | 323 <when value="gene_calls"> |
270 <expand macro="input_conditional" label="GFF/GFF3/BED Track Data" format="gff,gff3,bed" /> | 324 <expand macro="input_conditional" label="GFF/GFF3/BED Track Data" format="gff,gff3,bed" /> |
271 <conditional name="match_part" label="match/match_part data"> | 325 <conditional name="match_part" label="match/match_part data"> |
272 <param label="This is match/match_part data" | 326 <param label="This is match/match_part data" |
282 help="Match_parts have several options for the parent feature type, such as cDNA_match, match, translated_nucleotide_match, etc. Please select the appropriate one here" | 336 help="Match_parts have several options for the parent feature type, such as cDNA_match, match, translated_nucleotide_match, etc. Please select the appropriate one here" |
283 optional="False"/> | 337 optional="False"/> |
284 </when> | 338 </when> |
285 <when value="false" /> | 339 <when value="false" /> |
286 </conditional> | 340 </conditional> |
341 <param type="select" label="JBrowse Track Type [Advanced]" name="track_class"> | |
342 <option value="JBrowse/View/Track/HTMLFeatures">HTML Features</option> | |
343 <option value="JBrowse/View/Track/CanvasFeatures" selected="true">Canvas Features</option> | |
344 </param> | |
287 <expand macro="track_styling" /> | 345 <expand macro="track_styling" /> |
288 <expand macro="color_selection" /> | 346 <expand macro="color_selection" /> |
347 <expand macro="track_display" /> | |
289 </when> | 348 </when> |
290 <when value="pileup"> | 349 <when value="pileup"> |
291 <expand macro="input_conditional" label="BAM Track Data" format="bam" /> | 350 <expand macro="input_conditional" label="BAM Track Data" format="bam" /> |
292 <param label="Autogenerate SNP Track" | 351 <param label="Autogenerate SNP Track" |
293 help="Not recommended for deep coverage BAM files" | 352 help="Not recommended for deep coverage BAM files" |
294 type="boolean" | 353 type="boolean" |
295 name="auto_snp" | 354 name="auto_snp" |
296 truevalue="true" | 355 truevalue="true" |
297 falsevalue="false" /> | 356 falsevalue="false" /> |
357 <expand macro="track_display" /> | |
298 </when> | 358 </when> |
299 <when value="wiggle"> | 359 <when value="wiggle"> |
300 <expand macro="input_conditional" label="BigWig Track Data" format="bigwig" /> | 360 <expand macro="input_conditional" label="BigWig Track Data" format="bigwig" /> |
301 | 361 |
302 <param label="Use XYPlot" | 362 <param label="Use XYPlot" |
326 <param label="Track maximum" name="maximum" | 386 <param label="Track maximum" name="maximum" |
327 type="integer" value="100" /> | 387 type="integer" value="100" /> |
328 </when> | 388 </when> |
329 </conditional> | 389 </conditional> |
330 <expand macro="color_selection_minmax" /> | 390 <expand macro="color_selection_minmax" /> |
391 <expand macro="track_display" /> | |
331 </when> | 392 </when> |
393 <!-- | |
394 <when value="sparql"> | |
395 <param type="text" label="SPARQL Server URL" name="url" /> | |
396 <param type="text" label="Track Label" name="key" value="SPARQL Genes" /> | |
397 <param type="text" label="SPARQL Query" name="query" area="true" /> | |
398 <expand macro="track_display" /> | |
399 </when> | |
400 --> | |
332 </conditional> | 401 </conditional> |
333 </repeat> | 402 </repeat> |
334 </repeat> | 403 </repeat> |
335 | 404 |
405 <expand macro="general_options" /> | |
336 <param type="hidden" name="uglyTestingHack" value="" /> | 406 <param type="hidden" name="uglyTestingHack" value="" /> |
337 </inputs> | 407 </inputs> |
338 <outputs> | 408 <outputs> |
339 <data format="html" name="output" label="JBrowse on $on_string - $standalone"/> | 409 <data format="html" name="output" label="JBrowse on $on_string - $standalone"/> |
340 </outputs> | 410 </outputs> |
438 ================= | 508 ================= |
439 | 509 |
440 JBrowse-in-Galaxy offers a highly configurable, workflow-compatible | 510 JBrowse-in-Galaxy offers a highly configurable, workflow-compatible |
441 alternative to Trackster. | 511 alternative to Trackster. |
442 | 512 |
513 Overview | |
514 -------- | |
515 | |
516 JBrowse is a fast, embeddable genome browser built completely with | |
517 JavaScript and HTML5. | |
518 | |
443 The JBrowse-in-Galaxy (JiG) tool was written to help build complex | 519 The JBrowse-in-Galaxy (JiG) tool was written to help build complex |
444 JBrowse installations straight from Galaxy, taking advantage of the | 520 JBrowse installations straight from Galaxy, taking advantage of the |
445 latest Galaxy features such as dataset collections, sections, and colour | 521 latest Galaxy features such as dataset collections, sections, and colour |
446 pickers. It allows you to build up a JBrowse instance without worrying | 522 pickers. It allows you to build up a JBrowse instance without worrying |
447 about how to run the command line tools to format your data, and which | 523 about how to run the command line tools to format your data, and which |