|
0
|
1 <tool id="snippy_mod" name="snippy_mod" version="@VERSION@">
|
|
|
2 <description>
|
|
|
3 Snippy finds SNPs between a haploid reference genome and your NGS sequence reads.
|
|
|
4 </description>
|
|
|
5 <macros>
|
|
|
6 <import>macros.xml</import>
|
|
|
7 </macros>
|
|
|
8 <expand macro="requirements" />
|
|
|
9 <expand macro="version_command" />
|
|
|
10
|
|
|
11 <command detect_errors="exit_code"><![CDATA[
|
|
|
12
|
|
|
13 #if $ref.is_of_type("fasta")
|
|
|
14 cp '$ref' 'foo.fna' &&
|
|
|
15 #end if
|
|
|
16 #if $ref.is_of_type("genbank")
|
|
|
17 cp '$ref' 'foo.gbk' &&
|
|
|
18 #end if
|
|
|
19 snippy
|
|
|
20 --outdir 'out'
|
|
|
21 --cpus "\${GALAXY_SLOTS:-1}"
|
|
|
22 #if $ref.is_of_type("fasta")
|
|
|
23 --ref 'foo.fna'
|
|
|
24 #end if
|
|
|
25 #if $ref.is_of_type("genbank")
|
|
|
26 --ref 'foo.gbk'
|
|
|
27 #end if
|
|
|
28 --mapqual $adv.mapqual
|
|
|
29 --mincov $adv.mincov
|
|
|
30 --minfrac $adv.minfrac
|
|
|
31 #if $adv.rgid
|
|
|
32 --rgid '$advanced.rgid'
|
|
|
33 #end if
|
|
|
34 #if $adv.bwaopt
|
|
|
35 --bwaopt '$advanced.bwaopt'
|
|
|
36 #end if
|
|
|
37
|
|
|
38 #if str( $fastq_input.fastq_input_selector ) == "paired"
|
|
|
39 --pe1 '$fastq_input.fastq_input1'
|
|
|
40 --pe2 '$fastq_input.fastq_input2'
|
|
|
41 #end if
|
|
|
42 #if str( $fastq_input.fastq_input_selector ) == "paired_collection"
|
|
|
43 --pe1 '$fastq_input.fastq_input1.forward'
|
|
|
44 --pe2 '$fastq_input.fastq_input1.reverse'
|
|
|
45 #end if
|
|
|
46 #if str( $fastq_input.fastq_input_selector ) == "single"
|
|
|
47 --se '$fastq_input.fastq_input1'
|
|
|
48 #end if
|
|
|
49 #if str( $fastq_input.fastq_input_selector ) == "paired_iv"
|
|
|
50 --peil '$fastq_input.fastq_input1'
|
|
|
51 #end if
|
|
|
52
|
|
|
53
|
|
|
54 ]]></command>
|
|
|
55
|
|
|
56 <inputs>
|
|
|
57
|
|
|
58 <param name="ref" type="data" format="fasta,genbank" label="Reference File (either in fasta or genbank format)" help="Fasta or Genbank file to use as the reference" />
|
|
|
59
|
|
|
60 <conditional name="fastq_input">
|
|
|
61 <param name="fastq_input_selector" type="select" label="Single or Paired-end reads" help="Select between paired and single end data">
|
|
|
62 <option value="paired">Paired</option>
|
|
|
63 <option value="single">Single</option>
|
|
|
64 <option value="paired_collection">Paired Collection</option>
|
|
|
65 <option value="paired_iv">Paired Interleaved</option>
|
|
|
66 </param>
|
|
|
67 <when value="paired">
|
|
|
68 <param name="fastq_input1" type="data" format="fastqsanger,fasta" label="Select first set of reads" help="Specify dataset with forward reads"/>
|
|
|
69 <param name="fastq_input2" type="data" format="fastqsanger,fasta" label="Select second set of reads" help="Specify dataset with reverse reads"/>
|
|
|
70 </when>
|
|
|
71 <when value="single">
|
|
|
72 <param name="fastq_input1" type="data" format="fastqsanger,fasta" label="Select fastq dataset" help="Specify dataset with single reads"/>
|
|
|
73 </when>
|
|
|
74 <when value="paired_collection">
|
|
|
75 <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"/>
|
|
|
76 </when>
|
|
|
77 <when value="paired_iv">
|
|
|
78 <param name="fastq_input1" type="data" format="fastqsanger" label="Select fastq dataset" help="Specify dataset with interleaved reads"/>
|
|
|
79 </when>
|
|
|
80 </conditional>
|
|
|
81
|
|
|
82 <section name="adv" title="Advanced parameters" expanded="false">
|
|
|
83 <param name="mapqual" type="integer" value="60" label="Minimum mapping quality" help="Minimum mapping quality to allow" />
|
|
|
84 <param name="mincov" type="integer" value="10" label="Minimum coverage" help="Minimum coverage to call a snp" />
|
|
|
85 <param name="minfrac" type="float" value="0.9" label="Minumum proportion for variant evidence" help="Minumum proportion for variant evidence" />
|
|
|
86 <param name="rgid" type="text" value="" label="Bam header @RG ID" help="Use this @RG ID: in the BAM header" />
|
|
|
87 <param name="bwaopt" type="text" value="" label="Extra BWA MEM options" help="Extra BWA MEM options, eg. -x pacbio" />
|
|
|
88 </section>
|
|
|
89
|
|
|
90 <param name="outputs" type="select" multiple="true" display="checkboxes" label="Output selection">
|
|
|
91 <option value="outvcf" selected="True">The final annotated variants in VCF format</option>
|
|
|
92 <option value="outgff" selected="False">The variants in GFF3 format</option>
|
|
|
93 <option value="outtab" selected="True">A simple tab-separated summary of all the variants</option>
|
|
|
94 <option value="outsum" selected="False">A summary of the samples and mapping</option>
|
|
|
95 <option value="outlog" selected="False">A log file with the commands run and their outputs</option>
|
|
|
96 <option value="outaln" selected="False">A version of the reference but with - at position with depth=0 and N for 0 to depth to --mincov (does not have variants)</option>
|
|
|
97 <option value="outcon" selected="False">A version of the reference genome with all variants instantiated</option>
|
|
|
98 <option value="outdep" selected="False">Output of samtools depth for the .bam file</option>
|
|
|
99 <option value="outbam" selected="False">The alignments in BAM format. Note that multi-mapping and unmapped reads are not present.</option>
|
|
|
100 </param>
|
|
|
101
|
|
|
102 </inputs>
|
|
|
103
|
|
|
104 <outputs>
|
|
|
105
|
|
|
106 <data format="vcf" name="snpvcf" label="${tool.name} on ${on_string} snps vcf file" from_work_dir="out/snps.vcf">
|
|
|
107 <filter>outputs and 'outvcf' in outputs</filter>
|
|
|
108 </data>
|
|
|
109 <data format="gff3" name="snpgff" label="${tool.name} on ${on_string} snps gff file" from_work_dir="out/snps.gff">
|
|
|
110 <filter>outputs and 'outgff' in outputs</filter>
|
|
|
111 </data>
|
|
|
112 <data format="tabular" name="snptab" label="${tool.name} on ${on_string} snps table" from_work_dir="out/snps.tab">
|
|
|
113 <filter>outputs and 'outtab' in outputs</filter>
|
|
|
114 </data>
|
|
|
115 <data format="tabular" name="snpsum" label="${tool.name} on ${on_string} snps summary" from_work_dir="out/snps.txt">
|
|
|
116 <filter>outputs and 'outsum' in outputs</filter>
|
|
|
117 </data>
|
|
|
118 <data format="txt" name="snplog" label="${tool.name} on ${on_string} log file" from_work_dir="out/snps.log">
|
|
|
119 <filter>outputs and 'outlog' in outputs</filter>
|
|
|
120 </data>
|
|
|
121 <data format="fasta" name="snpalign" label="${tool.name} on ${on_string} aligned fasta" from_work_dir="out/snps.aligned.fa">
|
|
|
122 <filter>outputs and 'outaln' in outputs</filter>
|
|
|
123 </data>
|
|
|
124 <data format="fasta" name="snpconsensus" label="${tool.name} on ${on_string} consensus fasta" from_work_dir="out/snps.consensus.fa">
|
|
|
125 <filter>outputs and 'outcon' in outputs</filter>
|
|
|
126 </data>
|
|
|
127 <data format="tabular" name="snpsdepth" label="${tool.name} on ${on_string} mapping depth" from_work_dir="out/snps.depth">
|
|
|
128 <filter>outputs and 'outdep' in outputs</filter>
|
|
|
129 </data>
|
|
|
130 <data format="bam" name="snpsbam" label="${tool.name} on ${on_string} mapped reads (bam)" from_work_dir="out/snps.bam">
|
|
|
131 <filter>outputs and 'outbam' in outputs</filter>
|
|
|
132 </data>
|
|
|
133
|
|
|
134 </outputs>
|
|
|
135
|
|
|
136 <tests>
|
|
|
137
|
|
|
138
|
|
|
139
|
|
|
140 </tests>
|
|
|
141
|
|
|
142
|
|
|
143 <help><![CDATA[
|
|
|
144
|
|
|
145 **Snippy @VERSION@**
|
|
|
146
|
|
|
147 Snippy finds SNPs between a haploid reference genome and your NGS sequence reads. It will find both substitutions (snps) and insertions/deletions (indels).
|
|
|
148
|
|
|
149 **Author**
|
|
|
150
|
|
|
151 Torsten Seemann
|
|
|
152
|
|
|
153 **Inputs**
|
|
|
154
|
|
|
155 - NGS Reads in fastq format (single or paired end)
|
|
|
156 - Reference file in either fasta or genbank format
|
|
|
157
|
|
|
158 If the reference file is supplied in genbank format, snpeff will be called to determine the effect of any snps found.
|
|
|
159
|
|
|
160 **Advanced options**
|
|
|
161
|
|
|
162 - mapping quality - Integer - Minimum mapping quality to allow (default '60')
|
|
|
163
|
|
|
164 - minimum coverage - Integer - Minimum coverage of variant site (default '10')
|
|
|
165
|
|
|
166 - minimum fraction - Float - Minumum proportion for variant evidence (default '0.9')
|
|
|
167
|
|
|
168 - rgid - String - Use this @RG ID: in the BAM header (default '')
|
|
|
169
|
|
|
170 - bwaopt - Extra BWA MEM options, eg. -x pacbio (default '')
|
|
|
171
|
|
|
172 **Further information**
|
|
|
173
|
|
|
174 For a much more in depth description of snippy and how it works, see https://github.com/tseemann/snippy
|
|
|
175
|
|
|
176 ]]></help>
|
|
|
177 <expand macro="citations"/>
|
|
|
178
|
|
|
179 </tool>
|