Skip to main content

snippy_core

Tags: snippy core-genome alignment phylogeny snp bacteria run-scope

Core-SNP alignment from Snippy outputs.

Uses Snippy to generate a core genome alignment from multiple Snippy outputs. It combines variant calls (VCF) and alignments to produce a core SNP alignment, which can be used for phylogenetic analysis.

Inputs

record (
meta: Record,
_vcf: Set<Path>,
_aligned_fa: Set<Path>
)
FieldTypeDescription
metaRecordGroovy Record containing sample information
_vcfSet<Path>List of VCF files from Snippy
_aligned_faSet<Path>List of aligned FASTA files from Snippy
FieldTypeDescription
metaRecordGroovy Record containing reference information
referencePathReference genome (FASTA or GenBank format)
reference: Path
mask: Path?
NameTypeDescription
maskPath?BED file of regions to mask in the alignment

Outputs

record (
meta: Record,
supplemental: Set<Path>,
aln: Path,
full_aln: Path,
clean_full_aln: Path,
tab: Path,
vcf: Path,
txt: Path,
samples: Path,
results: Set<Path>,
logs: Set<Path?>,
nf_logs: Set<Path>,
versions: Set<Path>
)
FieldTypeDescription
metaRecordSample information record
supplementalSet<Path>Supplemental files including individual sample alignments
alnPathA core SNP alignment in FASTA format
full_alnPathA whole genome SNP alignment (includes invariant sites)
clean_full_alnPathA whole genome SNP alignment (includes invariant sites) with Ns
tabPathTab-separated list of core SNP sites with alleles (no annotations)
vcfPathMulti-sample VCF file with genotype GT tags for all discovered alleles
txtPathTab-separated list of alignment and core-size statistics
samplesPathList of samples included in the core alignment
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-Core Parameters

ParameterTypeDefaultDescription
--snippy_core_maxhapinteger100Largest haplotype to decompose
--snippy_core_maskstringBED file of sites to mask
--snippy_core_mask_charstringXMasking character
--snippy_core_optsstringExtra options in quotes for snippy-core

Used By

Subworkflows

  • snippy_core - Generate core-genome SNP alignment from per-sample Snippy outputs.

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_CORE:
- bactopia-variants: 1.0.4