annotate snippy.xml @ 0:55e3a2bbcde6 draft default tip

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