V-pipe: a computational pipeline for assessing viral genetic diversity from high-throughput sequencing data

Susana Posada-Céspedes, David Seifert, Ivan Topolsky, Karin J. Metzner, Niko BeerenwinkelbioRxiv 2020 · DOI

TL;DR

V-pipe is a new bioinformatics pipeline designed to tackle the challenges of analyzing viral genetic diversity from high-throughput sequencing data. It automates the entire process from raw reads to variant and haplotype inference, introducing a novel read alignment tool, ngshmmalign, to improve accuracy for small, highly diverse viral genomes.

What Problem Does This Paper Address?

High-throughput sequencing (HTS) has revolutionized our ability to study viral populations within a host, revealing crucial insights into transmission, virulence, and disease pathogenesis. However, analyzing this data presents significant hurdles:

  1. Error Rates: Amplification and sequencing errors can easily be mistaken for genuine biological variants, especially at low frequencies.
  2. Data Volume: The sheer amount of data generated by HTS requires substantial computational resources and efficient processing pipelines.
  3. Standardization: A lack of standardized workflows makes it difficult to compare results across different studies and labs.

These challenges hinder the routine use of HTS data in clinical settings and limit our understanding of viral evolution. The authors aim to address these issues by providing a comprehensive, automated, and reproducible pipeline for viral genetic diversity analysis.

Methods

V-pipe is built upon the Snakemake workflow management system, ensuring scalability and reproducibility. Its core workflow involves:

  • Quality Control: Using tools like FastQC and PRINSEQ to filter low-quality reads and bases.
  • Read Alignment: This is a key area of innovation. V-pipe introduces ngshmmalign, a novel read aligner that uses profile Hidden Markov Models (HMMs). This approach is specifically designed for small, highly diverse viral genomes and accounts for local heterogeneity and structural variations. For comparison, V-pipe also supports established aligners like BWA MEM and Bowtie 2.
  • Variant Calling and Haplotype Reconstruction: V-pipe integrates tools like ShoRAH and LoFreq for identifying single-nucleotide variants (SNVs) and reconstructing local and global viral haplotypes.

A significant feature of V-pipe is its benchmarking functionality (simBench and testBench). This allows users to simulate sequencing data with known ground truth and evaluate the performance of different pipeline configurations (e.g., varying aligners and variant callers) in a standardized environment.

Datasets

The paper utilizes several datasets for evaluation:

  • Simulated Data: V-pipe's simBench module was used to generate simulated reads from mock HIV-1 and HCV populations. These simulations varied the number of haplotypes, their relative abundances (using Dirichlet and Uniform distributions), and read coverage (10,000x and 40,000x).
  • Control Sample: An in vitro mixture of five well-defined HIV-1 strains was used for validation on real data. This dataset provided a known composition for assessing pipeline performance.
  • Publicly Available Clinical Data: 92 longitudinal HIV-1 whole-genome sequencing samples from 11 patients, previously reported by Zanini et al. (2015), were used to demonstrate the pipeline's applicability to real-world clinical scenarios.

The paper also references several publicly available datasets for HIV-1 and HCV strains used in simulations and for comparison.

Key Insights and Ideas

  • The Importance of Alignment: The study highlights that the choice of read aligner significantly impacts downstream SNV detection accuracy, often more so than the variant caller itself.
  • ngshmmalign's Advantage: The novel ngshmmalign tool, leveraging profile HMMs, demonstrates competitive or superior performance in aligning reads from diverse viral populations compared to established aligners, particularly in capturing more of the sequenced bases.
  • Benchmarking is Crucial: V-pipe's integrated benchmarking tools are essential for understanding the trade-offs between accuracy, speed, and computational resources when configuring a pipeline for specific research questions or clinical needs.
  • Haplotype Inference is Key: Moving beyond SNVs to reconstruct viral haplotypes provides a more complete picture of intra-host viral diversity and its implications for evolution and pathogenesis.

Key Results

  • ngshmmalign Performance: In simulation studies, ngshmmalign aligned a larger portion of sequenced bases, resulting in higher average coverage compared to BWA MEM and Bowtie 2, and often outperformed them in SNV detection F1 scores.
  • Variant Caller Comparison: ShoRAH and LoFreq showed comparable performance for SNV calling, with ShoRAH generally achieving slightly better F1 scores when used with ngshmmalign.
  • Accuracy on Control Sample: V-pipe achieved high recall (over 86%) and excellent specificity (near perfect) in analyzing a mixture of five HIV-1 strains, demonstrating its ability to accurately identify known variants.
  • Clinical Data Application: Processing 92 clinical HIV-1 samples yielded typical run times of 16 hours per sample with the default configuration, suggesting feasibility for clinical diagnostics.
  • Computational Trade-offs: While ngshmmalign offers high accuracy, it is computationally more intensive than BWA MEM. This highlights the need for users to balance accuracy requirements with available computational resources.

Limitations and Future Work

  • Illumina Data Focus: Currently, V-pipe is primarily designed for Illumina short-read sequencing data. The authors acknowledge that longer reads from technologies like Pacific Biosciences and Oxford Nanopore could simplify haplotype reconstruction but are limited by higher error rates.
  • Future Directions: The authors suggest extending V-pipe to support long-read sequencing technologies and integrating data from different platforms. They also emphasize the ongoing need for standardization in viral bioinformatics and the continuous adaptation of pipelines to evolving technologies.

Summary updated

Abstract

Abstract High-throughput sequencing technologies are used increasingly, not only in viral genomics research but also in clinical surveillance and diagnostics. These technologies facilitate the assessment of the genetic diversity in intra-host virus populations, which affects transmission, virulence, and pathogenesis of viral infections. However, there are two major challenges in analysing viral diversity. First, amplification and sequencing errors confound the identification of true biological variants, and second, the large data volumes represent computational limitations. To support viral high-throughput sequencing studies, we developed V-pipe, a bioinformatics pipeline combining various state-of-the-art statistical models and computational tools for automated end-to-end analyses of raw sequencing reads. V-pipe supports quality control, read mapping and alignment, low-frequency mutation calling, and inference of viral haplotypes. For generating high-quality read alignments, we developed a novel method, called ngshmmalign , based on profile hidden Markov models and tailored to small and highly diverse viral genomes. V-pipe also includes benchmarking functionality providing a standardized environment for comparative evaluations of different pipeline configurations. We demonstrate this capability by assessing the impact of three different read aligners (Bowtie 2, BWA MEM, ngshmmalign) and two different variant callers (LoFreq, ShoRAH) on the performance of calling single-nucleotide variants in intra-host virus populations. V-pipe supports various pipeline configurations and is implemented in a modular fashion to facilitate adaptations to the continuously changing technology landscape. V-pipe is freely available at https://github.com/cbg-ethz/V-pipe .
BibTeX
@misc{posadacespedes2020v,
  author = {Susana Posada-Céspedes and David Seifert and Ivan Topolsky and Karin J. Metzner and Niko Beerenwinkel},
  title = {{V-pipe: a computational pipeline for assessing viral genetic diversity from high-throughput sequencing data}},
  year = {2020},
  doi = {10.1101/2020.06.09.142919},
  howpublished = {bioRxiv},
}
Figure