NOTE: THIS PROJECT IS UNDER DEVELOPMENT AND MAY NOT FUNCTION AS EXPECTED UNTIL THIS MESSAGE GOES AWAY

Introduction

nf-core/pathogensurveillance is a population genomic pipeline for pathogen diagnosis, variant detection, and biosurveillance. The pipeline accepts the paths to raw reads for one or more organisms (in the form of a CSV file) and creates reports in the form of interactive HTML reports or PDF documents. Significant features include the ability to analyze unidentified eukaryotic and prokaryotic samples, creation of reports for multiple user-defined groupings of samples, automated discovery and downloading of reference assemblies from NCBI RefSeq, and rapid initial identification based on k-mer sketches followed by a more robust core genome phylogeny and SNP-based phylogeny.

Background - why use PathogenSurveillance?

TL;DR: unknown gDNA FASTQ -> sample ID + phylogeny + publication-quality figures

Most genomic tools are designed to be used with a reference genome. Yet this is at odds with the work of pathogen diagnosticians, who often deal with unknown samples. Finding the right reference manually may be cumbersome and require a suprising amount of technical skill.

PathogenSurveillance picks a good reference genome for you. It does this through the program sourmash. In simple terms, this takes a sample’s DNA “fingerprint” and finds the closest match in a “DNA fingerprint library” spanning the tree of life. In more technical terms, the pipeline generates k-mer sketches from your reads assembled into genomes, then uses the identified reference to do a boilerplate, but robust phylogenetic analysis of your submitted samples.

In our experience, the pipeline usually chooses the best possible reference genome. At a minimum it will choose a reference that is good enough to build an informative phylogeny and allow you to see the contextual placement your samples.

Pathogensurveillance is designed to use as many types of genomic DNA input as possible. It works for common shortread and longread sequencing technologies and for both prokaryotes and eukaryotes. There is a good deal of emergent complexity required to work with such a broad sample range, but Pathogensurveillance handles this automatically.

Tip

Ignore the name - Pathogensurveillance works great for non pathogens too.

While PathogenSurveillance may be a useful tool for researchers of all levels, it was designed with those who may have limited bioinformatics training in mind. PathogenSurveillance is very simple to run. At a minimum, all that needs to be supplied is a .CSV file with a single column specifying the path to your sample’s sequencing reads. Other information is optional, but if provided will used to customize the output report or conditionally use particular reference genomes.

Pathogensurveillance is particularly good for:

  • unknown sample identification
  • exploratory population analysis using minimal input parameters
  • inexperienced bioinformatics users
  • efficient parallelization of tasks
  • repeated analysis (given caching) where you would like to add new samples to a past run

Pathogensurveillance is not designed for:

  • viral sequence
  • non gDNA datasets (DNA assembly fasta files, RNA-seq, RAD-seq, ChIP-seq, etc.)
  • mixed/impure samples (this may change in future versions)
  • Highly specialized population genetic analysis, or researchers who would like to extensively test parameters at each stage
Note

Pathogensuveillance is built with Nextflow, which is a scientific workflow management system. Typically, Nextflow pipelines manage their many software dependencies through containers. It be complicated to get the recommended container systems (Singularity/Apptainer or Docker) working on MacOS or Windows, but running the pipeline in Linux machines or HPC clusters is typically straightforward.

Pipeline summary

This is a quick breakdown of the processes used by PathogenSurveillance:

  • Download sequences and references if they are not provided locally
  • Genome assembly
    • Illumina shortreads: (spades)
    • Pacbio or Oxford Nanopore longreads: (flye)
  • Quickly obtain several initial sample references (bbmap)
  • More accurately select appropriate reference genomes. Genome “sketches” are compared between first-pass references, samples, and any references directly provided by the user (sourmash)
  • Genome annotation (bakta)
  • Align reads to reference sequences (bwa)
  • Variant calling and filtering (graphtyper, vcflib)
  • Determine relationship between samples and references
    • Build SNP tree from variant calls (iqtree)
    • For Prokaryotes:
      • Identify shared orthologs (pirate)
      • Build tree from core genome phylogeny (iqtree)
    • For Eukaryotes:
      • Identify BUSCO genes (busco)
      • Build tree from BUSCO genes (read2tree)
  • Generate interactive html report/pdf file
    • Sequence and assembly information (fastqc, multiqc, quast)
    • sample identification tables and heatmaps
    • Phylogenetic trees from genome-wide SNPs and core genes
    • minimum spanning network

PathogenSurveillance pipeline chart