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