Mercurial > repos > simon-gladman > snippy
annotate snippy.xml @ 7:93d294cd4d59 draft default tip
Added snippy core
author | simon-gladman |
---|---|
date | Fri, 10 Jun 2016 00:10:22 -0400 |
parents | 15f5a3074012 |
children |
rev | line source |
---|---|
0 | 1 <tool id="snippy" name="snippy" version="0.2.0"> |
6
15f5a3074012
Added snippy core and static binaries for linux and mac.
simon-gladman
parents:
5
diff
changeset
|
2 <requirements> |
0 | 3 <requirement type="package" version="3.0">snippy</requirement> |
6
15f5a3074012
Added snippy core and static binaries for linux and mac.
simon-gladman
parents:
5
diff
changeset
|
4 </requirements> |
15f5a3074012
Added snippy core and static binaries for linux and mac.
simon-gladman
parents:
5
diff
changeset
|
5 <stdio> |
15f5a3074012
Added snippy core and static binaries for linux and mac.
simon-gladman
parents:
5
diff
changeset
|
6 <exit_code range="1:" /> |
15f5a3074012
Added snippy core and static binaries for linux and mac.
simon-gladman
parents:
5
diff
changeset
|
7 </stdio> |
0 | 8 |
9 <command><![CDATA[ | |
4 | 10 #if str( $reftype.ref_type_selector ) == "fasta" |
11 cp $reftype.ref foo.fna && | |
12 #end if | |
13 #if str( $reftype.ref_type_selector ) == "genbank" | |
14 cp $reftype.ref foo.gbk && | |
15 #end if | |
0 | 16 snippy |
17 --outdir out | |
18 --cpus "\${GALAXY_SLOTS:-1}" | |
4 | 19 #if str( $reftype.ref_type_selector ) == "fasta" |
20 --ref foo.fna | |
21 #end if | |
22 #if str( $reftype.ref_type_selector ) == "genbank" | |
23 --ref foo.gbk | |
24 #end if | |
0 | 25 $cleanup |
26 #if str( $advanced.is_advanced ) == "advanced" | |
27 --mapqual $advanced.mapqual | |
28 --mincov $advanced.mincov | |
29 --minfrac $advanced.minfrac | |
30 #if $advanced.rgid | |
31 --rgid $advanced.rgid | |
32 #end if | |
33 #if $advanced.bwaopt | |
34 --bwaopt $advanced.bwaopt | |
35 #end if | |
36 #end if | |
37 #if str( $fastq_input.fastq_input_selector ) == "paired" | |
38 --pe1 $fastq_input.fastq_input1 | |
39 --pe2 $fastq_input.fastq_input2 | |
40 #end if | |
41 #if str( $fastq_input.fastq_input_selector ) == "paired_collection" | |
42 --pe1 $fastq_input.fastq_input1.forward | |
43 --pe2 $fastq_input.fastq_input1.reverse | |
44 #end if | |
45 #if str( $fastq_input.fastq_input_selector ) == "single" | |
46 --se $fastq_input.fastq_input1 | |
47 #end if | |
48 #if str( $fastq_input.fastq_input_selector ) == "paired_iv" | |
49 --peil $fastq_input.fastq_input1 | |
50 #end if | |
51 | |
52 && | |
53 | |
54 gunzip out/snps.depth.gz | |
55 | |
6
15f5a3074012
Added snippy core and static binaries for linux and mac.
simon-gladman
parents:
5
diff
changeset
|
56 && |
15f5a3074012
Added snippy core and static binaries for linux and mac.
simon-gladman
parents:
5
diff
changeset
|
57 |
15f5a3074012
Added snippy core and static binaries for linux and mac.
simon-gladman
parents:
5
diff
changeset
|
58 tar -czf out.tgz out |
15f5a3074012
Added snippy core and static binaries for linux and mac.
simon-gladman
parents:
5
diff
changeset
|
59 |
0 | 60 |
61 ]]></command> | |
62 <inputs> | |
4 | 63 <conditional name="reftype"> |
64 <param name="ref_type_selector" type="select" label="Reference type" help="File type of the reference file. (Fasta or Genbank)"> | |
65 <option value="genbank">Genbank</option> | |
66 <option value="fasta">Fasta</option> | |
67 </param> | |
68 <when value="fasta"> | |
69 <param name="ref" type="data" format="fasta" label="Reference Fasta" help="Fasta file to use as the reference" /> | |
70 </when> | |
71 <when value="genbank"> | |
72 <param name="ref" type="data" format="genbank" label="Reference Genbank" help="Genbank file to use as the reference" /> | |
73 </when> | |
74 </conditional> | |
0 | 75 <conditional name="fastq_input"> |
76 <param name="fastq_input_selector" type="select" label="Single or Paired-end reads" help="Select between paired and single end data"> | |
77 <option value="paired">Paired</option> | |
78 <option value="single">Single</option> | |
79 <option value="paired_collection">Paired Collection</option> | |
80 <option value="paired_iv">Paired Interleaved</option> | |
81 </param> | |
82 <when value="paired"> | |
83 <param name="fastq_input1" type="data" format="fastqsanger,fasta" label="Select first set of reads" help="Specify dataset with forward reads"/> | |
84 <param name="fastq_input2" type="data" format="fastqsanger,fasta" label="Select second set of reads" help="Specify dataset with reverse reads"/> | |
85 </when> | |
86 <when value="single"> | |
87 <param name="fastq_input1" type="data" format="fastqsanger,fasta" label="Select fastq dataset" help="Specify dataset with single reads"/> | |
88 </when> | |
89 <when value="paired_collection"> | |
90 <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"/> | |
91 </when> | |
92 <when value="paired_iv"> | |
93 <param name="fastq_input1" type="data" format="fastqsanger" label="Select fastq dataset" help="Specify dataset with interleaved reads"/> | |
94 </when> | |
95 </conditional> | |
96 <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" /> | |
97 <conditional name="advanced"> | |
98 <param name="is_advanced" type="select" label="Advanced parameters" help="unhide advanced parameter settings"> | |
99 <option value="advanced">Show advanced settings</option> | |
100 <option value="simple" selected="true">Hide advanced settings</option> | |
101 </param> | |
102 <when value="advanced"> | |
103 <param name="mapqual" type="float" value="60" label="Minimum mapping quality" help="Minimum mapping quality to allow" /> | |
104 <param name="mincov" type="float" value="10" label="Minimum coverage" help="Minimum coverage to call a snp" /> | |
105 <param name="minfrac" type="float" value="0.9" label="Minumum proportion for variant evidence" help="Minumum proportion for variant evidence" /> | |
106 <param name="rgid" type="text" value="" label="Bam header @RG ID" help="Use this @RG ID: in the BAM header" /> | |
107 <param name="bwaopt" type="text" value="" label="Extra BWA MEM options" help="Extra BWA MEM options, eg. -x pacbio" /> | |
108 </when> | |
109 <when value="simple"> | |
110 | |
111 </when> | |
112 </conditional> | |
113 </inputs> | |
114 <outputs> | |
115 <data format="vcf" name="snpvcf" label="${tool.name} on ${on_string} snps vcf file" from_work_dir="out/snps.vcf"/> | |
116 <data format="gff3" name="snpgff" label="${tool.name} on ${on_string} snps gff file" from_work_dir="out/snps.gff"/> | |
117 <data format="tabular" name="snptab" label="${tool.name} on ${on_string} snps table" from_work_dir="out/snps.tab"/> | |
118 <data format="tabular" name="snpsum" label="${tool.name} on ${on_string} snps summary" from_work_dir="out/snps.txt"/> | |
4 | 119 <data format="txt" name="snplog" label="${tool.name} on ${on_string} log file" from_work_dir="out/snps.log"/> |
0 | 120 <data format="fasta" name="snpalign" label="${tool.name} on ${on_string} aligned fasta" from_work_dir="out/snps.aligned.fa"/> |
121 <data format="fasta" name="snpconsensus" label="${tool.name} on ${on_string} consensus fasta" from_work_dir="out/snps.consensus.fa"/> | |
122 <data format="tabular" name="snpsdepth" label="${tool.name} on ${on_string} mapping depth" from_work_dir="out/snps.depth"/> | |
123 <data format="bam" name="snpsbam" label="${tool.name} on ${on_string} mapped reads (bam)" from_work_dir="out/snps.bam"> | |
124 <filter>cleanup is False</filter> | |
125 </data> | |
6
15f5a3074012
Added snippy core and static binaries for linux and mac.
simon-gladman
parents:
5
diff
changeset
|
126 <data format="zip" name="outdir" label="${tool.name} on ${on_string} out dir" from_work_dir="out.tgz" /> |
0 | 127 </outputs> |
128 | |
129 <tests> | |
130 <test> | |
5 | 131 <param name="ref_type_selector" value="fasta" /> |
0 | 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> | |
6
15f5a3074012
Added snippy core and static binaries for linux and mac.
simon-gladman
parents:
5
diff
changeset
|
197 <citations> |
15f5a3074012
Added snippy core and static binaries for linux and mac.
simon-gladman
parents:
5
diff
changeset
|
198 <citation type="bibtex">@UNPUBLISHED{Seemann2013, |
15f5a3074012
Added snippy core and static binaries for linux and mac.
simon-gladman
parents:
5
diff
changeset
|
199 author = "Seemann T", |
15f5a3074012
Added snippy core and static binaries for linux and mac.
simon-gladman
parents:
5
diff
changeset
|
200 title = "snippy: fast bacterial variant calling from NGS reads", |
15f5a3074012
Added snippy core and static binaries for linux and mac.
simon-gladman
parents:
5
diff
changeset
|
201 year = "2015", |
15f5a3074012
Added snippy core and static binaries for linux and mac.
simon-gladman
parents:
5
diff
changeset
|
202 note = "https://github.com/tseemann/snippy"}</citation> |
15f5a3074012
Added snippy core and static binaries for linux and mac.
simon-gladman
parents:
5
diff
changeset
|
203 </citations> |
0 | 204 |
205 | |
206 </tool> |