comparison exonerate.xml @ 0:f48ed38dfddf draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/exonerate commit e02d20338ee01ed58265d93e9cc5b0695a322d47
author iuc
date Thu, 02 Aug 2018 09:11:30 -0400
parents
children 2485637fe656
comparison
equal deleted inserted replaced
-1:000000000000 0:f48ed38dfddf
1 <tool id="exonerate" name="Exonerate" profile="16.04" version="@VERSION@">
2 <description>pairwise sequence comparison</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements"/>
7 <command><![CDATA[
8 exonerate
9
10 --query '$query'
11
12 #if str( $ref_seq.ref_seq_selector ) == "personal"
13 --target '${ref_seq.input_fasta}'
14 #else
15 --target '${ref_seq.input_fasta.fields.path}'
16 #end if
17
18 --score $score
19 --percent $percent
20 --bestn $bestn
21 --verbose 0
22
23 #if str($model) != "ungapped"
24 --model '${model}'
25 #end if
26
27 #if str($model) == "est2genome"
28 --querytype dna --targettype dna
29 #elif str($model) == "protein2genome"
30 --querytype protein --targettype dna
31 #elif str($model) == "coding2coding"
32 --querytype dna --targettype dna
33 #end if
34
35 #if str($outformat) == "alignment"
36 --showalignment yes --showvulgar no > '${output_ali}'
37 #elif str($outformat) == "targetgff"
38 --showalignment no --showvulgar no --showtargetgff yes --showquerygff no > '${output_gff}'
39 #elif str($outformat) == "querygff"
40 --showalignment no --showvulgar no --showtargetgff no --showquerygff yes > '${output_gff}'
41 #end if
42 ]]></command>
43
44 <inputs>
45 <param argument="--query" type="data" format="fasta" label="Select the query sequence(s) in fasta" />
46
47 <conditional name="ref_seq">
48 <param name="ref_seq_selector" type="select" label="Reference sequence(s)">
49 <option selected="True" value="database">Use a built-in genome</option>
50 <option value="personal">Use a genome from history</option>
51 </param>
52 <when value="database">
53 <param
54 help="If your genome of interest is not listed, contact the Galaxy server administrators"
55 label="Reference sequence(s)"
56 name="input_fasta"
57 type="select"
58 >
59 <options from_data_table="all_fasta">
60 <filter column="2" type="sort_by" />
61 <validator message="No sequences are available" type="no_options" />
62 </options>
63 </param>
64 </when>
65 <when value="personal">
66 <param name="input_fasta" type="data" format="fasta" label="Reference sequence(s)" />
67 </when>
68 </conditional>
69
70 <param name='model' type='select' label="Alignment method">
71 <option value="ungapped" selected="true">Simple ungapped alignment</option>
72 <option value="est2genome">est2genome: align cDNA to a genome</option>
73 <option value="protein2genome">protein2genome: align proteins to a genome</option>
74 <option value="coding2coding">coding2coding: 6-frame translated alignment of DNA sequences</option>
75 </param>
76 <param name='outformat' type='select' label="Output format">
77 <option value="targetgff" selected="true">GFF on target sequence(s)</option>
78 <option value="querygff">GFF on query sequence(s)</option>
79 <option value="alignment">Human readable alignment</option>
80 </param>
81 <param name='score' type='integer' min="0" max="10000" value="100" label="Score threshold for gapped alignment"/>
82 <param name='percent' type='float' min="0" max="100" value="0.0" label="Report alignment over a percentage of the maximum score attainable by each query"/>
83 <param name='bestn' type='integer' min="0" max="10000" value="0" label="Report best N results per query (0 to report all)"/>
84 </inputs>
85 <outputs>
86 <data name="output_gff" format="txt" label="${tool.name} on $on_string">
87 <filter>outformat != 'alignment'</filter>
88 </data>
89 <data name="output_ali" format="gff" label="${tool.name} on $on_string">
90 <filter>outformat == 'alignment'</filter>
91 </data>
92 </outputs>
93 <tests>
94 <test>
95 <param name="query" value="genome.fa"/>
96 <conditional name="ref_seq">
97 <param name="ref_seq_selector" value="personal"/>
98 <param name="input_fasta" value="genome.fa"/>
99 </conditional>
100 <param name="outformat" value="targetgff"/>
101 <output name="output_gff" file="out_target.gff"/>
102 </test>
103 <test>
104 <param name="query" value="genome.fa"/>
105 <conditional name="ref_seq">
106 <param name="ref_seq_selector" value="database"/>
107 <param name="input_fasta" value="merlin"/>
108 </conditional>
109 <param name="outformat" value="targetgff"/>
110 <output name="output_gff" file="out_target.gff"/>
111 </test>
112 <test>
113 <param name="query" value="genome.fa"/>
114 <conditional name="ref_seq">
115 <param name="ref_seq_selector" value="personal"/>
116 <param name="input_fasta" value="genome.fa"/>
117 </conditional>
118 <param name="outformat" value="querygff"/>
119 <output name="output_gff" file="out_query.gff"/>
120 </test>
121 <test>
122 <param name="query" value="genome.fa"/>
123 <conditional name="ref_seq">
124 <param name="ref_seq_selector" value="personal"/>
125 <param name="input_fasta" value="genome.fa"/>
126 </conditional>
127 <param name="outformat" value="alignment"/>
128 <output name="output_ali" file="out.txt"/>
129 </test>
130 <test>
131 <param name="query" value="transcriptome.fa"/>
132 <conditional name="ref_seq">
133 <param name="ref_seq_selector" value="personal"/>
134 <param name="input_fasta" value="genome.fa"/>
135 </conditional>
136 <param name="model" value="est2genome"/>
137 <param name="outformat" value="targetgff"/>
138 <output name="output_gff" file="est2genome.gff"/>
139 </test>
140 <test>
141 <param name="query" value="proteome.fa"/>
142 <conditional name="ref_seq">
143 <param name="ref_seq_selector" value="personal"/>
144 <param name="input_fasta" value="genome.fa"/>
145 </conditional>
146 <param name="model" value="protein2genome"/>
147 <param name="outformat" value="targetgff"/>
148 <output name="output_gff" file="protein2genome.gff"/>
149 </test>
150 <test>
151 <param name="query" value="genome.fa"/>
152 <conditional name="ref_seq">
153 <param name="ref_seq_selector" value="personal"/>
154 <param name="input_fasta" value="genome.fa"/>
155 </conditional>
156 <param name="model" value="coding2coding"/>
157 <param name="outformat" value="targetgff"/>
158 <output name="output_gff" file="coding2coding.gff"/>
159 </test>
160 </tests>
161 <help><![CDATA[
162 Exonerate is a generic tool for pairwise sequence comparison.
163 It allows you to align sequences using a many alignment models, using either exhaustive dynamic programming, or a variety of heuristics.
164
165 .. _Exonerate website: https://www.ebi.ac.uk/about/vertebrate-genomics/software/exonerate
166 ]]></help>
167 <expand macro="citations"/>
168 </tool>