annotate chewbbaca.xml @ 2:872ed5ee7b98 draft default tip

Update to xml file
author iss
date Fri, 10 May 2019 07:04:48 -0400
parents a3b5bee8ae1b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
1 <tool id="chewBBACA" name="chewBBACA" version="2.0">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
2 <description>BSR-Based Allele Calling Algorithm
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
3 </description>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
4 <requirements>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
5 <requirement type="package" version="3.6">Python</requirement>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
6 <requirement type="package" version="1.15.3">numpy</requirement>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
7 <requirement type="package" version="0.19.1">scipy</requirement>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
8 <requirement type="package" version="5.22.2.1">perl</requirement>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
9 <requirement type="package" version="1.72">biopython</requirement>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
10 <requirement type="package" version="3.8.1">plotly</requirement>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
11 <requirement type="package" version="1.8.2">SPARQLWrapper</requirement>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
12 <requirement type="package" version="0.23.4">pandas</requirement>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
13 <requirement type="package" version="2.5.0">blast</requirement>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
14 <requirement type="package" version="2.6.3">prodigal</requirement>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
15 <requirement type="package" version="2.1">clustalw</requirement>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
16 <requirement type="package" version="7.313">mafft</requirement>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
17 <requirement type="package" version="2.0.16">chewbbaca</requirement>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
18 </requirements>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
19 <!-- basic error handling -->
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
20 <stdio>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
21 <!-- Assume anything other than zero is an error -->
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
22 <exit_code range="1:" level="fatal" description="Tool exception" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
23 <exit_code range=":-1" level="fatal" description="Tool exception" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
24 </stdio>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
25 <command>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
26 perl
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
27 $__tool_directory__/chewBBACA.pl $selectFunction.myFunctions
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
28 #if str( $selectFunction.myFunctions ) in ('CreateSchema', 'AlleleCall')
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
29 '${",".join(map(str, $selectFunction.input1))}'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
30 #elif str( $selectFunction.myFunctions ) in ('SchemaEvaluator', 'TestGenomeQuality', 'ExtractCgMLST', 'RemoveGenes')
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
31 $selectFunction.input1
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
32 #else
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
33 'NULL'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
34 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
35 #if str( $selectFunction.myFunctions ) == 'AlleleCall'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
36 #set $input_names = []
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
37 #for $input in $selectFunction.input1
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
38 $input_names.append($input.element_identifier)
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
39 #end for
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
40 #set $input_name = ",".join(map(str, $input_names))
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
41 '$input_name'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
42 #else
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
43 'NULL'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
44 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
45 #if str( $selectFunction.myFunctions ) == 'CreateSchema'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
46 '$schema'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
47 #elif str( $selectFunction.myFunctions ) == 'AlleleCall'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
48 '$statistics,$contigsinfo,$alleles,$logginginfo,$repeatedloci'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
49 #elif str( $selectFunction.myFunctions ) == 'SchemaEvaluator'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
50 '$schemaplot'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
51 #elif str( $selectFunction.myFunctions ) == 'TestGenomeQuality'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
52 '$thresholdplot,$removedgenomes'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
53 #elif str( $selectFunction.myFunctions ) == 'RemoveGenes'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
54 '$removedgenes'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
55 #else
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
56 'NULL'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
57 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
58
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
59 "chewBBACA.py $selectFunction.myFunctions
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
60 #if str( $selectFunction.myFunctions ) in ('CreateSchema', 'AlleleCall', 'TestGenomeQuality', 'ExtractCgMLST')
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
61 -o output_dir
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
62 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
63 #if str( $selectFunction.myFunctions ) == 'RemoveGenes'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
64 -o output_removegenes
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
65 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
66 #if str( $selectFunction.myFunctions ) in ('CreateSchema', 'AlleleCall')
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
67 -i input_dir
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
68 --cpu \${GALAXY_SLOTS:-4}
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
69 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
70 #if str( $selectFunction.myFunctions ) in ('SchemaEvaluator', 'TestGenomeQuality', 'ExtractCgMLST', 'RemoveGenes')
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
71 -i $selectFunction.input1
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
72 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
73 #if str( $selectFunction.myFunctions ) in ('CreateSchema', 'AlleleCall')
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
74 #if $selectFunction.bsr
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
75 --bsr $selectFunction.bsr
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
76 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
77
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
78 #if $selectFunction.ptfmode.ptf_select=="system"
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
79 --ptf ${ filter( lambda x: str( x[0] ) == str( $selectFunction.ptfmode.ptf_system ), $__app__.tool_data_tables[ 'chewbbaca_ptfs' ].get_fields() )[0][-1] }
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
80 #elif $selectFunction.ptfmode.ptf_select=="user"
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
81 --ptf $selectFunction.ptfmode.ptf_user
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
82 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
83 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
84 #if str( $selectFunction.myFunctions ) == 'CreateSchema'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
85 #if $selectFunction.minBpLocus
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
86 -l $selectFunction.minBpLocus
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
87 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
88 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
89 #if str( $selectFunction.myFunctions ) == 'AlleleCall'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
90 #if $selectFunction.mode.schema_select=="system"
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
91 -g ${ filter( lambda x: str( x[0] ) == str( $selectFunction.mode.reference ), $__app__.tool_data_tables[ 'chewbbaca_schemas' ].get_fields() )[0][-1] }
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
92 #else
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
93 -g $selectFunction.mode.genes
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
94 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
95 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
96 #if str( $selectFunction.myFunctions ) == 'SchemaEvaluator'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
97 --cpu \${GALAXY_SLOTS:-4}
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
98 #if $selectFunction.conserved
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
99 -p
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
100 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
101 -l output_rms/SchemaEvaluator.html
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
102 -ta $selectFunction.ncbiTA
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
103 -t $selectFunction.threshold
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
104 #if $selectFunction.title
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
105 --title '$selectFunction.title'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
106 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
107 -s $selectFunction.numBoxplots
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
108 #if $selectFunction.light
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
109 --light
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
110 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
111 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
112 #if str( $selectFunction.myFunctions ) == 'TestGenomeQuality'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
113 -n $selectFunction.maxNumIterations
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
114 -t $selectFunction.maxThreshold
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
115 -s $selectFunction.stepThreshold
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
116 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
117 #if str( $selectFunction.myFunctions ) == 'ExtractCgMLST'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
118 #if $selectFunction.genes
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
119 -r $selectFunction.genes
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
120 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
121 #if $selectFunction.genomes
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
122 -g $selectFunction.genomes
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
123 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
124 #if $selectFunction.maxPresence
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
125 -p $selectFunction.maxPresence
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
126 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
127 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
128 #if str( $selectFunction.myFunctions ) == 'RemoveGenes'
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
129 -g $selectFunction.genes
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
130 #end if
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
131 "
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
132 </command>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
133
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
134 <inputs>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
135 <conditional name="selectFunction">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
136 <param name="myFunctions" type="select" label="Select function">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
137 <option value="CreateSchema">CreateSchema: Create a gene by gene schema based on genomes</option>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
138 <option value="AlleleCall" selected="true">AlleleCall: Perform allele call for target genomes</option>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
139 <option value="SchemaEvaluator">SchemaEvaluator: Tool that builds an html output to better navigate/visualize your schema</option>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
140 <option value="TestGenomeQuality">TestGenomeQuality: Analyze your allele call output to refine schemas</option>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
141 <option value="ExtractCgMLST">ExtractCgMLST: Select a subset of loci without missing data (to be used as PHYLOViZ input)</option>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
142 <option value="RemoveGenes">RemoveGenes: Remove a provided list of loci from your allele call output</option>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
143 </param>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
144 <when value="CreateSchema">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
145 <param name="input1" format="fasta" type="data" multiple="true" label="Selection of genome files (fasta)" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
146 <param name="bsr" type="text" value="0.6" optional="true" label="minimum BSR score" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
147 <conditional name="ptfmode">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
148 <param name="ptf_select" type="select" display="radio" label="Which Prodigal training file would you like to use?">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
149 <option value="system" selected="True">System training file</option>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
150 <option value="user">Own training file</option>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
151 </param>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
152 <when value="system">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
153 <param name="ptf_system" type="select" label="Choose Prodigal training file">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
154 <options from_data_table="chewbbaca_ptfs" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
155 </param>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
156 </when>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
157 <when value="user">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
158 <param name="ptf_user" format="binary" type="data" optional="true" multiple="false" label="Prodigal Training File" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
159 </when>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
160 </conditional>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
161 <param name="minBpLocus" type="integer" value="200" optional="true" label="minimum bp locus lenght" help="Integer" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
162 </when>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
163 <when value="AlleleCall">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
164 <param name="input1" format="fasta" type="data" multiple="true" label="Selection of genome files (fasta)" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
165 <conditional name="mode">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
166 <param name="schema_select" type="select" display="radio" label="Which schema would you like to use as a reference?">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
167 <option value="system" selected="True">System reference</option>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
168 <option value="user">Own reference</option>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
169 </param>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
170 <when value="system">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
171 <param name="reference" type="select" label="Choose reference">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
172 <options from_data_table="chewbbaca_schemas" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
173 </param>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
174 </when>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
175 <when value="user">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
176 <param name="genes" format="txt" type="data" label="File with list of genes (fasta)" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
177 </when>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
178 </conditional>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
179 <param name="bsr" type="text" value="0.6" optional="true" label="minimum BSR score" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
180 <conditional name="ptfmode">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
181 <param name="ptf_select" type="select" display="radio" label="Which Prodigal training file would you like to use?">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
182 <option value="system">System training file</option>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
183 <option value="user">Own training file</option>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
184 <option value="noptf" selected="True">No training file</option>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
185 </param>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
186 <when value="system">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
187 <param name="ptf_system" type="select" label="Choose Prodigal training file">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
188 <options from_data_table="chewbbaca_ptfs" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
189 </param>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
190 </when>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
191 <when value="user">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
192 <param name="ptf_user" format="binary" type="data" optional="true" multiple="false" label="Prodigal Training File" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
193 </when>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
194 <when value="noptf" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
195 </conditional>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
196 <!--<param name="forceContinue" type="boolean" truevalue="true" falsevalue="false" checked="False" label="force continue" />-->
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
197 <!--<param name="forceReset" type="boolean" truevalue="true" falsevalue="false" checked="False" label="force reset" />-->
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
198 <!--<param name="jsonFile" type="boolean" truevalue="true" falsevalue="false" checked="False" label="report in json file" />-->
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
199 </when>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
200 <when value="SchemaEvaluator">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
201 <param name="input1" format="txt" type="data" label="File with list of genes (fasta)" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
202 <param name="conserved" type="boolean" truevalue="true" falsevalue="false" checked="False" label="One bad allele still makes gene conserved" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
203 <param name="ncbiTA" type="integer" value="11" optional="true" label="ncbi translation table" help="Integer" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
204 <param name="threshold" type="float" value="0.05" optional="true" label="Threshold" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
205 <param name="title" type="text" value="My Analyzed wg/cg MLST Schema - Rate My Schema" optional="true" label="title on the html plot" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
206 <param name="numBoxplots" type="integer" value="500" optional="true" label="number of boxplots per page (more than 500 can make the page very slow)" help="Integer" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
207 <param name="light" type="boolean" truevalue="true" falsevalue="false" checked="False" label="skip clustal and mafft run" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
208 </when>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
209 <when value="TestGenomeQuality">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
210 <param name="input1" format="tsv" type="data" label="raw allele call matrix file" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
211 <param name="maxNumIterations" type="integer" value="12" label="maximum number of iterations" help="Each iteration removes a set of genomes over the defined threshold (-t) and recalculates all loci presence percentages" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
212 <param name="maxThreshold" type="integer" value="200" label="maximum threshold of bad calls above 95 percent" help="This threshold represents the maximum number of missing loci allowed, for each genome independently, before removing it (genome)" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
213 <param name="stepThreshold" type="integer" value="5" label="step between each threshold analysis (suggested 5)" help="Integer" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
214 </when>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
215 <when value="ExtractCgMLST">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
216 <param name="input1" format="tsv" type="data" label="input file to clean" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
217 <param name="genes" format="txt" type="data" optional="true" label="list of genes to remove, one per line" help="e.g. the list of gene detected by ParalogPrunning.py" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
218 <param name="genomes" format="txt" type="data" optional="true" label="list of genomes to remove, one per line" help="e.g. list of genomes to be removed selected based on testGenomeQuality results" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
219 <param name="maxPresence" type="float" value="1.0" optional="true" label="maximum presence (e.g 0.95)" >
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
220 <validator type="in_range" min="0" max="1" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
221 </param>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
222 </when>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
223 <when value="RemoveGenes">
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
224 <param name="input1" format="tsv" type="data" label="main matrix file from which to remove" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
225 <param name="genes" format="txt" type="data" label="list of genes to remove" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
226 </when>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
227 </conditional>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
228 </inputs>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
229
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
230 <!-- define outputs -->
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
231 <outputs>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
232 <data format="txt" name="schema" label="${tool.name}:CreateSchema on ${on_string}" >
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
233 <filter>selectFunction['myFunctions'] == "CreateSchema"</filter>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
234 </data>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
235 <data format="tsv" name="statistics" label="${tool.name}:AlleleCall on ${on_string}: Statistics" >
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
236 <filter>selectFunction['myFunctions'] == "AlleleCall"</filter>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
237 </data>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
238 <data format="tsv" name="contigsinfo" label="${tool.name}:AlleleCall on ${on_string}: Contigs Info" >
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
239 <filter>selectFunction['myFunctions'] == "AlleleCall"</filter>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
240 </data>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
241 <data format="tsv" name="alleles" label="${tool.name}:AlleleCall on ${on_string}: Alleles" >
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
242 <filter>selectFunction['myFunctions'] == "AlleleCall"</filter>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
243 </data>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
244 <data format="txt" name="logginginfo" label="${tool.name}:AlleleCall on ${on_string}: Logging info" >
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
245 <filter>selectFunction['myFunctions'] == "AlleleCall"</filter>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
246 </data>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
247 <data format="txt" name="repeatedloci" label="${tool.name}:AlleleCall on ${on_string}: Repeated Loci" >
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
248 <filter>selectFunction['myFunctions'] == "AlleleCall"</filter>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
249 </data>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
250 <data format="tar" name="schemaplot" label="${tool.name}:SchemaEvaluator on ${on_string}" >
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
251 <filter>selectFunction['myFunctions'] == "SchemaEvaluator"</filter>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
252 </data>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
253 <data format="html" name="thresholdplot" from_work_dir="output_dir/GenomeQualityPlot.html" label="${tool.name}:TestGenomeQuality on ${on_string}: Plot" >
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
254 <filter>selectFunction['myFunctions'] == "TestGenomeQuality"</filter>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
255 </data>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
256 <data format="tsv" name="removedgenomes" from_work_dir="output_dir/removedGenomes.txt" label="${tool.name}:TestGenomeQuality on ${on_string}: Removed genomes" >
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
257 <filter>selectFunction['myFunctions'] == "TestGenomeQuality"</filter>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
258 </data>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
259 <data format="tsv" name="cgmlst" from_work_dir="output_dir/cgMLST.tsv" label="${tool.name}:ExtractCgMLST on ${on_string}: cgMLST" >
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
260 <filter>selectFunction['myFunctions'] == "ExtractCgMLST"</filter>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
261 </data>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
262 <data format="txt" name="cgmlstschema" from_work_dir="output_dir/cgMLSTschema.txt" label="${tool.name}:ExtractCgMLST on ${on_string}: cgMLSTschema" >
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
263 <filter>selectFunction['myFunctions'] == "ExtractCgMLST"</filter>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
264 </data>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
265 <data format="tsv" name="removedgenes" from_work_dir="output_removegenes.tsv" label="${tool.name}:RemoveGenes on ${on_string}" >
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
266 <filter>selectFunction['myFunctions'] == "RemoveGenes"</filter>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
267 </data>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
268 </outputs>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
269 <tests>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
270 <test>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
271 <param name="selectFunction['myFunctions']" value="AlleleCall" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
272 <param name="input1" value="a_contigs.fasta" ftype="fasta" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
273 <param name="selectFunction.mode['schema_select']" value="system" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
274 <param name="selectFunction.mode['reference']" value="schema_pubMLST" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
275 <param name="selectFunction.mode['ptf_select']" value="noptf" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
276 <output name="statistics" >
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
277 <assert_contents>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
278 <has_text text="a_contigs.fasta" />
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
279 </assert_contents>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
280 </output>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
281 </test>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
282 </tests>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
283 <help>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
284 **chewBBACA** stands for "BSR-Based Allele Calling Algorithm". The "chew" part could be thought of as "Comprehensive and Highly Efficient Workflow"
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
285 but at this point still it needs a bit of work to make that claim so we just add "chew" to add extra coolness to the software name.
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
286
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
287 The development of the tools have been supported by INNUENDO project (https://www.innuendoweb.org) co-funded by the European Food Safety Authority (EFSA), grant agreement GP/EFSA/AFSCO/2015/01/CT2
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
288 ("New approaches in identifying and characterizing microbial and chemical hazards") and by the ONEIDA project (LISBOA-01-0145-FEDER-016417) co-funded by FEEI - “Fundos Europeus Estruturais e de Investimento”
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
289 from “Programa Operacional Regional Lisboa 2020” and by national funds from FCT - “Fundação para a Ciência e a Tecnologia” and BacGenTrack (TUBITAK/0004/2014)
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
290 [FCT/ Scientific and Technological Research Council of Turkey (Türkiye Bilimsel ve Teknolojik Araşrrma Kurumu, TÜBITAK)].
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
291 </help>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
292 <citations>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
293 <citation type="bibtex">@ARTICLE{andrews_s,
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
294 author = {Rossi, M and Silva, M and Ribeiro-Gonçalves, B and Silva, DN and Machado, MP and Oleastro, M and Borges, V and Isidro, J and Gomes, JP and Vieira, L and Barker, DOR and Llarena, AK and Halkilahti,
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
295 J and Jaakkonen, A and Palma, F and Culebro, A and Kivistö, R and Hänninen, ML and Laukkanen-Ninios, R and Fredriksson-Ahomaa, M and Salmenlinna, S and Hakkinen, M and Garaizer, J and Bikandi, J and Hilbert,
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
296 F and Taboada, EN and Carriço, JA},
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
297 keywords = {bioinformatics, ngs, mlst},
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
298 title = {{INNUENDO whole and core genome MLST databases and schemas for foodborne pathogens}},
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
299 url = {https://github.com/TheInnuendoProject/chewBBACA_schemas}
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
300 }</citation>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
301 <citation type="doi">10.1099/mgen.0.000166</citation>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
302 <citation type="doi">10.1371/journal.pgen.1007261</citation>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
303 </citations>
872ed5ee7b98 Update to xml file
iss
parents: 0
diff changeset
304 </tool>