Files
galaxy/tools/visualization/GMAJ.xml
T

138 lines
7.7 KiB
XML

<tool id="gmaj_1" name="GMAJ" Version="2.0.0">
<description>Multiple Alignment Viewer</description>
<command interpreter="python">GMAJ.py $out_file1 $maf_input $gmaj_file $filenames_file</command>
<inputs>
<param name="maf_input" type="data" format="maf" label="Alignment File" optional="False"/>
<repeat name="annotations" title="Annotations">
<param name="species" type="select" label="Species of Annotation" multiple="False">
<options>
<filter type="data_meta" ref="maf_input" key="species" />
</options>
</param>
<param name="chromosome" label="Chromosome" value="" type="text"/>
<param name="exons_file" type="data" format="bed,gff" label="Exons File" optional="True"/>
<param name="highlights_file" type="data" format="bed,gff" label="Highlights File" optional="True"/>
<param name="underlays_file" type="data" format="bed,gff" label="Underlays File" optional="True"/>
<param name="repeats_file" type="data" format="bed,gff" label="Repeats File" optional="True"/>
<param name="links_file" type="data" format="bed,gff" label="Links File" optional="True"/>
<param name="offset" label="Offset" value="0" type="integer"/>
</repeat>
<param name="nowarn" type="drill_down" display="checkbox" hierarchy="recurse" multiple="true" label="Choose Warnings to Suppress" separator=" " help="These do not affect behavior, only suppress warning messages.">
<options>
<option name="All" value="all">
<option name="MAF File" value="maf">
<option name="Invalid MAF version (maf_version)" value="maf_version"/>
<option name="Skipping unsupported paragraph (maf_paragraph)" value="maf_paragraph"/>
<option name="Skipping all reconstruction scores: no species specified (recon_noseq)" value="recon_noseq"/>
<option name="Skipping reconstruction scores in blocks with missing row (recon_missing)" value="recon_missing"/>
<option name="Skipping extra MAF File (unused_maf)" value="unused_maf"/>
</option>
<option name="Annotation Files" value="annotations">
<option name="Semantic Assumptions" value="semantics">
<option name="BED Format" value = "bed">
<option name="BED12 blocks are exons (bed_blocks)" value="bed_blocks"/>
<option name="BED thickstart/thickend designate CDS (bed_thick)" value="bed_thick"/>
<option name="BED name is gene name when loading exons from BED12 (bed_name)" value="bed_name"/>
<option name="BED name is gene name when loading exons from exon BED (bed_name_full)" value="bed_name_full"/>
<option name="BED name's prefix is gene name when loading exons from exon BED (bed_name_prefix)" value="bed_name_prefix"/>
</option>
<option name="GFF group is gene name (gff_group)" value="gff_group"/>
</option>
<option name="Skipped Items" value="skipped">
<option name="Skipping lines in unrecognized format (annot_format)" value="annot_format"/>
<option name="Skipping lines with no gene name when loading exons (gene_missing)" value="gene_missing"/>
<option name="Skipping lone CDS start/stop codons when strand is unknown (ambiguous_codon)" value="ambiguous_codon"/>
<option name="Skipping lines with invalid repeat types (unrec_repeat)" value="unrec_repeat"/>
<option name="Using 'Other' for missing or incomplete repeat types (repeat_type_missing)" value="repeat_type_missing"/>
<option name="Ignoring invalid strand fields (bad_strand)" value="bad_strand"/>
<option name="Ignoring invalid score fields (bad_score)" value="bad_score"/>
<option name="Ignoring invalid color fields (color_format)" value="color_format"/>
<option name="Ignoring malformed URLs (bad_url)" value="bad_url"/>
<option name="Score shading is not yet supported (score_shading)" value="score_shading"/>
</option>
<option name="Red Flags" value="red">
<option name="Sequence name in annotation file does not match name in MAF (seqname_mismatch)" value="seqname_mismatch"/>
<option name="BED Start or end &lt; 0 (bed_coord)" value="bed_coord"/>
<option name="GFF Start or end &lt; 1 (gff_coord)" value="gff_coord"/>
<option name="Missing item name for URL substitution (url_subst)" value="url_subst"/>
</option>
</option>
<option name="Miscellaneous" value="miscellaneous">
<option name="Possible parse error: token ends with an escaped quote (escaped_quote)" value="escaped_quote"/>
<option name="Draggable panel dividers will not be sticky (no_sticky)" value="no_sticky"/>
</option>
</option>
</options>
</param>
</inputs>
<configfiles>
<configfile name="gmaj_file">#:gmaj
title = "Galaxy: $maf_input.name"
alignfile = input.maf
refseq = any
tabext = .bed .gff .gtf
#if $nowarn.value:
nowarn = $nowarn
#end if
#for $seq_count, $annotation in $enumerate( $annotations ):
seq ${seq_count}:
#if $annotation['chromosome'].value:
seqname = $annotation['species'].$annotation['chromosome']
#else:
seqname = $annotation['species']
#end if
#if $annotation['exons_file'].dataset:
exons = ${seq_count}.exons.${annotation['exons_file'].extension}
#end if
#if $annotation['repeats_file'].dataset:
repeats = ${seq_count}.repeats.${annotation['repeats_file'].extension}
#end if
#if $annotation['links_file'].dataset:
links = ${seq_count}.links.${annotation['links_file'].extension}
#end if
#if $annotation['underlays_file'].dataset:
underlays = ${seq_count}.underlays.${annotation['underlays_file'].extension}
#end if
#if $annotation['highlights_file'].dataset:
highlights = ${seq_count}.highlights.${annotation['highlights_file'].extension}
#end if
offset = $annotation['offset']
#end for
</configfile>
<configfile name="filenames_file">
#for $seq_count, $annotation in $enumerate( $annotations ):
#if $annotation['exons_file'].dataset:
$annotation['exons_file'] = ${seq_count}.exons.${annotation['exons_file'].extension}
#end if
#if $annotation['repeats_file'].dataset:
$annotation['repeats_file'] = ${seq_count}.repeats.${annotation['repeats_file'].extension}
#end if
#if $annotation['links_file'].dataset:
$annotation['links_file'] = ${seq_count}.links.${annotation['links_file'].extension}
#end if
#if $annotation['underlays_file'].dataset:
$annotation['underlays_file'] = ${seq_count}.underlays.${annotation['underlays_file'].extension}
#end if
#if $annotation['highlights_file'].dataset:
$annotation['highlights_file'] = ${seq_count}.highlights.${annotation['highlights_file'].extension}
#end if
#end for
</configfile>
</configfiles>
<outputs>
<data name="out_file1" format="gmaj.zip"/>
</outputs>
<help>
You can use this tool to view a set of MAF alignments. You may also include optional annotation data for one or more of the organisms.
For detailed information on GMAJ, click here_.
.. _here: /static/gmaj/docs/gmaj_readme.html
Gmaj is a tool for viewing and manipulating Generalized Multiple Alignments (GMAs) produced by programs such as TBA (though it can also be used with maf-format alignments from other sources). It can display interactive graphical and text representations of the alignments, a diagram showing the locations of exons and repeats, and other annotations -- all with the user's choice of reference sequence.
</help>
</tool>