|
0
|
1 <tool id="breseq" name="Breseq Variant Report" version="0.31.1" hidden="false">
|
|
|
2 <description>Runs Breseq software on a set of fastq files</description>
|
|
|
3
|
|
|
4 <requirements>
|
|
|
5 <requirement type="package" version="0.31.1">breseq</requirement>
|
|
|
6 </requirements>
|
|
|
7
|
|
|
8 <command interpreter="python">
|
|
|
9 breseq_wrapper.py
|
|
|
10
|
|
|
11 $outfile
|
|
|
12 $outfile.files_path
|
|
|
13
|
|
|
14 --num-processors \${GALAXY_SLOTS:-4}
|
|
|
15
|
|
|
16 #if str($reference.source) == "history":
|
|
|
17 #for $i, $s in enumerate( $reference.ref_series )
|
|
|
18 -r $s.own_genome
|
|
|
19 #end for
|
|
|
20 #else:
|
|
|
21 -r $reference.fixed_genome.fields.path
|
|
|
22 #end if
|
|
|
23 #for $i, $s in enumerate( $read_series )
|
|
|
24 ${s.input}
|
|
|
25 #end for
|
|
|
26
|
|
|
27 #if str($polymorphism.selection) == "yes":
|
|
|
28 --polymorphism-prediction
|
|
|
29 --polymorphism-reject-indel-homopolymer-length $polymorphism.indel_homopolymer_length
|
|
|
30 --polymorphism-reject-surrounding-homopolymer-length $polymorphism.surrounding_homopolymer_length
|
|
|
31 --polymorphism-minimum-coverage-each-strand $polymorphism.strand_coverage
|
|
|
32 --polymorphism-bias-cutoff $polymorphism.bias_pvalue
|
|
|
33 #end if
|
|
|
34
|
|
|
35 #if str($junction_reference.selection) == "yes":
|
|
|
36 #for $i, $s in enumerate( $junction_reference.j_series )
|
|
|
37 --junction-only-reference $s.jc_genome
|
|
|
38 #end for
|
|
|
39 #end if
|
|
|
40
|
|
|
41 ${cnv_evidence}
|
|
|
42
|
|
|
43 -b $minqvalue
|
|
|
44
|
|
|
45 </command>
|
|
|
46
|
|
|
47 <stdio>
|
|
|
48 <exit_code range="1:" level="fatal" description="Fatal ERROR exit code greater than 1" />
|
|
|
49 </stdio>
|
|
|
50
|
|
|
51 <inputs>
|
|
|
52 <!-- reference genome -->
|
|
|
53 <conditional name="reference">
|
|
|
54 <param name="source" type="select" label="Will you select a reference genome from your history or use a built-in genome?" >
|
|
|
55 <option value="indexed">Use a built-in genome</option>
|
|
|
56 <option value="history">Use one from the history</option>
|
|
|
57 </param>
|
|
|
58 <when value="indexed">
|
|
|
59 <param name="fixed_genome" type="select" label="Select a reference genome" help="If your genome of interest is not listed, contact the Bioinformatics team">
|
|
|
60 <options from_data_table="genbank_files">
|
|
|
61 <filter type="sort_by" column="2"/>
|
|
|
62 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
|
|
|
63 </options>
|
|
|
64 </param>
|
|
|
65 </when>
|
|
|
66 <when value="history">
|
|
|
67 <!-- <param name="own_genome" type="data" label="Select the reference genome (fasta or genbank)" /> -->
|
|
|
68 <repeat name="ref_series" title="Reference Genome" min="1">
|
|
|
69 <param name="own_genome" type="data" label="Select the reference genome (fasta or genbank)" />
|
|
|
70 </repeat>
|
|
|
71 </when>
|
|
|
72 </conditional>
|
|
|
73
|
|
|
74
|
|
|
75 <!-- input Fastq files -->
|
|
|
76 <repeat name="read_series" title="Read File" min="1">
|
|
|
77 <param name="input" type="data" format="fastq" label="Dataset" />
|
|
|
78 </repeat>
|
|
|
79
|
|
|
80
|
|
|
81 <!-- select polymorphism -->
|
|
|
82 <conditional name="polymorphism">
|
|
|
83 <param name="selection" type="select" label="Perform polimorphism detection" help="Do you want to perform polimorphism detection in a population">
|
|
|
84 <option value="no">Do not perform polymorphism detection</option>
|
|
|
85 <option value="yes">Perform polymorphism detection</option>
|
|
|
86 </param>
|
|
|
87 <when value="yes">
|
|
|
88 <param name="indel_homopolymer_length" type="integer" value="0" label="Reject insertion/deletion polymorphisms due to homopolymer repeats with this length or greater" />
|
|
|
89 <param name="surrounding_homopolymer_length" type="integer" value="0" label="Do not predict polymorphic base substitutions that create a homopolymer with this length on each side (with 2 TTATT->TTTTT is rejected)" />
|
|
|
90 <param name="strand_coverage" type="integer" value="3" label="Only accept polymorphisms if coverage in each strand is at least this" />
|
|
|
91 <param name="bias_pvalue" type="float" value="0.05" label="Only accept polymorphisms if pvalue of strand or read quality bias is greater than this" />
|
|
|
92 </when>
|
|
|
93 <when value="no" />
|
|
|
94 </conditional>
|
|
|
95
|
|
|
96 <!-- junction only reference(s) -->
|
|
|
97 <conditional name="junction_reference">
|
|
|
98 <param name="selection" type="select" label="Detect external sequence insertion" help="You can select external sequences to detect insertions">
|
|
|
99 <option value="no">Do not detect external sequence insertion</option>
|
|
|
100 <option value="yes">Detect external sequence insertions</option>
|
|
|
101 </param>
|
|
|
102 <when value="yes">
|
|
|
103 <repeat name="j_series" title="Junction-only references" min="1">
|
|
|
104 <param name="jc_genome" type="data" label="Select an external sequence (fasta or genbank)" />
|
|
|
105 </repeat>
|
|
|
106 </when>
|
|
|
107 <when value="no" />
|
|
|
108 </conditional>
|
|
|
109
|
|
|
110 <!-- Copy Number Evidence -->
|
|
|
111 <param name="cnv_evidence" type="select" label="Copy number variation prediction (experimental option)" help="Do you want to perform copy number variation prediction">
|
|
|
112 <option value="">Do not perform copy number variaion prediction</option>
|
|
|
113 <option value="--cnv">Perform copy number variation prediction (--cnv)</option>
|
|
|
114 </param>
|
|
|
115
|
|
|
116 <param name="minqvalue" type="integer" value="3" label="Minimum Phred Q for a base to be considered" />
|
|
|
117
|
|
|
118
|
|
|
119 </inputs>
|
|
|
120
|
|
|
121 <outputs>
|
|
|
122 <data format="prezip.html" name="outfile" label="Breseq HTML report" />
|
|
|
123 </outputs>
|
|
|
124
|
|
|
125 <help>
|
|
|
126 **Breseq**
|
|
|
127
|
|
|
128 Breseq_ is a computational pipeline for finding mutations relative to a reference sequence in short-read DNA re-sequencing data for microbial sized genomes.
|
|
|
129
|
|
|
130 .. _Breseq: http://barricklab.org/twiki/bin/view/Lab/ToolsBacterialGenomeResequencing
|
|
|
131
|
|
|
132 ------
|
|
|
133
|
|
|
134 **Inputs**
|
|
|
135
|
|
|
136 Breseq accepts files in FASTQ format. It does not take pair-end information into account.
|
|
|
137
|
|
|
138 You can either run in clonal (consensus) mode or search for polymorphisms in a population.
|
|
|
139
|
|
|
140 You can also select an external sequence (eg. a transposon) to detect for insertions or horizontal transfer.
|
|
|
141
|
|
|
142
|
|
|
143 ------
|
|
|
144
|
|
|
145 **Outputs**
|
|
|
146
|
|
|
147 Breseq outputs a number of files. These are all condensed in a single zipped file.
|
|
|
148
|
|
|
149 It contains output files with the final results, accessible through ``output/index.html``
|
|
|
150
|
|
|
151 It also contains data files with accessory data, including:
|
|
|
152
|
|
|
153 - ``data/reference.fasta`` (file with reference genome: can be used in eg. IGV browser)
|
|
|
154 - ``data/reference.gff`` (file with genomic annotations: can be used in eg. IGV browser)
|
|
|
155 - ``data/areference.bam`` (file with read alignments: can be used in eg. IGV browser)
|
|
|
156 - ``data/unmatched.*`` (files with read that failed to align: can be used to build an assembly or to eg. blast against NCBI)
|
|
|
157
|
|
|
158 </help>
|
|
|
159 </tool>
|
|
|
160
|