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