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