0
|
1 <tool id="snippy" name="snippy" version="0.2.0">
|
|
2 <requirements>
|
|
3 <requirement type="package" version="3.0">snippy</requirement>
|
|
4 <requirement type="package" version="1.2">samtools</requirement>
|
1
|
5 <requirement type="package" version="0_9_20_b040236">freebayes</requirement>
|
|
6 <requirement type="package" version="0.7.12">bwa</requirement>
|
|
7 <requirement type="package" version="0.1.11">vcftools</requirement>
|
|
8 <requirement type="package" version="4.0">snpeff</requirement>
|
3
|
9 <requirement type="package" version="8a5602bf07">vcflib</requirement>
|
0
|
10 </requirements>
|
|
11 <stdio>
|
|
12 <exit_code range="1:" />
|
|
13 </stdio>
|
|
14
|
|
15 <command><![CDATA[
|
4
|
16 #if str( $reftype.ref_type_selector ) == "fasta"
|
|
17 cp $reftype.ref foo.fna &&
|
|
18 #end if
|
|
19 #if str( $reftype.ref_type_selector ) == "genbank"
|
|
20 cp $reftype.ref foo.gbk &&
|
|
21 #end if
|
0
|
22 snippy
|
|
23 --outdir out
|
|
24 --cpus "\${GALAXY_SLOTS:-1}"
|
4
|
25 #if str( $reftype.ref_type_selector ) == "fasta"
|
|
26 --ref foo.fna
|
|
27 #end if
|
|
28 #if str( $reftype.ref_type_selector ) == "genbank"
|
|
29 --ref foo.gbk
|
|
30 #end if
|
0
|
31 $cleanup
|
|
32 #if str( $advanced.is_advanced ) == "advanced"
|
|
33 --mapqual $advanced.mapqual
|
|
34 --mincov $advanced.mincov
|
|
35 --minfrac $advanced.minfrac
|
|
36 #if $advanced.rgid
|
|
37 --rgid $advanced.rgid
|
|
38 #end if
|
|
39 #if $advanced.bwaopt
|
|
40 --bwaopt $advanced.bwaopt
|
|
41 #end if
|
|
42 #end if
|
|
43 #if str( $fastq_input.fastq_input_selector ) == "paired"
|
|
44 --pe1 $fastq_input.fastq_input1
|
|
45 --pe2 $fastq_input.fastq_input2
|
|
46 #end if
|
|
47 #if str( $fastq_input.fastq_input_selector ) == "paired_collection"
|
|
48 --pe1 $fastq_input.fastq_input1.forward
|
|
49 --pe2 $fastq_input.fastq_input1.reverse
|
|
50 #end if
|
|
51 #if str( $fastq_input.fastq_input_selector ) == "single"
|
|
52 --se $fastq_input.fastq_input1
|
|
53 #end if
|
|
54 #if str( $fastq_input.fastq_input_selector ) == "paired_iv"
|
|
55 --peil $fastq_input.fastq_input1
|
|
56 #end if
|
|
57
|
|
58 &&
|
|
59
|
|
60 gunzip out/snps.depth.gz
|
|
61
|
|
62
|
|
63 ]]></command>
|
|
64 <inputs>
|
4
|
65 <conditional name="reftype">
|
|
66 <param name="ref_type_selector" type="select" label="Reference type" help="File type of the reference file. (Fasta or Genbank)">
|
|
67 <option value="genbank">Genbank</option>
|
|
68 <option value="fasta">Fasta</option>
|
|
69 </param>
|
|
70 <when value="fasta">
|
|
71 <param name="ref" type="data" format="fasta" label="Reference Fasta" help="Fasta file to use as the reference" />
|
|
72 </when>
|
|
73 <when value="genbank">
|
|
74 <param name="ref" type="data" format="genbank" label="Reference Genbank" help="Genbank file to use as the reference" />
|
|
75 </when>
|
|
76 </conditional>
|
0
|
77 <conditional name="fastq_input">
|
|
78 <param name="fastq_input_selector" type="select" label="Single or Paired-end reads" help="Select between paired and single end data">
|
|
79 <option value="paired">Paired</option>
|
|
80 <option value="single">Single</option>
|
|
81 <option value="paired_collection">Paired Collection</option>
|
|
82 <option value="paired_iv">Paired Interleaved</option>
|
|
83 </param>
|
|
84 <when value="paired">
|
|
85 <param name="fastq_input1" type="data" format="fastqsanger,fasta" label="Select first set of reads" help="Specify dataset with forward reads"/>
|
|
86 <param name="fastq_input2" type="data" format="fastqsanger,fasta" label="Select second set of reads" help="Specify dataset with reverse reads"/>
|
|
87 </when>
|
|
88 <when value="single">
|
|
89 <param name="fastq_input1" type="data" format="fastqsanger,fasta" label="Select fastq dataset" help="Specify dataset with single reads"/>
|
|
90 </when>
|
|
91 <when value="paired_collection">
|
|
92 <param name="fastq_input1" format="fastqsanger,fasta" type="data_collection" collection_type="paired" label="Select a paired collection" help="See help section for an explanation of dataset collections"/>
|
|
93 </when>
|
|
94 <when value="paired_iv">
|
|
95 <param name="fastq_input1" type="data" format="fastqsanger" label="Select fastq dataset" help="Specify dataset with interleaved reads"/>
|
|
96 </when>
|
|
97 </conditional>
|
|
98 <param name="cleanup" type="boolean" checked="true" truevalue="--cleanup" falsevalue="" label="Cleanup the non-snp output files" help="Remove all non-SNP files: BAMs, indices etc" />
|
|
99 <conditional name="advanced">
|
|
100 <param name="is_advanced" type="select" label="Advanced parameters" help="unhide advanced parameter settings">
|
|
101 <option value="advanced">Show advanced settings</option>
|
|
102 <option value="simple" selected="true">Hide advanced settings</option>
|
|
103 </param>
|
|
104 <when value="advanced">
|
|
105 <param name="mapqual" type="float" value="60" label="Minimum mapping quality" help="Minimum mapping quality to allow" />
|
|
106 <param name="mincov" type="float" value="10" label="Minimum coverage" help="Minimum coverage to call a snp" />
|
|
107 <param name="minfrac" type="float" value="0.9" label="Minumum proportion for variant evidence" help="Minumum proportion for variant evidence" />
|
|
108 <param name="rgid" type="text" value="" label="Bam header @RG ID" help="Use this @RG ID: in the BAM header" />
|
|
109 <param name="bwaopt" type="text" value="" label="Extra BWA MEM options" help="Extra BWA MEM options, eg. -x pacbio" />
|
|
110 </when>
|
|
111 <when value="simple">
|
|
112
|
|
113 </when>
|
|
114 </conditional>
|
|
115 </inputs>
|
|
116 <outputs>
|
|
117 <data format="vcf" name="snpvcf" label="${tool.name} on ${on_string} snps vcf file" from_work_dir="out/snps.vcf"/>
|
|
118 <data format="gff3" name="snpgff" label="${tool.name} on ${on_string} snps gff file" from_work_dir="out/snps.gff"/>
|
|
119 <data format="tabular" name="snptab" label="${tool.name} on ${on_string} snps table" from_work_dir="out/snps.tab"/>
|
|
120 <data format="tabular" name="snpsum" label="${tool.name} on ${on_string} snps summary" from_work_dir="out/snps.txt"/>
|
4
|
121 <data format="txt" name="snplog" label="${tool.name} on ${on_string} log file" from_work_dir="out/snps.log"/>
|
0
|
122 <data format="fasta" name="snpalign" label="${tool.name} on ${on_string} aligned fasta" from_work_dir="out/snps.aligned.fa"/>
|
|
123 <data format="fasta" name="snpconsensus" label="${tool.name} on ${on_string} consensus fasta" from_work_dir="out/snps.consensus.fa"/>
|
|
124 <data format="tabular" name="snpsdepth" label="${tool.name} on ${on_string} mapping depth" from_work_dir="out/snps.depth"/>
|
|
125 <data format="bam" name="snpsbam" label="${tool.name} on ${on_string} mapped reads (bam)" from_work_dir="out/snps.bam">
|
|
126 <filter>cleanup is False</filter>
|
|
127 </data>
|
|
128 </outputs>
|
|
129
|
|
130 <tests>
|
|
131 <test>
|
|
132 <param name="ref" value="Ecoli.fna" ftype="fasta" />
|
|
133 <param name="fastq_input_selector" value="paired" />
|
|
134 <param name="fastq_input1" ftype="fastq" value="reads_1.fq" />
|
|
135 <param name="fastq_input2" ftype="fastq" value="reads_2.fq" />
|
|
136 <output name="snpsum" ftype="tabular" file="test/snps.txt" lines-diff="5" />
|
|
137 </test>
|
|
138 </tests>
|
|
139
|
|
140
|
|
141 <help><![CDATA[
|
4
|
142 Synopsis:
|
0
|
143 snippy 3.0 - fast bacterial variant calling from NGS reads
|
4
|
144
|
0
|
145 Author:
|
|
146 Torsten Seemann <torsten.seemann@gmail.com>
|
4
|
147
|
0
|
148 Usage:
|
|
149 snippy [options] --outdir <dir> --ref <ref> --pe1 <R1.fq.gz> --pe2 <R2.fq.gz>
|
4
|
150
|
0
|
151 snippy [options] --outdir <dir> --ref <ref> --se <454.fastq>
|
4
|
152
|
0
|
153 snippy [options] --outdir <dir> --ref <ref> --peil <velvet.fa.gz>
|
4
|
154
|
0
|
155 Options:
|
|
156 --help This help
|
4
|
157
|
0
|
158 --version Print version and exit
|
4
|
159
|
0
|
160 --citation Print citation for referencing snippy
|
4
|
161
|
0
|
162 --quiet No screen output (default OFF)
|
4
|
163
|
0
|
164 --cpus [N] Maximum number of CPU cores to use (default '8')
|
4
|
165
|
0
|
166 --reference [X] Reference genome. Supports FASTA, GenBank, EMBL (not GFF) (default '')
|
4
|
167
|
0
|
168 --outdir [X] Output folder (default '')
|
4
|
169
|
0
|
170 --prefix [X] Prefix for output files (default 'snps')
|
4
|
171
|
0
|
172 --force Force overwrite of existing output folder (default OFF)
|
4
|
173
|
0
|
174 --pe1|R1|left [X] Reads, paired-end R1 (left) (default '')
|
4
|
175
|
0
|
176 --pe2|R2|right [X] Reads, paired-end R2 (right) (default '')
|
4
|
177
|
0
|
178 --se|single [X] Single-end reads (default '')
|
4
|
179
|
0
|
180 --peil [X] Reads, paired-end R1/R2 interleaved (default '')
|
4
|
181
|
0
|
182 --mapqual [n.n] Minimum mapping quality to allow (default '60')
|
4
|
183
|
0
|
184 --mincov [N] Minimum coverage of variant site (default '10')
|
4
|
185
|
0
|
186 --minfrac [n.n] Minumum proportion for variant evidence (default '0.9')
|
4
|
187
|
0
|
188 --report Produce long report with visual alignment (slow) (default OFF)
|
4
|
189
|
0
|
190 --cleanup Remove all non-SNP files: BAMs, indices etc (default OFF)
|
4
|
191
|
0
|
192 --rgid [X] Use this @RG ID: in the BAM header (default '')
|
4
|
193
|
0
|
194 --bwaopt [X] Extra BWA MEM options, eg. -x pacbio (default '')
|
|
195
|
|
196 ]]></help>
|
|
197
|
|
198 <citations>
|
|
199 <citation type="bibtex">@UNPUBLISHED{Seemann2013,
|
|
200 author = "Seemann T",
|
|
201 title = "snippy: fast bacterial variant calling from NGS reads",
|
|
202 year = "2015",
|
|
203 note = "https://github.com/tseemann/snippy"}
|
|
204 </citation>
|
|
205 </citations>
|
|
206
|
|
207 </tool>
|