comparison snipit.xml @ 0:20b4c59bec12 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/snipit commit 2320dd4efe4d9c800588be55d10008212229703d
author iuc
date Sun, 17 Jul 2022 15:01:31 +0000
parents
children 9f23fe0cb70b
comparison
equal deleted inserted replaced
-1:000000000000 0:20b4c59bec12
1 <tool id="snipit" name="snipit" version="@TOOL_VERSION@+galaxy0">
2 <description>Summarise snps relative to a reference sequence</description>
3 <macros>
4 <token name="@TOOL_VERSION@">1.0.5</token>
5 </macros>
6 <requirements>
7 <requirement type="package" version="@TOOL_VERSION@">snipit</requirement>
8 </requirements>
9 <command detect_errors="exit_code"><![CDATA[
10 snipit '$alignment'
11 #if $opt.reference
12 -r '$opt.reference'
13 #end if
14 #if $opt.labels
15 -l '$opt.labels'
16 #end if
17 --l-header '$opt.l_header'
18 -f '$opt.format'
19 --height '$opt.height'
20 --width '$opt.width'
21 --size-option '$opt.size_option'
22 $opt.flip_vertical
23 #if $opt.exclude_positions
24 --exclude-positions '$opt.exclude_positions'
25 #end if
26 $opt.exclude_ambig_pos
27 $opt.sort_by_mutation_number
28 $opt.sort_by_id
29 #if $opt.sort_by_mutations
30 --sort-by-mutations '$opt.sort_by_mutations'
31 #end if
32 $opt.high_to_low
33 -c '$opt.colour_palette'
34 ]]> </command>
35 <inputs>
36 <param name="alignment" format="fasta" type="data" label="Input alignment fasta file" />
37 <section name="opt" title="Optional arguments" expanded="true">
38 <param name="reference" argument="-r" type="text" optional="true" label="Reference sequence (by sequence ID)" help="Indicates which sequence in the alignment is the reference (by sequence ID). Default: first sequence in alignment" />
39 <param name="labels" argument="-l" type="data" format="csv" optional="true" label="Labels" help="Optional csv file of labels to show in output snipit plot. Default: sequence names"/>
40 <param argument="--l-header" type="text" value="name,label" label="Label headers" help="Comma separated string of column headers in label csv. First field indicates sequence name column, second the label column. Default: 'name,label'" />
41 <param name="format" argument="-f" type="select" value="png" label="Output file format" help="Format options. Default: png">
42 <option value="png" selected="true">png</option>
43 <option value="jpg">jpg</option>
44 <option value="pdf">pdf</option>
45 <option value="svg">svg</option>
46 <option value="tiff">tiff</option>
47 </param>
48 <param argument="--height" type="float" value="0.0" label="Figure height" help="Overwrite the default figure height." />
49 <param argument="--width" type="float" value="0.0" label="Figure width" help="Overwrite the default figure width." />
50 <param argument="--size-option" type="select" value="scale" label="Sizing options" help="Specify options for sizing. Options: expand, scale">
51 <option value="expand">expand</option>
52 <option value="scale" selected="true">scale</option>
53 </param>
54 <param argument="--flip-vertical" type="boolean" truevalue="--flip-vertical" falsevalue="" value="false" label="Flip plot orientation?" help="Flip the orientation of the plot so sequences are below the reference rather than above it. Default: false" />
55 <param argument="--exclude-positions" type="text" optional="true" label="Excluded positions" help="One or more range (closed, inclusive; one-indexed) or specific position to exclude in the output. Ex. '100-150' or Ex. '100 101' Considered after '--include-positions'." />
56 <param argument="--exclude-ambig-pos" type="boolean" truevalue="--exclude-ambig-pos" falsevalue="" value="false" label="Exclude ambig positions?" help="Exclude positions with ambig base in any sequences. Considered after '--include-positions'" />
57 <param argument="--sort-by-mutation-number" type="boolean" truevalue="--sort-by-mutation-number" falsevalue="" value="false" label="Sort by mutation number?" help="Render the graph with sequences sorted by the number of SNPs relative to the reference (fewest to most). Default: False" />
58 <param argument="--sort-by-id" type="boolean" truevalue="--sort-by-id" falsevalue="" value="false" label="Sort by sequence ID?" help="Sort sequences alphabetically by sequence id. Default: False" />
59 <param argument="--sort-by-mutations" type="text" optional="true" label="Sort by mutations" help="Sort sequences by bases at specified positions. Positions are comma separated integers. Ex. '1,2,3'" />
60 <param argument="--high-to-low" type="boolean" truevalue="--high-to-low" falsevalue="" value="false" label="Sort high to low?" help="If 'sort by mutation number' is selected, show the sequences with the fewest SNPs closest to the reference. Default: False" />
61 <param name="colour_palette" argument="-c" type="select" value="classic" label="Colour palette" help="Specify colour palette. Options: primary, classic, purine-pyrimidine, greyscale, wes, verity">
62 <option value="primary">primary</option>
63 <option value="classic" selected="true">classic</option>
64 <option value="purine-pyrimidine">purine-pyrimidine</option>
65 <option value="greyscale">greyscale</option>
66 <option value="wes">wes</option>
67 <option value="verity">verity</option>
68 </param>
69 </section>
70 </inputs>
71 <outputs>
72 <data name="snp_plot" format="png" label="snp plot" from_work_dir="snp_plot.*">
73 <change_format>
74 <when input="opt.format" value="jpg" format="jpg" />
75 <when input="opt.format" value="pdf" format="pdf" />
76 <when input="opt.format" value="svg" format="svg" />
77 <when input="opt.format" value="tiff" format="tiff" />
78 </change_format>
79 </data>
80 </outputs>
81 <tests>
82 <test>
83 <param name="alignment" value="input.fasta" />
84 <output name="snp_plot" ftype="png" file="snp_plot.png" compare="sim_size"/>
85 </test>
86 <test>
87 <param name="alignment" value="input.fasta" />
88 <param name="reference" value="USA_2" />
89 <param name="format" value="pdf" />
90 <param name="flip_vertical" value="true" />
91 <output name="snp_plot" ftype="pdf" file="snp_plot.pdf" compare="sim_size" />
92 </test>
93 <test>
94 <param name="alignment" value="input.fasta" />
95 <param name="format" value="jpg" />
96 <param name="colour_palette" value="verity" />
97 <output name="snp_plot" ftype="jpg" file="snp_plot.jpg" />
98 </test>
99 <test>
100 <param name="alignment" value="input.fasta" />
101 <param name="excluded_positions" value="1-100" />
102 <param name="exclude_ambig_pos" value="true" />
103 <param name="high_to_low" value="true" />
104 <output name="snp_plot" ftype="png" file="snp_plot_ex.png" compare="sim_size" />
105 </test>
106 </tests>
107 <help><![CDATA[
108 **What it does**
109
110 Snipit finds the SNPs relative to a reference in a multiple sequence alignment and highlights these changes as a figure.
111 ]]>
112 </help>
113 <citations>
114 <citation type="bibtex">
115 @UNPUBLISHED{OToole2017,
116 author = {O'Toole, Aine},
117 title = {snipit: Summarise snps relative to your reference sequence.},
118 year = {2017},
119 url = {https://github.com/aineniamh/snipit}
120 }
121 </citation>
122 </citations>
123 </tool>