annotate quast.xml @ 0:5367786dc871 draft default tip

Uploaded
author greg
date Tue, 14 Mar 2023 15:21:14 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
5367786dc871 Uploaded
greg
parents:
diff changeset
1 <tool id="quast" name="Quast" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
5367786dc871 Uploaded
greg
parents:
diff changeset
2 <description>Genome assembly Quality</description>
5367786dc871 Uploaded
greg
parents:
diff changeset
3 <macros>
5367786dc871 Uploaded
greg
parents:
diff changeset
4 <import>macros.xml</import>
5367786dc871 Uploaded
greg
parents:
diff changeset
5 </macros>
5367786dc871 Uploaded
greg
parents:
diff changeset
6 <expand macro="bio_tools"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
7 <expand macro='requirements' />
5367786dc871 Uploaded
greg
parents:
diff changeset
8 <command detect_errors="exit_code">
5367786dc871 Uploaded
greg
parents:
diff changeset
9 <![CDATA[
5367786dc871 Uploaded
greg
parents:
diff changeset
10 #import re
5367786dc871 Uploaded
greg
parents:
diff changeset
11 #import os
5367786dc871 Uploaded
greg
parents:
diff changeset
12
5367786dc871 Uploaded
greg
parents:
diff changeset
13 #if str($in.custom) == 'false'
5367786dc871 Uploaded
greg
parents:
diff changeset
14 #set $labels = ','.join( [re.sub('[^\w\-_]', '_', str($x.element_identifier)) for $x in $in.inputs])
5367786dc871 Uploaded
greg
parents:
diff changeset
15 echo $labels &&
5367786dc871 Uploaded
greg
parents:
diff changeset
16 #else
5367786dc871 Uploaded
greg
parents:
diff changeset
17 #set $labels = []
5367786dc871 Uploaded
greg
parents:
diff changeset
18 #for $x in $in.inputs
5367786dc871 Uploaded
greg
parents:
diff changeset
19 #if str($x.labels) != ''
5367786dc871 Uploaded
greg
parents:
diff changeset
20 #silent $labels.append(re.sub('[^\w\-_]', '_', str($x.labels)))
5367786dc871 Uploaded
greg
parents:
diff changeset
21 #else
5367786dc871 Uploaded
greg
parents:
diff changeset
22 #silent $labels.append(re.sub('[^\w\-_]', '_', str($x.input.element_identifier)))
5367786dc871 Uploaded
greg
parents:
diff changeset
23 #end if
5367786dc871 Uploaded
greg
parents:
diff changeset
24 #end for
5367786dc871 Uploaded
greg
parents:
diff changeset
25 #set $labels = ','.join($labels)
5367786dc871 Uploaded
greg
parents:
diff changeset
26 #end if
5367786dc871 Uploaded
greg
parents:
diff changeset
27
5367786dc871 Uploaded
greg
parents:
diff changeset
28 #if $assembly.type == 'metagenome' and $assembly.ref.origin == 'list'
5367786dc871 Uploaded
greg
parents:
diff changeset
29 #set $temp_ref_list_fp = 'temp_ref_list'
5367786dc871 Uploaded
greg
parents:
diff changeset
30 #for $i in $assembly.ref.references_list.split(',')
5367786dc871 Uploaded
greg
parents:
diff changeset
31 echo $i >> $temp_ref_list_fp &&
5367786dc871 Uploaded
greg
parents:
diff changeset
32 #end for
5367786dc871 Uploaded
greg
parents:
diff changeset
33 #end if
5367786dc871 Uploaded
greg
parents:
diff changeset
34
5367786dc871 Uploaded
greg
parents:
diff changeset
35 #if $reads.reads_option == 'paired'
5367786dc871 Uploaded
greg
parents:
diff changeset
36 #for $read in $reads.input_1
5367786dc871 Uploaded
greg
parents:
diff changeset
37 #set $identifier = re.sub('[^\s\w\-\\.]', '_', str($read.element_identifier))
5367786dc871 Uploaded
greg
parents:
diff changeset
38 ln -s '$read' 'pe1-${identifier}.${read.ext}' &&
5367786dc871 Uploaded
greg
parents:
diff changeset
39 #end for
5367786dc871 Uploaded
greg
parents:
diff changeset
40 #for $read in $reads.input_2
5367786dc871 Uploaded
greg
parents:
diff changeset
41 #set $identifier = re.sub('[^\s\w\-\\.]', '_', str($read.element_identifier))
5367786dc871 Uploaded
greg
parents:
diff changeset
42 ln -s '$read' 'pe2-${identifier}.${read.ext}' &&
5367786dc871 Uploaded
greg
parents:
diff changeset
43 #end for
5367786dc871 Uploaded
greg
parents:
diff changeset
44 #else if $reads.reads_option == 'paired_collection'
5367786dc871 Uploaded
greg
parents:
diff changeset
45 #set $identifier = re.sub('[^\s\w\-\\.]', '_', str($reads.input_1.element_identifier))
5367786dc871 Uploaded
greg
parents:
diff changeset
46 ln -s '$reads.input_1.forward' 'pe1-${identifier}.${reads.input_1.forward.ext}' &&
5367786dc871 Uploaded
greg
parents:
diff changeset
47 ln -s '$reads.input_1.reverse' 'pe2-${identifier}.${reads.input_1.reverse.ext}' &&
5367786dc871 Uploaded
greg
parents:
diff changeset
48 #end if
5367786dc871 Uploaded
greg
parents:
diff changeset
49
5367786dc871 Uploaded
greg
parents:
diff changeset
50 #if $assembly.type == 'genome'
5367786dc871 Uploaded
greg
parents:
diff changeset
51 quast
5367786dc871 Uploaded
greg
parents:
diff changeset
52 #else
5367786dc871 Uploaded
greg
parents:
diff changeset
53 metaquast
5367786dc871 Uploaded
greg
parents:
diff changeset
54 #end if
5367786dc871 Uploaded
greg
parents:
diff changeset
55
5367786dc871 Uploaded
greg
parents:
diff changeset
56 #if $reads.reads_option == 'single'
5367786dc871 Uploaded
greg
parents:
diff changeset
57 #for $read in $reads.input_1
5367786dc871 Uploaded
greg
parents:
diff changeset
58 --single '$read'
5367786dc871 Uploaded
greg
parents:
diff changeset
59 #end for
5367786dc871 Uploaded
greg
parents:
diff changeset
60 #else if $reads.reads_option == 'paired'
5367786dc871 Uploaded
greg
parents:
diff changeset
61 #for $read in $reads.input_1
5367786dc871 Uploaded
greg
parents:
diff changeset
62 #set $identifier = re.sub('[^\s\w\-\\.]', '_', str($read.element_identifier))
5367786dc871 Uploaded
greg
parents:
diff changeset
63 --pe1 'pe1-${identifier}.${read.ext}'
5367786dc871 Uploaded
greg
parents:
diff changeset
64 #end for
5367786dc871 Uploaded
greg
parents:
diff changeset
65 #for $read in $reads.input_2
5367786dc871 Uploaded
greg
parents:
diff changeset
66 #set $identifier = re.sub('[^\s\w\-\\.]', '_', str($read.element_identifier))
5367786dc871 Uploaded
greg
parents:
diff changeset
67 --pe2 'pe2-${identifier}.${read.ext}'
5367786dc871 Uploaded
greg
parents:
diff changeset
68 #end for
5367786dc871 Uploaded
greg
parents:
diff changeset
69 #else if $reads.reads_option == 'paired_collection'
5367786dc871 Uploaded
greg
parents:
diff changeset
70 #set $identifier = re.sub('[^\s\w\-\\.]', '_', str($reads.input_1.element_identifier))
5367786dc871 Uploaded
greg
parents:
diff changeset
71 --pe1 'pe1-${identifier}.${reads.input_1.forward.ext}'
5367786dc871 Uploaded
greg
parents:
diff changeset
72 --pe2 'pe2-${identifier}.${reads.input_1.reverse.ext}'
5367786dc871 Uploaded
greg
parents:
diff changeset
73 #else if $reads.reads_option == 'paired_interlaced'
5367786dc871 Uploaded
greg
parents:
diff changeset
74 #for $read in $reads.input_1
5367786dc871 Uploaded
greg
parents:
diff changeset
75 --pe12 '$read'
5367786dc871 Uploaded
greg
parents:
diff changeset
76 #end for
5367786dc871 Uploaded
greg
parents:
diff changeset
77 #else if $reads.reads_option == 'mate_paired'
5367786dc871 Uploaded
greg
parents:
diff changeset
78 #for $read in $reads.input_1
5367786dc871 Uploaded
greg
parents:
diff changeset
79 --mp1 '$read'
5367786dc871 Uploaded
greg
parents:
diff changeset
80 #end for
5367786dc871 Uploaded
greg
parents:
diff changeset
81 #for $read in $reads.input_2
5367786dc871 Uploaded
greg
parents:
diff changeset
82 --mp2 '$read'
5367786dc871 Uploaded
greg
parents:
diff changeset
83 #end for
5367786dc871 Uploaded
greg
parents:
diff changeset
84 #else if $reads.reads_option == 'pacbio'
5367786dc871 Uploaded
greg
parents:
diff changeset
85 #for $read in $reads.input_1
5367786dc871 Uploaded
greg
parents:
diff changeset
86 --pacbio '$read'
5367786dc871 Uploaded
greg
parents:
diff changeset
87 #end for
5367786dc871 Uploaded
greg
parents:
diff changeset
88 #else if $reads.reads_option == 'nanopore'
5367786dc871 Uploaded
greg
parents:
diff changeset
89 #for $read in $reads.input_1
5367786dc871 Uploaded
greg
parents:
diff changeset
90 --nanopore '$read'
5367786dc871 Uploaded
greg
parents:
diff changeset
91 #end for
5367786dc871 Uploaded
greg
parents:
diff changeset
92 #end if
5367786dc871 Uploaded
greg
parents:
diff changeset
93
5367786dc871 Uploaded
greg
parents:
diff changeset
94 --labels '$labels'
5367786dc871 Uploaded
greg
parents:
diff changeset
95 -o 'outputdir'
5367786dc871 Uploaded
greg
parents:
diff changeset
96
5367786dc871 Uploaded
greg
parents:
diff changeset
97 #if $assembly.type == 'genome'
5367786dc871 Uploaded
greg
parents:
diff changeset
98 #if $assembly.ref.use_ref == 'true'
5367786dc871 Uploaded
greg
parents:
diff changeset
99 #if $assembly.ref.reference_source.reference_source_selector == 'history':
5367786dc871 Uploaded
greg
parents:
diff changeset
100 -r '$assembly.ref.reference_source.r'
5367786dc871 Uploaded
greg
parents:
diff changeset
101 #else:
5367786dc871 Uploaded
greg
parents:
diff changeset
102 -r '$assembly.ref.reference_source.r.fields.path'
5367786dc871 Uploaded
greg
parents:
diff changeset
103 #end if
5367786dc871 Uploaded
greg
parents:
diff changeset
104 #if $assembly.ref.features
5367786dc871 Uploaded
greg
parents:
diff changeset
105 --features '$assembly.ref.features'
5367786dc871 Uploaded
greg
parents:
diff changeset
106 #end if
5367786dc871 Uploaded
greg
parents:
diff changeset
107 #if $assembly.ref.operons
5367786dc871 Uploaded
greg
parents:
diff changeset
108 --operons '$assembly.ref.operons'
5367786dc871 Uploaded
greg
parents:
diff changeset
109 #end if
5367786dc871 Uploaded
greg
parents:
diff changeset
110 $assembly.ref.circos
5367786dc871 Uploaded
greg
parents:
diff changeset
111 $assembly.ref.k_mer.k_mer_stats
5367786dc871 Uploaded
greg
parents:
diff changeset
112 #if str($assembly.ref.k_mer.k_mer_stats) != ''
5367786dc871 Uploaded
greg
parents:
diff changeset
113 --k-mer-size $assembly.ref.k_mer.k_mer_size
5367786dc871 Uploaded
greg
parents:
diff changeset
114 #end if
5367786dc871 Uploaded
greg
parents:
diff changeset
115 #else if $assembly.ref.est_ref_size
5367786dc871 Uploaded
greg
parents:
diff changeset
116 --est-ref-size $assembly.ref.est_ref_size
5367786dc871 Uploaded
greg
parents:
diff changeset
117 #end if
5367786dc871 Uploaded
greg
parents:
diff changeset
118 $assembly.orga_type
5367786dc871 Uploaded
greg
parents:
diff changeset
119 #else if $assembly.type == 'metagenome'
5367786dc871 Uploaded
greg
parents:
diff changeset
120 #if $assembly.ref.origin == 'history'
5367786dc871 Uploaded
greg
parents:
diff changeset
121 -r '$assembly.ref.r'
5367786dc871 Uploaded
greg
parents:
diff changeset
122 #else if $assembly.ref.origin == 'list'
5367786dc871 Uploaded
greg
parents:
diff changeset
123 --references-list '$temp_ref_list_fp'
5367786dc871 Uploaded
greg
parents:
diff changeset
124 #else if $assembly.ref.origin == 'silva'
5367786dc871 Uploaded
greg
parents:
diff changeset
125 --test-no-ref
5367786dc871 Uploaded
greg
parents:
diff changeset
126 --max-ref-num $assembly.ref.max_ref_num
5367786dc871 Uploaded
greg
parents:
diff changeset
127 #end if
5367786dc871 Uploaded
greg
parents:
diff changeset
128 $assembly.reuse_combined_alignments
5367786dc871 Uploaded
greg
parents:
diff changeset
129 #end if
5367786dc871 Uploaded
greg
parents:
diff changeset
130
5367786dc871 Uploaded
greg
parents:
diff changeset
131 --min-identity $assembly.min_identity
5367786dc871 Uploaded
greg
parents:
diff changeset
132 --min-contig $min_contig
5367786dc871 Uploaded
greg
parents:
diff changeset
133 $split_scaffolds
5367786dc871 Uploaded
greg
parents:
diff changeset
134 $large
5367786dc871 Uploaded
greg
parents:
diff changeset
135
5367786dc871 Uploaded
greg
parents:
diff changeset
136 #if str($genes.gene_finding.tool) != 'none'
5367786dc871 Uploaded
greg
parents:
diff changeset
137 $genes.gene_finding.tool
5367786dc871 Uploaded
greg
parents:
diff changeset
138 #if $genes.gene_finding.tool == '--gene_finding' or $genes.gene_finding.tool == '--glimmer'
5367786dc871 Uploaded
greg
parents:
diff changeset
139 #set $gene_threshold = ','.join([x.strip() for x in str($genes.gene_finding.gene_thresholds).split(',')])
5367786dc871 Uploaded
greg
parents:
diff changeset
140 --gene-thresholds '$gene_threshold'
5367786dc871 Uploaded
greg
parents:
diff changeset
141 #end if
5367786dc871 Uploaded
greg
parents:
diff changeset
142 #end if
5367786dc871 Uploaded
greg
parents:
diff changeset
143
5367786dc871 Uploaded
greg
parents:
diff changeset
144 $genes.rna_finding
5367786dc871 Uploaded
greg
parents:
diff changeset
145 $genes.conserved_genes_finding
5367786dc871 Uploaded
greg
parents:
diff changeset
146 $alignments.use_all_alignments
5367786dc871 Uploaded
greg
parents:
diff changeset
147 --min-alignment $alignments.min_alignment
5367786dc871 Uploaded
greg
parents:
diff changeset
148 --ambiguity-usage '$alignments.ambiguity_usage'
5367786dc871 Uploaded
greg
parents:
diff changeset
149 --ambiguity-score $alignments.ambiguity_score
5367786dc871 Uploaded
greg
parents:
diff changeset
150 $alignments.fragmented
5367786dc871 Uploaded
greg
parents:
diff changeset
151 $alignments.upper_bound_assembly
5367786dc871 Uploaded
greg
parents:
diff changeset
152 #if $alignments.upper_bound_min_con
5367786dc871 Uploaded
greg
parents:
diff changeset
153 --upper-bound-min-con $alignments.upper_bound_min_con
5367786dc871 Uploaded
greg
parents:
diff changeset
154 #end if
5367786dc871 Uploaded
greg
parents:
diff changeset
155 #if $alignments.local_mis_size
5367786dc871 Uploaded
greg
parents:
diff changeset
156 --local-mis-size $alignments.local_mis_size
5367786dc871 Uploaded
greg
parents:
diff changeset
157 #end if
5367786dc871 Uploaded
greg
parents:
diff changeset
158
5367786dc871 Uploaded
greg
parents:
diff changeset
159 #if $alignments.fragmented
5367786dc871 Uploaded
greg
parents:
diff changeset
160 #if $advanced.fragmented_max_indent != ''
5367786dc871 Uploaded
greg
parents:
diff changeset
161 --fragmented-max-indent $advanced.fragmented_max_indent
5367786dc871 Uploaded
greg
parents:
diff changeset
162 #end if
5367786dc871 Uploaded
greg
parents:
diff changeset
163 #end if
5367786dc871 Uploaded
greg
parents:
diff changeset
164
5367786dc871 Uploaded
greg
parents:
diff changeset
165 #set $contig_thresholds = ','.join([x.strip() for x in str($advanced.contig_thresholds).split(',')])
5367786dc871 Uploaded
greg
parents:
diff changeset
166 --contig-thresholds '$contig_thresholds'
5367786dc871 Uploaded
greg
parents:
diff changeset
167 $advanced.strict_NA
5367786dc871 Uploaded
greg
parents:
diff changeset
168 --extensive-mis-size $advanced.extensive_mis_size
5367786dc871 Uploaded
greg
parents:
diff changeset
169 --scaffold-gap-max-size $advanced.scaffold_gap_max_size
5367786dc871 Uploaded
greg
parents:
diff changeset
170 --unaligned-part-size $advanced.unaligned_part_size
5367786dc871 Uploaded
greg
parents:
diff changeset
171 $advanced.skip_unaligned_mis_contigs
5367786dc871 Uploaded
greg
parents:
diff changeset
172 $advanced.report_all_metrics
5367786dc871 Uploaded
greg
parents:
diff changeset
173 --x-for-Nx $advanced.x_for_Nx
5367786dc871 Uploaded
greg
parents:
diff changeset
174
5367786dc871 Uploaded
greg
parents:
diff changeset
175 #if str($in.custom) == 'false'
5367786dc871 Uploaded
greg
parents:
diff changeset
176 #for $k in $in.inputs
5367786dc871 Uploaded
greg
parents:
diff changeset
177 '$k'
5367786dc871 Uploaded
greg
parents:
diff changeset
178 #end for
5367786dc871 Uploaded
greg
parents:
diff changeset
179 #else
5367786dc871 Uploaded
greg
parents:
diff changeset
180 #for $k in $in.inputs
5367786dc871 Uploaded
greg
parents:
diff changeset
181 '$k.input'
5367786dc871 Uploaded
greg
parents:
diff changeset
182 #end for
5367786dc871 Uploaded
greg
parents:
diff changeset
183 #end if
5367786dc871 Uploaded
greg
parents:
diff changeset
184 --threads \${GALAXY_SLOTS:-1}
5367786dc871 Uploaded
greg
parents:
diff changeset
185
5367786dc871 Uploaded
greg
parents:
diff changeset
186 #if $assembly.type == 'genome'
5367786dc871 Uploaded
greg
parents:
diff changeset
187 && mkdir -p '$report_html.files_path'
5367786dc871 Uploaded
greg
parents:
diff changeset
188 && cp outputdir/*.html '$report_html.files_path'
5367786dc871 Uploaded
greg
parents:
diff changeset
189 #if $assembly.ref.use_ref
5367786dc871 Uploaded
greg
parents:
diff changeset
190 && cp -R outputdir/icarus_viewers '$report_html.files_path'
5367786dc871 Uploaded
greg
parents:
diff changeset
191 #end if
5367786dc871 Uploaded
greg
parents:
diff changeset
192 #else
5367786dc871 Uploaded
greg
parents:
diff changeset
193 && if [[ -f "outputdir/report.tsv" ]]; then mkdir -p "outputdir/combined_reference/" && cp "outputdir/report.tsv" "outputdir/combined_reference/report.tsv"; fi
5367786dc871 Uploaded
greg
parents:
diff changeset
194 && if [[ -f "outputdir/report.html" ]]; then mkdir -p "outputdir/combined_reference/" && cp outputdir/*.html "outputdir/combined_reference/"; fi
5367786dc871 Uploaded
greg
parents:
diff changeset
195 && mkdir -p '$report_html_meta.files_path'
5367786dc871 Uploaded
greg
parents:
diff changeset
196 && cp outputdir/combined_reference/*.html '$report_html_meta.files_path'
5367786dc871 Uploaded
greg
parents:
diff changeset
197 && if [[ -d "outputdir/icarus_viewers" ]]; then cp -R outputdir/icarus_viewers 'outputdir/combined_reference/'; fi
5367786dc871 Uploaded
greg
parents:
diff changeset
198 && if [[ -d "outputdir/combined_reference/icarus_viewers" ]]; then cp -R outputdir/combined_reference/icarus_viewers '$report_html_meta.files_path'; fi
5367786dc871 Uploaded
greg
parents:
diff changeset
199 && if [[ -d "outputdir/krona_charts/" ]]; then mkdir -p '$krona.files_path' && cp outputdir/krona_charts/*.html '$krona.files_path'; fi
5367786dc871 Uploaded
greg
parents:
diff changeset
200 #end if
5367786dc871 Uploaded
greg
parents:
diff changeset
201 ]]></command>
5367786dc871 Uploaded
greg
parents:
diff changeset
202 <inputs>
5367786dc871 Uploaded
greg
parents:
diff changeset
203 <conditional name="in">
5367786dc871 Uploaded
greg
parents:
diff changeset
204 <param name="custom" type="select" label="Use customized names for the input files?" help="They will be used in reports, plots and logs">
5367786dc871 Uploaded
greg
parents:
diff changeset
205 <option value="true">Yes, specify custom names</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
206 <option value="false" selected="true">No, use dataset names</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
207 </param>
5367786dc871 Uploaded
greg
parents:
diff changeset
208 <when value="true">
5367786dc871 Uploaded
greg
parents:
diff changeset
209 <repeat name="inputs" title="Contigs/scaffolds" min="1">
5367786dc871 Uploaded
greg
parents:
diff changeset
210 <param name="input" type="data" format="fasta" label="Contigs/scaffolds file"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
211 <param argument="--labels" type="text" value="" label="Name"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
212 </repeat>
5367786dc871 Uploaded
greg
parents:
diff changeset
213 </when>
5367786dc871 Uploaded
greg
parents:
diff changeset
214 <when value="false">
5367786dc871 Uploaded
greg
parents:
diff changeset
215 <param name="inputs" type="data" format="fasta" multiple="true" label="Contigs/scaffolds file"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
216 </when>
5367786dc871 Uploaded
greg
parents:
diff changeset
217 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
218 <conditional name="reads">
5367786dc871 Uploaded
greg
parents:
diff changeset
219 <param name="reads_option" type="select" label="Reads options" help="Currently, the supported read types are Illumina unpaired, paired-end and mate-pair reads, PacBio SMRT, and Oxford Nanopore long reads.">
5367786dc871 Uploaded
greg
parents:
diff changeset
220 <option value="disabled">Disabled</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
221 <option value="single">Illumina single-end reads</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
222 <option value="paired">Illumina paired-end reads</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
223 <option value="paired_collection">Illumina paired-end reads in paired collection</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
224 <option value="paired_interlaced">Illumina interlaced paired-end reads</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
225 <option value="mate_paired">Illumina mate-pair reads</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
226 <option value="pacbio">Pacbio SMRT reads</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
227 <option value="nanopore">Nanopore reads</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
228 </param>
5367786dc871 Uploaded
greg
parents:
diff changeset
229 <when value="disabled"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
230 <when value="single">
5367786dc871 Uploaded
greg
parents:
diff changeset
231 <param name="input_1" format="fastq,fastq.gz,fasta,fasta.gz" type="data" multiple="true" label="FASTQ/FASTA file" />
5367786dc871 Uploaded
greg
parents:
diff changeset
232 </when>
5367786dc871 Uploaded
greg
parents:
diff changeset
233 <when value="paired">
5367786dc871 Uploaded
greg
parents:
diff changeset
234 <param name="input_1" format="fastq,fastq.gz,fasta,fasta.gz" type="data" multiple="true" label="FASTQ/FASTA file #1" />
5367786dc871 Uploaded
greg
parents:
diff changeset
235 <param name="input_2" format="fastq,fastq.gz,fasta,fasta.gz" type="data" multiple="true" label="FASTQ/FASTA file #2" />
5367786dc871 Uploaded
greg
parents:
diff changeset
236 </when>
5367786dc871 Uploaded
greg
parents:
diff changeset
237 <when value="paired_collection">
5367786dc871 Uploaded
greg
parents:
diff changeset
238 <param name="input_1" type="data_collection" collection_type="paired" format="fastq,fastq.gz,fasta,fasta.gz" label="FASTQ/FASTA files" />
5367786dc871 Uploaded
greg
parents:
diff changeset
239 </when>
5367786dc871 Uploaded
greg
parents:
diff changeset
240 <when value="paired_interlaced">
5367786dc871 Uploaded
greg
parents:
diff changeset
241 <param name="input_1" format="fastq,fastq.gz,fasta,fasta.gz" type="data" multiple="true" label="FASTQ/FASTA file" />
5367786dc871 Uploaded
greg
parents:
diff changeset
242 </when>
5367786dc871 Uploaded
greg
parents:
diff changeset
243 <when value="mate_paired">
5367786dc871 Uploaded
greg
parents:
diff changeset
244 <param name="input_1" format="fastq,fastq.gz,fasta,fasta.gz" type="data" multiple="true" label="FASTQ/FASTA file #1" />
5367786dc871 Uploaded
greg
parents:
diff changeset
245 <param name="input_2" format="fastq,fastq.gz,fasta,fasta.gz" type="data" multiple="true" label="FASTQ/FASTA file #2" />
5367786dc871 Uploaded
greg
parents:
diff changeset
246 </when>
5367786dc871 Uploaded
greg
parents:
diff changeset
247 <when value="pacbio">
5367786dc871 Uploaded
greg
parents:
diff changeset
248 <param name="input_1" format="fastq,fastq.gz,fasta,fasta.gz" type="data" multiple="true" label="FASTQ/FASTA file" />
5367786dc871 Uploaded
greg
parents:
diff changeset
249 </when>
5367786dc871 Uploaded
greg
parents:
diff changeset
250 <when value="nanopore">
5367786dc871 Uploaded
greg
parents:
diff changeset
251 <param name="input_1" format="fastq,fastq.gz,fasta,fasta.gz" type="data" multiple="true" label="FASTQ/FASTA file" />
5367786dc871 Uploaded
greg
parents:
diff changeset
252 </when>
5367786dc871 Uploaded
greg
parents:
diff changeset
253 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
254 <conditional name="assembly">
5367786dc871 Uploaded
greg
parents:
diff changeset
255 <param name="type" type="select" label="Type of assembly">
5367786dc871 Uploaded
greg
parents:
diff changeset
256 <option value="genome">Genome</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
257 <option value="metagenome">Metagenome</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
258 </param>
5367786dc871 Uploaded
greg
parents:
diff changeset
259 <when value="genome">
5367786dc871 Uploaded
greg
parents:
diff changeset
260 <conditional name="ref">
5367786dc871 Uploaded
greg
parents:
diff changeset
261 <param name="use_ref" type="select" label="Use a reference genome?" help="Many metrics can't be evaluated without a reference. If this is omitted, QUAST will only report the metrics that can be evaluated without a reference.">
5367786dc871 Uploaded
greg
parents:
diff changeset
262 <option value="true">Yes</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
263 <option value="false" selected="true">No</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
264 </param>
5367786dc871 Uploaded
greg
parents:
diff changeset
265 <when value="true">
5367786dc871 Uploaded
greg
parents:
diff changeset
266 <conditional name="reference_source">
5367786dc871 Uploaded
greg
parents:
diff changeset
267 <param name="reference_source_selector" type="select" label="Select a reference genome from your history or select a cached reference genome?">
5367786dc871 Uploaded
greg
parents:
diff changeset
268 <option value="cached">Select a cached reference genome</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
269 <option value="history">Select a reference genome from the history and build the index</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
270 </param>
5367786dc871 Uploaded
greg
parents:
diff changeset
271 <when value="cached">
5367786dc871 Uploaded
greg
parents:
diff changeset
272 <param argument="-r" type="select" label="Using reference genome" help="Select genome from the list">
5367786dc871 Uploaded
greg
parents:
diff changeset
273 <options from_data_table="all_fasta">
5367786dc871 Uploaded
greg
parents:
diff changeset
274 <filter type="sort_by" column="2"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
275 <validator type="no_options" message="No reference genomes are available"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
276 </options>
5367786dc871 Uploaded
greg
parents:
diff changeset
277 <validator type="no_options" message="A cached reference genome is not available for the build associated with the selected input file"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
278 </param>
5367786dc871 Uploaded
greg
parents:
diff changeset
279 </when>
5367786dc871 Uploaded
greg
parents:
diff changeset
280 <when value="history">
5367786dc871 Uploaded
greg
parents:
diff changeset
281 <param argument="-r" type="data" format="fasta" multiple="true" label="Reference genome" />
5367786dc871 Uploaded
greg
parents:
diff changeset
282 </when>
5367786dc871 Uploaded
greg
parents:
diff changeset
283 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
284 <param argument="--features" type="data" format="gff, gff3, bed" optional="true" label="Genomic feature positions in the reference genome" help="Gene coordinates for the reference genome"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
285 <param argument="--operons" type="data" format="gff, gff3, bed" optional="true" label="Operon positions in the reference genome" help="Operon coordinates for the reference genome"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
286 <conditional name="k_mer">
5367786dc871 Uploaded
greg
parents:
diff changeset
287 <param argument="--k-mer-stats" type="select" label="Compute k-mer-based quality metrics?" help="It is recommended for large genomes. This may significantly increase memory and time consumption on large genomes">
5367786dc871 Uploaded
greg
parents:
diff changeset
288 <option value="--k-mer-stats">Yes</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
289 <option value="" selected="true">No</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
290 </param>
5367786dc871 Uploaded
greg
parents:
diff changeset
291 <when value="--k-mer-stats">
5367786dc871 Uploaded
greg
parents:
diff changeset
292 <param name="k_mer_size" argument="--k-mer-size" type="integer" value="101" label="Size of k" />
5367786dc871 Uploaded
greg
parents:
diff changeset
293 </when>
5367786dc871 Uploaded
greg
parents:
diff changeset
294 <when value=""/>
5367786dc871 Uploaded
greg
parents:
diff changeset
295 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
296 <param argument="--circos" type="boolean" truevalue="--circos" falsevalue="" checked="false" label="Generage Circos plot" help="Plot Circos version of Icarus contig alignment viewer"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
297 </when>
5367786dc871 Uploaded
greg
parents:
diff changeset
298 <when value="false">
5367786dc871 Uploaded
greg
parents:
diff changeset
299 <param argument="--est-ref-size" type="integer" optional="true" label="Estimated reference genome size (in bp) for computing NGx statistics" help=""/>
5367786dc871 Uploaded
greg
parents:
diff changeset
300 </when>
5367786dc871 Uploaded
greg
parents:
diff changeset
301 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
302 <param name="orga_type" type="select" label="Type of organism">
5367786dc871 Uploaded
greg
parents:
diff changeset
303 <option value="">Prokaryotes: use of GeneMarkS for gene finding (default)</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
304 <option value="--eukaryote">Eukaryote: use of GeneMark-ES for gene finding, Barrnap for ribosomal RNA genes prediction, BUSCO for conserved orthologs finding (--eukaryote)</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
305 <option value="--fungus">Fungus: use of GeneMark-ES for gene finding, Barrnap for ribosomal RNA genes prediction, BUSCO for conserved orthologs finding (--fungus)</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
306 </param>
5367786dc871 Uploaded
greg
parents:
diff changeset
307 <expand macro="min_identity_macros" value="95"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
308 </when>
5367786dc871 Uploaded
greg
parents:
diff changeset
309 <when value="metagenome">
5367786dc871 Uploaded
greg
parents:
diff changeset
310 <conditional name="ref">
5367786dc871 Uploaded
greg
parents:
diff changeset
311 <param name="origin" type="select" label="Reference genome" help="Many metrics can't be evaluated without a reference. If this is omitted, QUAST will only report the metrics that can be evaluated without a reference.">
5367786dc871 Uploaded
greg
parents:
diff changeset
312 <option value="history">From history</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
313 <option value="list">From list</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
314 <option value="silva">From SILVA database</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
315 <option value="none" selected="true">None</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
316 </param>
5367786dc871 Uploaded
greg
parents:
diff changeset
317 <when value="history">
5367786dc871 Uploaded
greg
parents:
diff changeset
318 <param argument="-r" type="data" format="fasta" multiple="true" label="Reference genome" />
5367786dc871 Uploaded
greg
parents:
diff changeset
319 </when>
5367786dc871 Uploaded
greg
parents:
diff changeset
320 <when value="list">
5367786dc871 Uploaded
greg
parents:
diff changeset
321 <param name="references_list" argument="references-list" type="text" value="" label="Comma-separated list of reference genomes" help="MetaQUAST will search for these references in the NCBI database and will download the found ones"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
322 </when>
5367786dc871 Uploaded
greg
parents:
diff changeset
323 <when value="silva">
5367786dc871 Uploaded
greg
parents:
diff changeset
324 <param name="max_ref_num" argument="-max-ref-num" type="integer" value="50" label="Maximum number of reference genomes (per each assembly) to download after searching in the SILVA databa" />
5367786dc871 Uploaded
greg
parents:
diff changeset
325 </when>
5367786dc871 Uploaded
greg
parents:
diff changeset
326 <when value="none"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
327 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
328 <param argument="--reuse-combined-alignments" type="boolean" truevalue="--reuse-combined-alignments" falsevalue="" checked="false" label="Reuse the alignments on the combined reference" help="Reuse the alignments on the combined reference in the subsequent runs per separate references. That is, the alignment procedure is performed only once (for all assemblies against the combined reference) and does NOT executed for each subgroups of contigs against the corresponding separate reference genomes. In each separate reference run, all precomputed assembly alignments for other references are simply ignored" />
5367786dc871 Uploaded
greg
parents:
diff changeset
329 <expand macro="min_identity_macros" value="90"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
330 </when>
5367786dc871 Uploaded
greg
parents:
diff changeset
331 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
332 <param argument="--min-contig" type="integer" value="500" label="Lower threshold for a contig length (in bp)" help="Shorter contigs won't be taken into account"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
333 <param argument="--split-scaffolds" type="boolean" truevalue="--split-scaffolds" falsevalue="" checked="false" label="Are assemblies scaffolds rather than contigs?" help="QUAST will add split versions of assemblies to the comparison. Assemblies are split by continuous fragments of N's of length >= 10. If broken version is equal to the original assembly (i.e. nothing was split) it is not included in the comparison."/>
5367786dc871 Uploaded
greg
parents:
diff changeset
334 <param argument="--large" type="boolean" truevalue="--large" falsevalue="" checked="false" label="Is genome large (> 100 Mbp)?" help="Use optimal parameters for evaluation of large genomes. Affects speed and accuracy. In particular, imposes --eukaryote --min-contig 3000 --min-alignment 500 --extensive-mis-size 7000 (can be overridden manually with the corresponding options). In addition, this mode tries to identify misassemblies caused by transposable elements and exclude them from the number of misassemblies."/>
5367786dc871 Uploaded
greg
parents:
diff changeset
335 <section name="genes" title="Genes">
5367786dc871 Uploaded
greg
parents:
diff changeset
336 <conditional name="gene_finding">
5367786dc871 Uploaded
greg
parents:
diff changeset
337 <param name="tool" type="select" label="Tool for gene prediction" help="">
5367786dc871 Uploaded
greg
parents:
diff changeset
338 <option value="none">Don't predict genes</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
339 <option value="--gene-finding">GeneMarkS if prokaryotes or GeneMark-ES if eukaryotes or fungi</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
340 <option value="--mgm">MetaGeneMark, specially for metagenomic assembly</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
341 <option value="--glimmer">Glimmer</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
342 </param>
5367786dc871 Uploaded
greg
parents:
diff changeset
343 <when value="none"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
344 <when value="--gene-finding">
5367786dc871 Uploaded
greg
parents:
diff changeset
345 <expand macro="gene_thresholds"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
346 </when>
5367786dc871 Uploaded
greg
parents:
diff changeset
347 <when value="--mgm"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
348 <when value="--glimmer">
5367786dc871 Uploaded
greg
parents:
diff changeset
349 <expand macro="gene_thresholds"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
350 </when>
5367786dc871 Uploaded
greg
parents:
diff changeset
351 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
352 <param argument="--rna-finding" type="boolean" truevalue="--rna-finding" falsevalue="" checked="false" label="Enables ribosomal RNA gene finding?" help="By default, we assume that the genome is prokaryotic, and Barrnap uses the bacterial database for rRNA prediction. If the genome is eukaryotic (fungal), use --eukaryote (--fungus) option to force Barrnap to work with the eukaryotic (fungal) database. "/>
5367786dc871 Uploaded
greg
parents:
diff changeset
353 <param argument="--conserved-genes-finding" type="boolean" truevalue="--conserved-genes-finding" falsevalue="" checked="false" label="Enables search for Universal Single-Copy Orthologs using BUSCO?" help="By default, we assume that the genome is prokaryotic, and BUSCO uses the bacterial database of orthologs. If the genome is eukaryotic (fungal), use --eukaryote (--fungus) option to force BUSCO to work with the eukaryotic (fungal) database. "/>
5367786dc871 Uploaded
greg
parents:
diff changeset
354 </section>
5367786dc871 Uploaded
greg
parents:
diff changeset
355 <section name="alignments" title="Alignments">
5367786dc871 Uploaded
greg
parents:
diff changeset
356 <param argument="--use-all-alignments" type="boolean" truevalue="--use-all-alignments" falsevalue="" checked="false" label="Use all alignments as in QUAST v.1.*. to compute genome fraction, # genomic features, # operons metrics?" help="By default, QUAST v.2.0 and higher filters out ambiguous and redundant alignments, keeping only one alignment per contig (or one set of non-overlapping or slightly overlapping alignments)"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
357 <param argument="--min-alignment" type="integer" value="65" label="Minimum length of alignment" help="Alignments shorter than this value will be filtered. Note that all alignments shorter than 65 bp will be filtered regardless of this threshold."/>
5367786dc871 Uploaded
greg
parents:
diff changeset
358 <param argument="--ambiguity-usage" type="select" label="How processing equally good alignments of a contig (probably repeats)?" help="">
5367786dc871 Uploaded
greg
parents:
diff changeset
359 <option value="none">Skip all such alignments</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
360 <option value="one" selected="true">Take only one (the very best one)</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
361 <option value="all">Use all alignments. It can cause a significant increase of # mismatches (repeats are almost always inexact due to accumulated SNPs, indels, etc.). It is useful for metagenomic assemblies where ambiguous alignments might represent homologous sequences of different strains</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
362 </param>
5367786dc871 Uploaded
greg
parents:
diff changeset
363 <param argument="--ambiguity-score" type="float" value="0.99" min="0.8" max="1.0" label="Score S for defining equally good alignments of a single contig" help="All alignments are sorted by decreasing LEN × IDY% value. All alignments with LEN × IDY% less than S × best(LEN × IDY%) are discarded. "/>
5367786dc871 Uploaded
greg
parents:
diff changeset
364 <param argument="--fragmented" type="boolean" truevalue="--fragmented" falsevalue="" checked="false" label="Fragmented reference genome" help="Reference genome is fragmented (e.g. a scaffold reference). QUAST will try to detect misassemblies caused by the fragmentation and mark them fake (will be excluded from misassemblies). Note: QUAST will not detect misassemblies caused by the linear representation of circular genome "/>
5367786dc871 Uploaded
greg
parents:
diff changeset
365 <param argument="--upper-bound-assembly" type="boolean" truevalue="--upper-bound-assembly" falsevalue="" label="Simulate upper bound assembly" help="Simulate upper bound assembly based on the reference genome and a given set reads (mate-pairs or long reads, such as Pacbio SMRT/Oxford Nanopore, are REQUIRED). This assembly is added to the comparison and could be useful for estimating the upper bounds of completeness and contiguity that theoretically can be reached by assembly software from this particular set of reads. The concept is based on the fact that the reference genome cannot be completely reconstructed from raw reads due to long genomic repeats and low covered regions." />
5367786dc871 Uploaded
greg
parents:
diff changeset
366 <param argument="--upper-bound-min-con" type="integer" value="" optional="true" label="Minimal number of 'connecting reads' needed for joining upper bound contigs into a scaffold" help="This is important for a realistic estimation of genome assembly fragmentation due to long repeats. The default values is 2 for mate-pairs and 1 for long reads (PacBio or Nanopore libraries)"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
367 <param argument="--local-mis-size" type="integer" value="200" optional="true" label="Minimal local misassembly size" help="Lower threshold for the local misassembly size. Shorter inconsistencies are considered as (long) indels. The default value is 200 bp. Note that the threshold should be equal to or lower than minimal extensive misassembly size, which is 1000 bp by default"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
368 </section>
5367786dc871 Uploaded
greg
parents:
diff changeset
369 <section name="advanced" title="Advanced options">
5367786dc871 Uploaded
greg
parents:
diff changeset
370 <param argument="--contig-thresholds" type="text" value="0,1000" label="Comma-separated list of contig length thresholds (in bp)" help="Used in # contigs ≥ x and total length (≥ x) metrics"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
371 <param argument="--strict-NA" type="boolean" truevalue="--strict-NA" falsevalue="" checked="false" label="Break contigs at every misassembly event (including local ones) to compute NAx and NGAx statistics?" help="By default, QUAST breaks contigs only at extensive misassemblies (not local ones)."/>
5367786dc871 Uploaded
greg
parents:
diff changeset
372 <param argument="--extensive-mis-size" type="integer" value="1000" min="85" label="Lower threshold for the relocation size (gap or overlap size between left and right flanking sequence)" help="Shorter relocations are considered as local misassemblies. It does not affect other types of extensive misassemblies (inversions and translocations). The default value is 1000 bp. Note that the threshold should be greater than maximum indel length which is 85 bp."/>
5367786dc871 Uploaded
greg
parents:
diff changeset
373 <param argument="--scaffold-gap-max-size" type="integer" value="1000" label="Max allowed scaffold gap length difference for detecting corresponding type of misassemblies" help="Longer inconsistencies are considered as relocations and thus, counted as extensive misassemblies. The default value is 10000 bp. Note that the threshold make sense only if it is greater than extensive misassembly size"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
374 <param argument="--unaligned-part-size" type="integer" value="500" label="Lower threshold for detecting partially unaligned contigs" help=""/>
5367786dc871 Uploaded
greg
parents:
diff changeset
375 <param argument="--skip-unaligned-mis-contigs" type="boolean" truevalue="" falsevalue="--skip-unaligned-mis-contigs" checked="true" label="Distinguish contigs with more than 50% unaligned bases as a separate group of contigs?" help="By default, QUAST breaks contigs only at extensive misassemblies (not local ones)."/>
5367786dc871 Uploaded
greg
parents:
diff changeset
376 <param argument="--fragmented-max-indent" type="integer" min="0" value="" optional="true" label="Fragment max indent" help="Mark translocation as fake if both alignments are located no further than N bases from the ends of the reference fragments. The value should be less than extensive misassembly size.Default value is 50. Note: requires --fragmented option" />
5367786dc871 Uploaded
greg
parents:
diff changeset
377 <param argument="--report-all-metrics" type="boolean" truevalue="--report-all-metrics" falsevalue="" checked="false" label="Report all metrics" help="Keep all quality metrics in the main report. Usually, all not-relevant metrics are not included in the report, e.g., reference-based metrics in the no-reference mode. Also, if metric values are undefined for all input assemblies, the metric is removed from the report" />
5367786dc871 Uploaded
greg
parents:
diff changeset
378 <param argument="--x-for-Nx" type="integer" min="0" max="100" value="90" label="Report Nx, Lx, etc metrics for specific value of 'x'" help="Value of 'x' for Nx, Lx, NGx, NGAx, etc metrics reported in addition to N50, L50, NG50, NGA50, etc" />
5367786dc871 Uploaded
greg
parents:
diff changeset
379 </section>
5367786dc871 Uploaded
greg
parents:
diff changeset
380 <param name="output_files" type="select" display="checkboxes" optional="true" multiple="true" label="Output files">
5367786dc871 Uploaded
greg
parents:
diff changeset
381 <option value="html" selected="true">HTML reports</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
382 <option value="pdf">PDF reports</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
383 <option value="tabular">Tabular reports</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
384 <option value="log">Log file</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
385 <option value="summary">Key metric summary (metagenome mode)</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
386 <option value="krona">Krona charts (metagenome mode without reference genomes)</option>
5367786dc871 Uploaded
greg
parents:
diff changeset
387 </param>
5367786dc871 Uploaded
greg
parents:
diff changeset
388 </inputs>
5367786dc871 Uploaded
greg
parents:
diff changeset
389 <outputs>
5367786dc871 Uploaded
greg
parents:
diff changeset
390 <data name="report_tabular" format="tabular" label="${tool.name} on ${on_string}: tabular report" from_work_dir="outputdir/report.tsv">
5367786dc871 Uploaded
greg
parents:
diff changeset
391 <filter>assembly['type'] == 'genome' and 'tabular' in output_files</filter>
5367786dc871 Uploaded
greg
parents:
diff changeset
392 </data>
5367786dc871 Uploaded
greg
parents:
diff changeset
393 <data name="report_tabular_meta" format="tabular" label="${tool.name} on ${on_string}: tabular report for combined reference genome" from_work_dir="outputdir/combined_reference/report.tsv">
5367786dc871 Uploaded
greg
parents:
diff changeset
394 <filter>assembly['type'] == 'metagenome' and 'tabular' in output_files</filter>
5367786dc871 Uploaded
greg
parents:
diff changeset
395 </data>
5367786dc871 Uploaded
greg
parents:
diff changeset
396 <data name="report_html" format="html" label="${tool.name} on ${on_string}: HTML report" from_work_dir="outputdir/report.html">
5367786dc871 Uploaded
greg
parents:
diff changeset
397 <filter>assembly['type'] == 'genome' and 'html' in output_files</filter>
5367786dc871 Uploaded
greg
parents:
diff changeset
398 </data>
5367786dc871 Uploaded
greg
parents:
diff changeset
399 <data name="report_html_meta" format="html" label="${tool.name} on ${on_string}: HTML report for combined reference genome" from_work_dir="outputdir/combined_reference/report.html">
5367786dc871 Uploaded
greg
parents:
diff changeset
400 <filter>assembly['type'] == 'metagenome' and 'html' in output_files</filter>
5367786dc871 Uploaded
greg
parents:
diff changeset
401 </data>
5367786dc871 Uploaded
greg
parents:
diff changeset
402 <data name="report_pdf" format="pdf" label="${tool.name} on ${on_string}: PDF report" from_work_dir="outputdir/report.pdf">
5367786dc871 Uploaded
greg
parents:
diff changeset
403 <filter>assembly['type'] == 'genome' and 'pdf' in output_files</filter>
5367786dc871 Uploaded
greg
parents:
diff changeset
404 </data>
5367786dc871 Uploaded
greg
parents:
diff changeset
405 <data name="log" format="txt" label="${tool.name} on ${on_string}: Log" from_work_dir="outputdir/quast.log">
5367786dc871 Uploaded
greg
parents:
diff changeset
406 <filter>assembly['type'] == 'genome' and 'log' in output_files</filter>
5367786dc871 Uploaded
greg
parents:
diff changeset
407 </data>
5367786dc871 Uploaded
greg
parents:
diff changeset
408 <data name="log_meta" format="txt" label="${tool.name} on ${on_string}: Log" from_work_dir="outputdir/metaquast.log">
5367786dc871 Uploaded
greg
parents:
diff changeset
409 <filter>assembly['type'] == 'metagenome' and 'log' in output_files</filter>
5367786dc871 Uploaded
greg
parents:
diff changeset
410 </data>
5367786dc871 Uploaded
greg
parents:
diff changeset
411 <data name="mis_ass" format="tabular" label="${tool.name} on ${on_string}: Misassemblies report" from_work_dir="outputdir/contigs_reports/misassemblies_report.txt">
5367786dc871 Uploaded
greg
parents:
diff changeset
412 <filter>assembly['type'] == 'genome' and assembly['ref']['use_ref'] == 'true'</filter>
5367786dc871 Uploaded
greg
parents:
diff changeset
413 <filter>'tabular' in output_files</filter>
5367786dc871 Uploaded
greg
parents:
diff changeset
414 </data>
5367786dc871 Uploaded
greg
parents:
diff changeset
415 <data name="unalign" format="tabular" label="${tool.name} on ${on_string}: Unaligned contigs report" from_work_dir="outputdir/contigs_reports/unaligned_report.tsv">
5367786dc871 Uploaded
greg
parents:
diff changeset
416 <filter>assembly['type'] == 'genome' and assembly['ref']['use_ref'] == 'true'</filter>
5367786dc871 Uploaded
greg
parents:
diff changeset
417 <filter>'tabular' in output_files</filter>
5367786dc871 Uploaded
greg
parents:
diff changeset
418 </data>
5367786dc871 Uploaded
greg
parents:
diff changeset
419 <data name="kmers" format="tabular" label="${tool.name} on ${on_string}: K-mer-based metrics report" from_work_dir="outputdir/k_mer_stats/kmers_report.txt">
5367786dc871 Uploaded
greg
parents:
diff changeset
420 <filter>assembly['type'] == 'genome' and assembly['ref']['use_ref'] == 'true' and assembly['ref']['k_mer']['k_mer_stats'] != ''</filter>
5367786dc871 Uploaded
greg
parents:
diff changeset
421 <filter>'tabular' in output_files</filter>
5367786dc871 Uploaded
greg
parents:
diff changeset
422 </data>
5367786dc871 Uploaded
greg
parents:
diff changeset
423 <data name="circos_output" format="png" from_work_dir="outputdir/circos/circos.png" label="${tool.name} on ${on_string}: Circos plot">
5367786dc871 Uploaded
greg
parents:
diff changeset
424 <filter>assembly['type'] == 'genome' and assembly['ref']['use_ref'] == 'true' and assembly['ref']['circos']</filter>
5367786dc871 Uploaded
greg
parents:
diff changeset
425 </data>
5367786dc871 Uploaded
greg
parents:
diff changeset
426 <collection name="metrics_tabular" type="list" label="${tool.name} on ${on_string}: Tabular reports for key metrics" >
5367786dc871 Uploaded
greg
parents:
diff changeset
427 <discover_datasets pattern="(?P&lt;designation&gt;.+).tsv" directory="outputdir/summary/TSV/" format="tabular"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
428 <filter>assembly['type'] == 'metagenome' and 'summary' in output_files</filter>
5367786dc871 Uploaded
greg
parents:
diff changeset
429 </collection>
5367786dc871 Uploaded
greg
parents:
diff changeset
430 <collection name="metrics_pdf" type="list" label="${tool.name} on ${on_string}: PDF reports for key metrics" >
5367786dc871 Uploaded
greg
parents:
diff changeset
431 <discover_datasets pattern="(?P&lt;designation&gt;.+).pdf" directory="outputdir/summary/PDF/" format="pdf"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
432 <filter>assembly['type'] == 'metagenome' and 'summary' in output_files</filter>
5367786dc871 Uploaded
greg
parents:
diff changeset
433 </collection>
5367786dc871 Uploaded
greg
parents:
diff changeset
434 <data name="krona" format="html" label="${tool.name} on ${on_string}: Krona chart" from_work_dir="outputdir/krona_charts/*.html">
5367786dc871 Uploaded
greg
parents:
diff changeset
435 <filter>assembly['type'] == 'metagenome' and assembly['ref']['origin'] == 'none' and 'krona' in output_files</filter>
5367786dc871 Uploaded
greg
parents:
diff changeset
436 </data>
5367786dc871 Uploaded
greg
parents:
diff changeset
437 </outputs>
5367786dc871 Uploaded
greg
parents:
diff changeset
438 <tests>
5367786dc871 Uploaded
greg
parents:
diff changeset
439 <!-- Test 01: reference, genes annotations and operon coordinates -->
5367786dc871 Uploaded
greg
parents:
diff changeset
440 <test expect_num_outputs="2">
5367786dc871 Uploaded
greg
parents:
diff changeset
441 <conditional name="in">
5367786dc871 Uploaded
greg
parents:
diff changeset
442 <param name="custom" value="true"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
443 <repeat name="inputs">
5367786dc871 Uploaded
greg
parents:
diff changeset
444 <param name="input" value="contigs1.fna"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
445 <param name="labels" value="contig1"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
446 </repeat>
5367786dc871 Uploaded
greg
parents:
diff changeset
447 <repeat name="inputs">
5367786dc871 Uploaded
greg
parents:
diff changeset
448 <param name="input" value="contigs2.fna"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
449 <param name="labels" value="contig2"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
450 </repeat>
5367786dc871 Uploaded
greg
parents:
diff changeset
451 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
452 <conditional name="assembly">
5367786dc871 Uploaded
greg
parents:
diff changeset
453 <param name="type" value="genome"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
454 <conditional name="ref">
5367786dc871 Uploaded
greg
parents:
diff changeset
455 <param name="use_ref" value="true"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
456 <conditional name="reference_source">
5367786dc871 Uploaded
greg
parents:
diff changeset
457 <param name="reference_source_selector" value="history"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
458 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
459 <param name="r" value="reference.fna"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
460 <param name="features" value="genes.gff"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
461 <param name="operons" value="operons.bed"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
462 <conditional name="k_mer">
5367786dc871 Uploaded
greg
parents:
diff changeset
463 <param name="k_mer_stats" value="--k-mer-stats"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
464 <param name="k_mer_size" value="101" />
5367786dc871 Uploaded
greg
parents:
diff changeset
465 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
466 <param name="circos" value="true"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
467 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
468 <param name="orga_type" value=""/>
5367786dc871 Uploaded
greg
parents:
diff changeset
469 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
470 <param name="min_contig" value="500"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
471 <param name="split_scaffolds" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
472 <section name="genes">
5367786dc871 Uploaded
greg
parents:
diff changeset
473 <conditional name="gene_finding">
5367786dc871 Uploaded
greg
parents:
diff changeset
474 <param name="tool" value="--gene_finding"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
475 <param name="gene_thresholds" value="0,300,1500,3000"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
476 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
477 <param name="rna_finding" value="true"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
478 <param name="conserved_genes_finding" value="true"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
479 <param name="min_identity" value="95.0"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
480 </section>
5367786dc871 Uploaded
greg
parents:
diff changeset
481 <section name="alignments">
5367786dc871 Uploaded
greg
parents:
diff changeset
482 <param name="use_all_alignments" value="true"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
483 <param name="min_alignment" value="65"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
484 <param name="ambiguity_usage" value="one"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
485 <param name="ambiguity_score" value="0.99"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
486 </section>
5367786dc871 Uploaded
greg
parents:
diff changeset
487 <section name="advanced">
5367786dc871 Uploaded
greg
parents:
diff changeset
488 <param name="contig_thresholds" value="0,1000"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
489 <param name="strict_NA" value="true"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
490 <param name="extensive_mis_size" value="1000"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
491 <param name="scaffold_gap_max_size" value="1000"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
492 <param name="unaligned_part_size" value="500"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
493 <param name="skip_unaligned_mis_contigs" value="true"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
494 <param name="fragmented_max_indent" value="50"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
495 </section>
5367786dc871 Uploaded
greg
parents:
diff changeset
496 <param name="output_files" value="html"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
497 <output name="report_html" file="test1_report.html" ftype="html" compare="sim_size"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
498 <output name="circos_output" file="test1_circos.png" ftype="png" compare="sim_size"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
499 </test>
5367786dc871 Uploaded
greg
parents:
diff changeset
500 <!-- Test 02: all outputs -->
5367786dc871 Uploaded
greg
parents:
diff changeset
501 <test expect_num_outputs="8">
5367786dc871 Uploaded
greg
parents:
diff changeset
502 <conditional name="in">
5367786dc871 Uploaded
greg
parents:
diff changeset
503 <param name="custom" value="true"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
504 <repeat name="inputs">
5367786dc871 Uploaded
greg
parents:
diff changeset
505 <param name="input" value="contigs1.fna"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
506 <param name="labels" value="contig1"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
507 </repeat>
5367786dc871 Uploaded
greg
parents:
diff changeset
508 <repeat name="inputs">
5367786dc871 Uploaded
greg
parents:
diff changeset
509 <param name="input" value="contigs2.fna"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
510 <param name="labels" value="contig2"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
511 </repeat>
5367786dc871 Uploaded
greg
parents:
diff changeset
512 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
513 <conditional name="assembly">
5367786dc871 Uploaded
greg
parents:
diff changeset
514 <param name="type" value="genome"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
515 <conditional name="ref">
5367786dc871 Uploaded
greg
parents:
diff changeset
516 <param name="use_ref" value="true"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
517 <conditional name="reference_source">
5367786dc871 Uploaded
greg
parents:
diff changeset
518 <param name="reference_source_selector" value="cached"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
519 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
520 <param name="r" value="reference"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
521 <param name="features" value="genes.gff"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
522 <param name="operons" value="operons.bed"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
523 <conditional name="k_mer">
5367786dc871 Uploaded
greg
parents:
diff changeset
524 <param name="k_mer_stats" value="--k-mer-stats"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
525 <param name="k_mer_size" value="101" />
5367786dc871 Uploaded
greg
parents:
diff changeset
526 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
527 <param name="circos" value="true"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
528 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
529 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
530 <param name="output_files" value="html,pdf,tabular,log"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
531 <output name="report_html" file="test2_report.html" ftype="html" compare="sim_size"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
532 <output name="report_pdf" file="test2_report.pdf" ftype="pdf" compare="sim_size"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
533 <output name="report_tabular" file="test2_report.tab" ftype="tabular"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
534 <output name="log" file="test2.log" ftype="txt" compare="sim_size"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
535 <output name="mis_ass" file="test2_missasemblies.tab" ftype="tabular"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
536 <output name="unalign" file="test2_unaligned.tab" ftype="tabular"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
537 <output name="kmers" file="test2_kmers.tab" ftype="tabular"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
538 <output name="circos_output" file="test2_circos.png" ftype="png" compare="sim_size"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
539 </test>
5367786dc871 Uploaded
greg
parents:
diff changeset
540 <!-- Test 03: without reference -->
5367786dc871 Uploaded
greg
parents:
diff changeset
541 <test expect_num_outputs="3">
5367786dc871 Uploaded
greg
parents:
diff changeset
542 <conditional name="in">
5367786dc871 Uploaded
greg
parents:
diff changeset
543 <param name="custom" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
544 <param name="inputs" value="contigs1.fna,contigs2.fna"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
545 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
546 <conditional name="assembly">
5367786dc871 Uploaded
greg
parents:
diff changeset
547 <param name="type" value="genome"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
548 <conditional name="ref">
5367786dc871 Uploaded
greg
parents:
diff changeset
549 <param name="use_ref" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
550 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
551 <param name="orga_type" value="--eukaryote"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
552 <param name="min_identity" value="95.0"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
553 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
554 <param name="min_contig" value="500"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
555 <param name="split_scaffolds" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
556 <param name="large" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
557 <section name="genes">
5367786dc871 Uploaded
greg
parents:
diff changeset
558 <conditional name="gene_finding">
5367786dc871 Uploaded
greg
parents:
diff changeset
559 <param name="tool" value="none"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
560 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
561 <param name="rna_finding" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
562 <param name="conserved_genes_finding" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
563 </section>
5367786dc871 Uploaded
greg
parents:
diff changeset
564 <section name="alignments">
5367786dc871 Uploaded
greg
parents:
diff changeset
565 <param name="use_all_alignments" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
566 <param name="min_alignment" value="65"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
567 <param name="ambiguity_usage" value="one"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
568 <param name="ambiguity_score" value="0.99"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
569 <param name="fragmented" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
570 </section>
5367786dc871 Uploaded
greg
parents:
diff changeset
571 <section name="advanced">
5367786dc871 Uploaded
greg
parents:
diff changeset
572 <param name="contig_thresholds" value="0,1000, 500"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
573 <param name="strict_NA" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
574 <param name="extensive_mis_size" value="1000"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
575 <param name="scaffold_gap_max_size" value="1000"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
576 <param name="unaligned_part_size" value="500"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
577 <param name="skip_unaligned_mis_contigs" value="-"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
578 </section>
5367786dc871 Uploaded
greg
parents:
diff changeset
579 <param name="output_files" value="html,pdf,log" />
5367786dc871 Uploaded
greg
parents:
diff changeset
580 <output name="log" file="test3.log" ftype="txt" compare="sim_size"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
581 <output name="report_html" file="test3_report.html" compare="sim_size"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
582 <output name="report_pdf" file="test3_report.pdf" compare="sim_size"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
583 </test>
5367786dc871 Uploaded
greg
parents:
diff changeset
584 <!-- Test 04: metagenomics -->
5367786dc871 Uploaded
greg
parents:
diff changeset
585 <test expect_num_outputs="3">
5367786dc871 Uploaded
greg
parents:
diff changeset
586 <conditional name="in">
5367786dc871 Uploaded
greg
parents:
diff changeset
587 <param name="custom" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
588 <param name="inputs" value="contigs3.fasta"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
589 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
590 <conditional name="assembly">
5367786dc871 Uploaded
greg
parents:
diff changeset
591 <param name="type" value="metagenome"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
592 <conditional name="ref">
5367786dc871 Uploaded
greg
parents:
diff changeset
593 <param name="origin" value="none"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
594 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
595 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
596 <param name="min_contig" value="500"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
597 <param name="split_scaffolds" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
598 <param name="large" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
599 <section name="genes">
5367786dc871 Uploaded
greg
parents:
diff changeset
600 <conditional name="gene_finding">
5367786dc871 Uploaded
greg
parents:
diff changeset
601 <param name="tool" value="--mgm"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
602 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
603 <param name="rna_finding" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
604 <param name="conserved_genes_finding" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
605 </section>
5367786dc871 Uploaded
greg
parents:
diff changeset
606 <section name="alignments">
5367786dc871 Uploaded
greg
parents:
diff changeset
607 <param name="use_all_alignments" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
608 <param name="min_alignment" value="65"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
609 <param name="min_identity" value="95.0"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
610 <param name="ambiguity_usage" value="one"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
611 <param name="ambiguity_score" value="0.99"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
612 <param name="fragmented" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
613 </section>
5367786dc871 Uploaded
greg
parents:
diff changeset
614 <section name="advanced">
5367786dc871 Uploaded
greg
parents:
diff changeset
615 <param name="contig_thresholds" value="0,1000, 500"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
616 <param name="strict_NA" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
617 <param name="extensive_mis_size" value="1000"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
618 <param name="scaffold_gap_max_size" value="1000"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
619 <param name="unaligned_part_size" value="500"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
620 <param name="skip_unaligned_mis_contigs" value="-"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
621 </section>
5367786dc871 Uploaded
greg
parents:
diff changeset
622 <param name="output_files" value="log,html,tabular"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
623 <output name="log_meta" ftype="txt">
5367786dc871 Uploaded
greg
parents:
diff changeset
624 <assert_contents>
5367786dc871 Uploaded
greg
parents:
diff changeset
625 <has_text text="Reference genomes are not found" />
5367786dc871 Uploaded
greg
parents:
diff changeset
626 </assert_contents>
5367786dc871 Uploaded
greg
parents:
diff changeset
627 </output>
5367786dc871 Uploaded
greg
parents:
diff changeset
628 <output name="report_tabular_meta" ftype="tabular">
5367786dc871 Uploaded
greg
parents:
diff changeset
629 <assert_contents>
5367786dc871 Uploaded
greg
parents:
diff changeset
630 <has_text text="# contigs (>= 0 bp)"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
631 <has_text text="contigs3_fasta"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
632 <has_text text="# N's per 100 kbp"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
633 <has_n_lines n="17"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
634 </assert_contents>
5367786dc871 Uploaded
greg
parents:
diff changeset
635 </output>
5367786dc871 Uploaded
greg
parents:
diff changeset
636 <output name="report_html_meta" ftype="html">
5367786dc871 Uploaded
greg
parents:
diff changeset
637 <assert_contents>
5367786dc871 Uploaded
greg
parents:
diff changeset
638 <has_text text="Quality Assessment Tool for Genome Assemblies" />
5367786dc871 Uploaded
greg
parents:
diff changeset
639 <has_text text="contigs3_fasta" />
5367786dc871 Uploaded
greg
parents:
diff changeset
640 <has_text text="Statistics without reference" />
5367786dc871 Uploaded
greg
parents:
diff changeset
641 </assert_contents>
5367786dc871 Uploaded
greg
parents:
diff changeset
642 </output>
5367786dc871 Uploaded
greg
parents:
diff changeset
643 </test>
5367786dc871 Uploaded
greg
parents:
diff changeset
644 <!-- Test 05: FASTQ read files -->
5367786dc871 Uploaded
greg
parents:
diff changeset
645 <test expect_num_outputs="3">
5367786dc871 Uploaded
greg
parents:
diff changeset
646 <conditional name="in">
5367786dc871 Uploaded
greg
parents:
diff changeset
647 <param name="custom" value="true"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
648 <repeat name="inputs">
5367786dc871 Uploaded
greg
parents:
diff changeset
649 <param name="input" value="contigs1.fna"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
650 <param name="labels" value="contig1"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
651 </repeat>
5367786dc871 Uploaded
greg
parents:
diff changeset
652 <repeat name="inputs">
5367786dc871 Uploaded
greg
parents:
diff changeset
653 <param name="input" value="contigs2.fna"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
654 <param name="labels" value="contig2"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
655 </repeat>
5367786dc871 Uploaded
greg
parents:
diff changeset
656 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
657 <conditional name="reads">
5367786dc871 Uploaded
greg
parents:
diff changeset
658 <param name="reads_option" value="pacbio"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
659 <param name="input_1" value="pacbio_01.fastq,pacbio_02.fastq,pacbio_03.fastq,pacbio_04.fastq"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
660 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
661 <conditional name="assembly">
5367786dc871 Uploaded
greg
parents:
diff changeset
662 <param name="type" value="genome"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
663 <conditional name="ref">
5367786dc871 Uploaded
greg
parents:
diff changeset
664 <param name="use_ref" value="true"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
665 <conditional name="reference_source">
5367786dc871 Uploaded
greg
parents:
diff changeset
666 <param name="reference_source_selector" value="history"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
667 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
668 <param name="r" value="reference.fna"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
669 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
670 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
671 <section name="alignments">
5367786dc871 Uploaded
greg
parents:
diff changeset
672 <param name="upper_bound_assembly" value="true"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
673 <param name="upper_bound_min_con" value="1"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
674 </section>
5367786dc871 Uploaded
greg
parents:
diff changeset
675 <param name="output_files" value="tabular"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
676 <output name="report_tabular" file="test5.tab" ftype="tabular"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
677 <output name="mis_ass" ftype="tabular">
5367786dc871 Uploaded
greg
parents:
diff changeset
678 <assert_contents>
5367786dc871 Uploaded
greg
parents:
diff changeset
679 <has_text text="All statistics are based on contigs of size >= 500 bp"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
680 <has_text text="# scaffold misassemblies"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
681 <has_text text="contig1"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
682 </assert_contents>
5367786dc871 Uploaded
greg
parents:
diff changeset
683 </output>
5367786dc871 Uploaded
greg
parents:
diff changeset
684 <output name="unalign" ftype="tabular">
5367786dc871 Uploaded
greg
parents:
diff changeset
685 <assert_contents>
5367786dc871 Uploaded
greg
parents:
diff changeset
686 <has_text text="Fully unaligned length"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
687 <has_text text="contig1"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
688 </assert_contents>
5367786dc871 Uploaded
greg
parents:
diff changeset
689 </output>
5367786dc871 Uploaded
greg
parents:
diff changeset
690 </test>
5367786dc871 Uploaded
greg
parents:
diff changeset
691 <!-- Test 06: FASTQ.gz read files -->
5367786dc871 Uploaded
greg
parents:
diff changeset
692 <test expect_num_outputs="1">
5367786dc871 Uploaded
greg
parents:
diff changeset
693 <conditional name="in">
5367786dc871 Uploaded
greg
parents:
diff changeset
694 <param name="custom" value="true"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
695 <repeat name="inputs">
5367786dc871 Uploaded
greg
parents:
diff changeset
696 <param name="input" value="contigs1.fna"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
697 <param name="labels" value="contig1"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
698 </repeat>
5367786dc871 Uploaded
greg
parents:
diff changeset
699 <repeat name="inputs">
5367786dc871 Uploaded
greg
parents:
diff changeset
700 <param name="input" value="contigs2.fna"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
701 <param name="labels" value="contig2"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
702 </repeat>
5367786dc871 Uploaded
greg
parents:
diff changeset
703 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
704 <conditional name="reads">
5367786dc871 Uploaded
greg
parents:
diff changeset
705 <param name="reads_option" value="single"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
706 <param name="input_1" value="pacbio_01.fastq.gz,pacbio_02.fastq.gz"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
707 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
708 <param name="output_files" value="tabular"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
709 <output name="report_tabular" file="test6.tab" ftype="tabular"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
710 </test>
5367786dc871 Uploaded
greg
parents:
diff changeset
711 <!-- Test 07: FASTA.gz read files -->
5367786dc871 Uploaded
greg
parents:
diff changeset
712 <test expect_num_outputs="1">
5367786dc871 Uploaded
greg
parents:
diff changeset
713 <conditional name="in">
5367786dc871 Uploaded
greg
parents:
diff changeset
714 <param name="custom" value="true"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
715 <repeat name="inputs">
5367786dc871 Uploaded
greg
parents:
diff changeset
716 <param name="input" value="contigs1.fna"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
717 <param name="labels" value="contig1"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
718 </repeat>
5367786dc871 Uploaded
greg
parents:
diff changeset
719 <repeat name="inputs">
5367786dc871 Uploaded
greg
parents:
diff changeset
720 <param name="input" value="contigs2.fna"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
721 <param name="labels" value="contig2"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
722 </repeat>
5367786dc871 Uploaded
greg
parents:
diff changeset
723 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
724 <conditional name="reads">
5367786dc871 Uploaded
greg
parents:
diff changeset
725 <param name="reads_option" value="single"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
726 <param name="input_1" value="pacbio_01.fasta.gz,pacbio_02.fasta.gz"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
727 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
728 <param name="output_files" value="tabular"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
729 <output name="report_tabular" file="test7.tab" ftype="tabular"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
730 </test>
5367786dc871 Uploaded
greg
parents:
diff changeset
731 <!-- Test 08: metagenomics all tab outputs-->
5367786dc871 Uploaded
greg
parents:
diff changeset
732 <test expect_num_outputs="3">
5367786dc871 Uploaded
greg
parents:
diff changeset
733 <conditional name="in">
5367786dc871 Uploaded
greg
parents:
diff changeset
734 <repeat name="inputs">
5367786dc871 Uploaded
greg
parents:
diff changeset
735 <param name="input" value="meta_contigs_1.fasta"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
736 <param name="labels" value="meta_contigs_1"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
737 </repeat>
5367786dc871 Uploaded
greg
parents:
diff changeset
738 <repeat name="inputs">
5367786dc871 Uploaded
greg
parents:
diff changeset
739 <param name="input" value="meta_contigs_2.fasta"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
740 <param name="labels" value="meta_contigs_2"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
741 </repeat>
5367786dc871 Uploaded
greg
parents:
diff changeset
742 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
743 <conditional name="assembly">
5367786dc871 Uploaded
greg
parents:
diff changeset
744 <param name="type" value="metagenome"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
745 <conditional name="ref">
5367786dc871 Uploaded
greg
parents:
diff changeset
746 <param name="origin" value="history"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
747 <param name="r" value="meta_ref_1.fasta,meta_ref_2.fasta,meta_ref_3.fasta"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
748 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
749 <param name="min_identity" value="95.0"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
750 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
751 <param name="min_contig" value="500"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
752 <param name="split_scaffolds" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
753 <param name="large" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
754 <section name="genes">
5367786dc871 Uploaded
greg
parents:
diff changeset
755 <conditional name="gene_finding">
5367786dc871 Uploaded
greg
parents:
diff changeset
756 <param name="tool" value="none"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
757 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
758 <param name="rna_finding" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
759 <param name="conserved_genes_finding" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
760 </section>
5367786dc871 Uploaded
greg
parents:
diff changeset
761 <section name="alignments">
5367786dc871 Uploaded
greg
parents:
diff changeset
762 <param name="use_all_alignments" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
763 <param name="min_alignment" value="65"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
764 <param name="ambiguity_usage" value="one"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
765 <param name="ambiguity_score" value="0.99"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
766 <param name="fragmented" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
767 </section>
5367786dc871 Uploaded
greg
parents:
diff changeset
768 <section name="advanced">
5367786dc871 Uploaded
greg
parents:
diff changeset
769 <param name="contig_thresholds" value="0,1000"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
770 <param name="strict_NA" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
771 <param name="extensive_mis_size" value="1000"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
772 <param name="scaffold_gap_max_size" value="1000"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
773 <param name="unaligned_part_size" value="500"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
774 <param name="skip_unaligned_mis_contigs" value="-"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
775 </section>
5367786dc871 Uploaded
greg
parents:
diff changeset
776 <param name="output_files" value="tabular,summary"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
777 <output name="report_tabular_meta" ftype="tabular">
5367786dc871 Uploaded
greg
parents:
diff changeset
778 <assert_contents>
5367786dc871 Uploaded
greg
parents:
diff changeset
779 <has_text text="# contigs (>= 0 bp)"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
780 <has_text text="meta_ref_3_fasta"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
781 <has_text text="# N's per 100 kbp"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
782 <has_n_lines n="34"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
783 </assert_contents>
5367786dc871 Uploaded
greg
parents:
diff changeset
784 </output>
5367786dc871 Uploaded
greg
parents:
diff changeset
785 <output_collection name="metrics_tabular" type="list" count="15"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
786 <output_collection name="metrics_pdf" type="list" count="16"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
787 </test>
5367786dc871 Uploaded
greg
parents:
diff changeset
788 <!-- Test 09: metagenomics log, html and krona outputs-->
5367786dc871 Uploaded
greg
parents:
diff changeset
789 <test expect_num_outputs="2">
5367786dc871 Uploaded
greg
parents:
diff changeset
790 <conditional name="in">
5367786dc871 Uploaded
greg
parents:
diff changeset
791 <repeat name="inputs">
5367786dc871 Uploaded
greg
parents:
diff changeset
792 <param name="input" value="meta_contigs_1.fasta"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
793 <param name="labels" value="meta_contigs_1"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
794 </repeat>
5367786dc871 Uploaded
greg
parents:
diff changeset
795 <repeat name="inputs">
5367786dc871 Uploaded
greg
parents:
diff changeset
796 <param name="input" value="meta_contigs_2.fasta"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
797 <param name="labels" value="meta_contigs_2"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
798 </repeat>
5367786dc871 Uploaded
greg
parents:
diff changeset
799 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
800 <conditional name="assembly">
5367786dc871 Uploaded
greg
parents:
diff changeset
801 <param name="type" value="metagenome"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
802 <conditional name="ref">
5367786dc871 Uploaded
greg
parents:
diff changeset
803 <param name="origin" value="list"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
804 <param name="references_list" value="Lactobacillus_delbrueckii_bulgaricus,Lactobacillus_reuteri"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
805 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
806 <param name="min_identity" value="95.0"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
807 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
808 <param name="min_contig" value="500"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
809 <param name="split_scaffolds" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
810 <param name="large" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
811 <section name="genes">
5367786dc871 Uploaded
greg
parents:
diff changeset
812 <conditional name="gene_finding">
5367786dc871 Uploaded
greg
parents:
diff changeset
813 <param name="tool" value="none"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
814 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
815 <param name="rna_finding" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
816 <param name="conserved_genes_finding" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
817 </section>
5367786dc871 Uploaded
greg
parents:
diff changeset
818 <section name="alignments">
5367786dc871 Uploaded
greg
parents:
diff changeset
819 <param name="use_all_alignments" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
820 <param name="min_alignment" value="65"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
821 <param name="ambiguity_usage" value="all"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
822 <param name="ambiguity_score" value="0.99"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
823 <param name="fragmented" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
824 </section>
5367786dc871 Uploaded
greg
parents:
diff changeset
825 <section name="advanced">
5367786dc871 Uploaded
greg
parents:
diff changeset
826 <param name="contig_thresholds" value="0,1000"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
827 <param name="strict_NA" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
828 <param name="extensive_mis_size" value="1000"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
829 <param name="scaffold_gap_max_size" value="1000"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
830 <param name="unaligned_part_size" value="500"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
831 <param name="skip_unaligned_mis_contigs" value="-"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
832 </section>
5367786dc871 Uploaded
greg
parents:
diff changeset
833 <param name="output_files" value="html,log"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
834 <output name="report_html_meta" ftype="html">
5367786dc871 Uploaded
greg
parents:
diff changeset
835 <assert_contents>
5367786dc871 Uploaded
greg
parents:
diff changeset
836 <has_text text="meta_contigs_2_fasta" />
5367786dc871 Uploaded
greg
parents:
diff changeset
837 <has_text text="combined_reference" />
5367786dc871 Uploaded
greg
parents:
diff changeset
838 <has_text text="Lactobacillus" />
5367786dc871 Uploaded
greg
parents:
diff changeset
839 </assert_contents>
5367786dc871 Uploaded
greg
parents:
diff changeset
840 </output>
5367786dc871 Uploaded
greg
parents:
diff changeset
841 <output name="log_meta" ftype="txt">
5367786dc871 Uploaded
greg
parents:
diff changeset
842 <assert_contents>
5367786dc871 Uploaded
greg
parents:
diff changeset
843 <has_text text="List of references was provided, starting to download reference genomes from NCBI" />
5367786dc871 Uploaded
greg
parents:
diff changeset
844 <has_text text="Lactobacillus_delbrueckii_bulgaricus" />
5367786dc871 Uploaded
greg
parents:
diff changeset
845 </assert_contents>
5367786dc871 Uploaded
greg
parents:
diff changeset
846 </output>
5367786dc871 Uploaded
greg
parents:
diff changeset
847 </test>
5367786dc871 Uploaded
greg
parents:
diff changeset
848 <!-- Test 10: Test new options -->
5367786dc871 Uploaded
greg
parents:
diff changeset
849 <test expect_num_outputs="1">
5367786dc871 Uploaded
greg
parents:
diff changeset
850 <conditional name="in">
5367786dc871 Uploaded
greg
parents:
diff changeset
851 <param name="custom" value="true"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
852 <repeat name="inputs">
5367786dc871 Uploaded
greg
parents:
diff changeset
853 <param name="input" value="contigs1.fna"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
854 <param name="labels" value="contig1"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
855 </repeat>
5367786dc871 Uploaded
greg
parents:
diff changeset
856 <repeat name="inputs">
5367786dc871 Uploaded
greg
parents:
diff changeset
857 <param name="input" value="contigs2.fna"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
858 <param name="labels" value="contig2"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
859 </repeat>
5367786dc871 Uploaded
greg
parents:
diff changeset
860 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
861 <section name="alignments">
5367786dc871 Uploaded
greg
parents:
diff changeset
862 <param name="local_mis_size" value="210"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
863 </section>
5367786dc871 Uploaded
greg
parents:
diff changeset
864 <conditional name="assembly">
5367786dc871 Uploaded
greg
parents:
diff changeset
865 <param name="type" value="genome"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
866 <conditional name="ref">
5367786dc871 Uploaded
greg
parents:
diff changeset
867 <param name="use_ref" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
868 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
869 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
870 <section name="advanced">
5367786dc871 Uploaded
greg
parents:
diff changeset
871 <param name="report_all_metrics" value="true"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
872 <param name="x_for_Nx" value="80"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
873 </section>
5367786dc871 Uploaded
greg
parents:
diff changeset
874 <param name="output_files" value="tabular"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
875 <output name="report_tabular" file="test10_tabular_report.tab" ftype="tabular"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
876 </test>
5367786dc871 Uploaded
greg
parents:
diff changeset
877 <!-- Test 11: Test paired fastq.gz inputs -->
5367786dc871 Uploaded
greg
parents:
diff changeset
878 <test expect_num_outputs="1">
5367786dc871 Uploaded
greg
parents:
diff changeset
879 <conditional name="in">
5367786dc871 Uploaded
greg
parents:
diff changeset
880 <param name="custom" value="true"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
881 <repeat name="inputs">
5367786dc871 Uploaded
greg
parents:
diff changeset
882 <param name="input" value="contigs1.fna"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
883 <param name="labels" value="contig1"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
884 </repeat>
5367786dc871 Uploaded
greg
parents:
diff changeset
885 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
886 <conditional name="reads">
5367786dc871 Uploaded
greg
parents:
diff changeset
887 <param name="reads_option" value="paired"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
888 <param name="input_1" value="reads1.fastq.gz" ftype="fastqsanger.gz"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
889 <param name="input_2" value="reads2.fastq.gz" ftype="fastqsanger.gz"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
890 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
891 <conditional name="assembly">
5367786dc871 Uploaded
greg
parents:
diff changeset
892 <param name="type" value="genome"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
893 <conditional name="ref">
5367786dc871 Uploaded
greg
parents:
diff changeset
894 <param name="use_ref" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
895 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
896 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
897 <param name="output_files" value="tabular"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
898 <output name="report_tabular" ftype="tabular">
5367786dc871 Uploaded
greg
parents:
diff changeset
899 <assert_contents>
5367786dc871 Uploaded
greg
parents:
diff changeset
900 <has_text text="# contigs (>= 0 bp)"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
901 <has_text text="contig1"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
902 <has_text text="# N's per 100 kbp"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
903 <has_n_lines n="22"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
904 </assert_contents>
5367786dc871 Uploaded
greg
parents:
diff changeset
905 </output>
5367786dc871 Uploaded
greg
parents:
diff changeset
906 </test>
5367786dc871 Uploaded
greg
parents:
diff changeset
907 <!-- Test 12: Test paired-collection fastq.gz inputs -->
5367786dc871 Uploaded
greg
parents:
diff changeset
908 <test expect_num_outputs="1">
5367786dc871 Uploaded
greg
parents:
diff changeset
909 <conditional name="in">
5367786dc871 Uploaded
greg
parents:
diff changeset
910 <param name="custom" value="true"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
911 <repeat name="inputs">
5367786dc871 Uploaded
greg
parents:
diff changeset
912 <param name="input" value="contigs1.fna"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
913 <param name="labels" value="contig1"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
914 </repeat>
5367786dc871 Uploaded
greg
parents:
diff changeset
915 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
916 <conditional name="reads">
5367786dc871 Uploaded
greg
parents:
diff changeset
917 <param name="reads_option" value="paired_collection"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
918 <param name="input_1">
5367786dc871 Uploaded
greg
parents:
diff changeset
919 <collection type="paired">
5367786dc871 Uploaded
greg
parents:
diff changeset
920 <element name="forward" value="reads1.fastq.gz" ftype="fastqsanger.gz"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
921 <element name="reverse" value="reads2.fastq.gz" ftype="fastqsanger.gz"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
922 </collection>
5367786dc871 Uploaded
greg
parents:
diff changeset
923 </param>
5367786dc871 Uploaded
greg
parents:
diff changeset
924 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
925 <conditional name="assembly">
5367786dc871 Uploaded
greg
parents:
diff changeset
926 <param name="type" value="genome"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
927 <conditional name="ref">
5367786dc871 Uploaded
greg
parents:
diff changeset
928 <param name="use_ref" value="false"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
929 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
930 </conditional>
5367786dc871 Uploaded
greg
parents:
diff changeset
931 <param name="output_files" value="tabular"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
932 <output name="report_tabular" ftype="tabular">
5367786dc871 Uploaded
greg
parents:
diff changeset
933 <assert_contents>
5367786dc871 Uploaded
greg
parents:
diff changeset
934 <has_text text="# contigs (>= 0 bp)"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
935 <has_text text="contig1"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
936 <has_text text="# N's per 100 kbp"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
937 <has_n_lines n="15"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
938 </assert_contents>
5367786dc871 Uploaded
greg
parents:
diff changeset
939 </output>
5367786dc871 Uploaded
greg
parents:
diff changeset
940 </test>
5367786dc871 Uploaded
greg
parents:
diff changeset
941 </tests>
5367786dc871 Uploaded
greg
parents:
diff changeset
942 <help>
5367786dc871 Uploaded
greg
parents:
diff changeset
943 <![CDATA[
5367786dc871 Uploaded
greg
parents:
diff changeset
944 **What it does**
5367786dc871 Uploaded
greg
parents:
diff changeset
945
5367786dc871 Uploaded
greg
parents:
diff changeset
946 QUAST = QUality ASsessment Tool. The tool evaluates genome assemblies by computing various metrics.
5367786dc871 Uploaded
greg
parents:
diff changeset
947
5367786dc871 Uploaded
greg
parents:
diff changeset
948 If you have one or multiple genome assemblies, you can assess their quality with Quast. It works with or without reference genome. If you are new to Quast, start by reading its `manual page <http://quast.sourceforge.net/docs/manual.html>`_.
5367786dc871 Uploaded
greg
parents:
diff changeset
949
5367786dc871 Uploaded
greg
parents:
diff changeset
950 **Using Quast without reference**
5367786dc871 Uploaded
greg
parents:
diff changeset
951
5367786dc871 Uploaded
greg
parents:
diff changeset
952 Without reference Quast can calculate a number of assembly related-metrics but cannot provide any information about potential misassemblies, inversions, translocations, etc. Suppose you have three assemblies produced by Unicycler corresponding to three different antibiotic treatments *car*, *pit*, and *cef* (these stand for carbenicillin, piperacillin, and cefsulodin, respectively). Evaluating them without reference will produce the following Quast outputs:
5367786dc871 Uploaded
greg
parents:
diff changeset
953
5367786dc871 Uploaded
greg
parents:
diff changeset
954 * Quast report in HTML format
5367786dc871 Uploaded
greg
parents:
diff changeset
955 * `Contig viewer <http://quast.sourceforge.net/docs/manual.html#sec3.4>`_ (an HTML file)
5367786dc871 Uploaded
greg
parents:
diff changeset
956 * `Quast report <http://quast.sourceforge.net/docs/manual.html#sec3.1.1>`_ in Tab-delimited format
5367786dc871 Uploaded
greg
parents:
diff changeset
957 * Quast log (a file technical information about Quast tool execution)
5367786dc871 Uploaded
greg
parents:
diff changeset
958
5367786dc871 Uploaded
greg
parents:
diff changeset
959 The **tab delimited Quast report** will contain the following information::
5367786dc871 Uploaded
greg
parents:
diff changeset
960
5367786dc871 Uploaded
greg
parents:
diff changeset
961 Assembly pit_fna cef_fna car_fna
5367786dc871 Uploaded
greg
parents:
diff changeset
962 # contigs (>= 0 bp) 100 91 94
5367786dc871 Uploaded
greg
parents:
diff changeset
963 # contigs (>= 1000 bp) 62 58 61
5367786dc871 Uploaded
greg
parents:
diff changeset
964 Total length (>= 0 bp) 6480635 6481216 6480271
5367786dc871 Uploaded
greg
parents:
diff changeset
965 Total length (>= 1000 bp) 6466917 6468946 6467103
5367786dc871 Uploaded
greg
parents:
diff changeset
966 # contigs 71 66 70
5367786dc871 Uploaded
greg
parents:
diff changeset
967 Largest contig 848753 848766 662053
5367786dc871 Uploaded
greg
parents:
diff changeset
968 Total length 6473173 6474698 6473810
5367786dc871 Uploaded
greg
parents:
diff changeset
969 GC (%) 66.33 66.33 66.33
5367786dc871 Uploaded
greg
parents:
diff changeset
970 N50 270269 289027 254671
5367786dc871 Uploaded
greg
parents:
diff changeset
971 N75 136321 136321 146521
5367786dc871 Uploaded
greg
parents:
diff changeset
972 L50 7 7 8
5367786dc871 Uploaded
greg
parents:
diff changeset
973 L75 15 15 16
5367786dc871 Uploaded
greg
parents:
diff changeset
974 # N's per 100 kbp 0.00 0.00 0.00
5367786dc871 Uploaded
greg
parents:
diff changeset
975
5367786dc871 Uploaded
greg
parents:
diff changeset
976 where values are defined as specified in `Quast manual <http://quast.sourceforge.net/docs/manual.html#sec3.1.1>`_
5367786dc871 Uploaded
greg
parents:
diff changeset
977
5367786dc871 Uploaded
greg
parents:
diff changeset
978 **Quast report in HTML format** contains graphs in addition to the above metrics, while **Contig viewer** draws contigs ordered from longest to shortest. This ordering is suitable for comparing only largest contigs or number of contigs longer than a specific threshold. The viewer shows N50 and N75 with color and textual indication. If the reference genome is available or at least approximate genome length is known (see `--est-ref-size`), NG50 and NG75 are also shown. You can also tone down contigs shorter than a specified threshold using Icarus control panel:
5367786dc871 Uploaded
greg
parents:
diff changeset
979
5367786dc871 Uploaded
greg
parents:
diff changeset
980 .. image:: $PATH_TO_IMAGES/contig_view_noR.png
5367786dc871 Uploaded
greg
parents:
diff changeset
981 :width: 558
5367786dc871 Uploaded
greg
parents:
diff changeset
982 :height: 412
5367786dc871 Uploaded
greg
parents:
diff changeset
983
5367786dc871 Uploaded
greg
parents:
diff changeset
984 Also see `Plot description <http://quast.sourceforge.net/docs/manual.html#sec2>`_ section of the manual.
5367786dc871 Uploaded
greg
parents:
diff changeset
985
5367786dc871 Uploaded
greg
parents:
diff changeset
986 **Using Quast with reference**
5367786dc871 Uploaded
greg
parents:
diff changeset
987
5367786dc871 Uploaded
greg
parents:
diff changeset
988 Car, pit, and cef are in fact assemblies of *Pseudomonas aeruginosa* UCBPP-PA14, so we can use its genome as a reference (by supplying a Fasta file containing *P. aeruginosa* pa14 genome to **Reference genome** input box). The following outputs will be produced (note the alignment viewer):
5367786dc871 Uploaded
greg
parents:
diff changeset
989
5367786dc871 Uploaded
greg
parents:
diff changeset
990 * Quast report in HTML format
5367786dc871 Uploaded
greg
parents:
diff changeset
991 * `Contig viewer <http://quast.sourceforge.net/docs/manual.html#sec3.4>`_ (an HTML file)
5367786dc871 Uploaded
greg
parents:
diff changeset
992 * `Alignment viewer <http://quast.sourceforge.net/docs/manual.html#sec3.4>`_ (an HTML file)
5367786dc871 Uploaded
greg
parents:
diff changeset
993 * `Quast report <http://quast.sourceforge.net/docs/manual.html#sec3.1.1>`_ in Tab-delimited format
5367786dc871 Uploaded
greg
parents:
diff changeset
994 * Summary of `misassemblies <http://quast.sourceforge.net/docs/manual.html#sec3.1.2>`_
5367786dc871 Uploaded
greg
parents:
diff changeset
995 * Summary of `unaligned contigs <http://quast.sourceforge.net/docs/manual.html#sec3.1.3>`_
5367786dc871 Uploaded
greg
parents:
diff changeset
996 * Quast log (a file technical information about Quast tool execution)
5367786dc871 Uploaded
greg
parents:
diff changeset
997
5367786dc871 Uploaded
greg
parents:
diff changeset
998 With the reference Quast produces a much more comprehensive set of results::
5367786dc871 Uploaded
greg
parents:
diff changeset
999
5367786dc871 Uploaded
greg
parents:
diff changeset
1000 Assembly pit_fna cef_fna car_fna
5367786dc871 Uploaded
greg
parents:
diff changeset
1001 # contigs (>= 0 bp) 100 91 94
5367786dc871 Uploaded
greg
parents:
diff changeset
1002 # contigs (>= 1000 bp) 62 58 61
5367786dc871 Uploaded
greg
parents:
diff changeset
1003 Total length (>= 0 bp) 6480635 6481216 6480271
5367786dc871 Uploaded
greg
parents:
diff changeset
1004 Total length (>= 1000 bp) 6466917 6468946 6467103
5367786dc871 Uploaded
greg
parents:
diff changeset
1005 # contigs 71 66 70
5367786dc871 Uploaded
greg
parents:
diff changeset
1006 Largest contig 848753 848766 662053
5367786dc871 Uploaded
greg
parents:
diff changeset
1007 Total length 6473173 6474698 6473810
5367786dc871 Uploaded
greg
parents:
diff changeset
1008 Reference length 6537648 6537648 6537648
5367786dc871 Uploaded
greg
parents:
diff changeset
1009 GC (%) 66.33 66.33 66.33
5367786dc871 Uploaded
greg
parents:
diff changeset
1010 Reference GC (%) 66.29 66.29 66.29
5367786dc871 Uploaded
greg
parents:
diff changeset
1011 N50 270269 289027 254671
5367786dc871 Uploaded
greg
parents:
diff changeset
1012 NG50 270269 289027 254671
5367786dc871 Uploaded
greg
parents:
diff changeset
1013 N75 136321 136321 146521
5367786dc871 Uploaded
greg
parents:
diff changeset
1014 NG75 136321 136321 136321
5367786dc871 Uploaded
greg
parents:
diff changeset
1015 L50 7 7 8
5367786dc871 Uploaded
greg
parents:
diff changeset
1016 LG50 7 7 8
5367786dc871 Uploaded
greg
parents:
diff changeset
1017 L75 15 15 16
5367786dc871 Uploaded
greg
parents:
diff changeset
1018 LG75 15 15 17
5367786dc871 Uploaded
greg
parents:
diff changeset
1019 # misassemblies 0 0 0
5367786dc871 Uploaded
greg
parents:
diff changeset
1020 # misassembled contigs 0 0 0
5367786dc871 Uploaded
greg
parents:
diff changeset
1021 Misassembled contigs length 0 0 0
5367786dc871 Uploaded
greg
parents:
diff changeset
1022 # local misassemblies 1 1 2
5367786dc871 Uploaded
greg
parents:
diff changeset
1023 # unaligned mis. contigs 0 0 0
5367786dc871 Uploaded
greg
parents:
diff changeset
1024 # unaligned contigs 0 + 0 0 + 0 0 + 0
5367786dc871 Uploaded
greg
parents:
diff changeset
1025 part part part
5367786dc871 Uploaded
greg
parents:
diff changeset
1026 Unaligned length 0 0 0
5367786dc871 Uploaded
greg
parents:
diff changeset
1027 Genome fraction (%) 99.015 99.038 99.025
5367786dc871 Uploaded
greg
parents:
diff changeset
1028 Duplication ratio 1.000 1.000 1.000
5367786dc871 Uploaded
greg
parents:
diff changeset
1029 # N's per 100 kbp 0.00 0.00 0.00
5367786dc871 Uploaded
greg
parents:
diff changeset
1030 # mismatches per 100 kbp 3.82 3.63 3.49
5367786dc871 Uploaded
greg
parents:
diff changeset
1031 # indels per 100 kbp 1.19 1.13 1.13
5367786dc871 Uploaded
greg
parents:
diff changeset
1032 Largest alignment 848753 848766 662053
5367786dc871 Uploaded
greg
parents:
diff changeset
1033 Total aligned length 6473163 6474660 6473792
5367786dc871 Uploaded
greg
parents:
diff changeset
1034 NA50 270269 289027 254671
5367786dc871 Uploaded
greg
parents:
diff changeset
1035 NGA50 270269 289027 254671
5367786dc871 Uploaded
greg
parents:
diff changeset
1036 NA75 136321 136321 146521
5367786dc871 Uploaded
greg
parents:
diff changeset
1037 NGA75 136321 136321 136321
5367786dc871 Uploaded
greg
parents:
diff changeset
1038 LA50 7 7 8
5367786dc871 Uploaded
greg
parents:
diff changeset
1039 LGA50 7 7 8
5367786dc871 Uploaded
greg
parents:
diff changeset
1040 LA75 15 15 16
5367786dc871 Uploaded
greg
parents:
diff changeset
1041 LGA75 15 15 17
5367786dc871 Uploaded
greg
parents:
diff changeset
1042
5367786dc871 Uploaded
greg
parents:
diff changeset
1043 where, again, values are defined as specified in `Quast manual <http://quast.sourceforge.net/docs/manual.html#sec3.1.1>`_. You can see that this report includes a variety of data that can only be computer against a reference assembly.
5367786dc871 Uploaded
greg
parents:
diff changeset
1044
5367786dc871 Uploaded
greg
parents:
diff changeset
1045 Using reference also produces an **Alignment viewer**:
5367786dc871 Uploaded
greg
parents:
diff changeset
1046
5367786dc871 Uploaded
greg
parents:
diff changeset
1047 .. image:: $PATH_TO_IMAGES/Align_view.png
5367786dc871 Uploaded
greg
parents:
diff changeset
1048 :width: 515
5367786dc871 Uploaded
greg
parents:
diff changeset
1049 :height: 395
5367786dc871 Uploaded
greg
parents:
diff changeset
1050
5367786dc871 Uploaded
greg
parents:
diff changeset
1051 Alignment viewer highlights regions of interest as, in this case, missassemblies that can potentially point to genome rearrangements (see more `here <http://quast.sourceforge.net/docs/manual.html#sec3.4>`_).
5367786dc871 Uploaded
greg
parents:
diff changeset
1052
5367786dc871 Uploaded
greg
parents:
diff changeset
1053 ]]>
5367786dc871 Uploaded
greg
parents:
diff changeset
1054 </help>
5367786dc871 Uploaded
greg
parents:
diff changeset
1055 <expand macro="citations"/>
5367786dc871 Uploaded
greg
parents:
diff changeset
1056 </tool>