Skip to main content

snippy_run

Tags: snippy variant-calling snp indel alignment bacteria sample-scope

Rapid haploid variant calling and core genome alignment.

Uses Snippy to find SNPs and indels between a haploid reference genome and your Next-Generation Sequencing (NGS) sequence reads. It maps reads to the reference, calls variants, and generates a consensus sequence.

Uses explicit positional record fields for reads:

  • Input: record(meta, r1, r2, se) where each read slot is Path?

Inputs

record (
meta: Record,
r1: Path?,
r2: Path?,
se: Path?
)
FieldTypeDescription
metaRecordGroovy Record containing sample information
r1Path?Illumina R1 reads (paired-end)
r2Path?Illumina R2 reads (paired-end)
sePath?Single-end Illumina reads
FieldTypeDescription
metaRecordGroovy Record containing reference information
referencePathReference genome (FASTA or GenBank format)

Outputs

record (
meta: Record,
aligned_fa: Path?,
vcf: Path?,
aligned_fa_error: Path?,
vcf_error: Path?,
error: Path?,
annotated_vcf: Path,
bam: Path?,
bai: Path?,
bed: Path,
consensus_fa: Path,
consensus_subs_fa: Path,
consensus_subs_masked_fa: Path,
coverage: Path,
csv: Path,
filt_vcf: Path,
gff: Path,
html: Path,
raw_vcf: Path,
subs_vcf: Path,
tab: Path,
txt: Path,
results: Set<Path>,
logs: Set<Path?>,
nf_logs: Set<Path>,
versions: Set<Path>
)
FieldTypeDescription
metaRecordSample information record
aligned_faPath?A version of the reference with - at zero coverage positions
vcfPath?The final annotated variants in VCF format
aligned_fa_errorPath?Aligned FASTA file generated during error state
vcf_errorPath?VCF file generated during error state
errorPath?Error log text file
annotated_vcfPathAnnotated VCF file
bamPath?The alignments in BAM format (includes unmapped/multimapping)
baiPath?Index for the BAM file
bedPathThe variants in BED format
consensus_faPathReference genome with all variants instantiated
consensus_subs_faPathReference genome with only substitution variants instantiated
consensus_subs_masked_faPathReference genome with substitutions instantiated and low coverage masked
coveragePathPer-base coverage depth information
csvPathA comma-separated summary of variants
filt_vcfPathThe filtered variant calls from Freebayes
gffPathThe variants in GFF3 format
htmlPathA HTML summary of the variants
raw_vcfPathThe unfiltered variant calls from Freebayes
subs_vcfPathVCF containing only substitution variants
tabPathA simple tab-separated summary of all variants
txtPathTab-separated columnar list of alignment statistics
resultsSet<Path>All output files to be published
logsSet<Path?>Optional program specific log files
nf_logsSet<Path>Nextflow-specific log files (e.g. .command.{begin
versionsSet<Path>A YAML formatted file with program versions

Parameters

Snippy Run Parameters

ParameterTypeDefaultDescription
--referencestringReference genome in GenBank format
--snippy_mapqualinteger60Minimum read mapping quality to consider
--snippy_basequalinteger13Minimum base quality to consider
--snippy_bwaoptstringExtra BWA MEM options, eg. -x pacbio
--snippy_fboptstringExtra Freebayes options, eg. --theta 1E-6 --read-snp-limit 2
--snippy_optsstringExtra options in quotes for Snippy

Used By

Subworkflows

  • snippy_run - Call variants against a reference genome using Snippy.

Workflows

  • snippy - Rapid haplotype variant calling and core genome alignment.

Citations

If you use this in your analysis, please cite the following.

Source

View source on GitHub

Version

SNIPPY_RUN:
- bactopia-variants: 1.0.4