A Graph Auto-Encoder for Haplotype Assembly and Viral Quasispecies Reconstruction

Ziqi Ke, Haris Vikalo

Introduction

Reconstructing individual genetic sequences from a mixture of DNA fragments is a fundamental challenge in genomics. For diploid organisms like humans or polyploid species like the potato, chromosomes exist in multiple copies. A haplotype refers to the specific sequence of genetic variations, known as Single Nucleotide Polymorphisms (SNPs), found on a single chromosome. Accurately identifying these sequences is critical for personalized medicine, understanding disease susceptibility, and studying viral evolution.

However, modern sequencing technologies produce millions of short "reads" rather than full-length chromosomes. Assembling these reads into their respective haplotypes is a complex computational problem, often categorized as NP-hard. The difficulty is compounded in viral quasispecies—such as HIV or Ebola—where a single infection consists of a population of closely related but distinct viral strains.

Methodology: The GAEseq Framework

To address these challenges, researchers have introduced GAEseq, a novel framework that leverages graph auto-encoders for haplotype assembly. Unlike traditional combinatorial methods that treat sequencing reads as independent rows in a matrix, GAEseq focuses on representation learning to exploit the structural overlaps between reads.

Graph Representation

The core of GAEseq is the representation of sequencing data as an undirected bipartite graph. In this graph, one set of nodes represents the sequencing reads, and the other represents SNP positions. An edge is drawn between a read node and a SNP node if the read covers that specific genetic location. This approach captures the inherent "connectedness" of the data, which is essential for distinguishing between different haplotypes.

Encoder-Decoder Architecture

The GAEseq architecture consists of a stacked graph convolutional network (GCN) that serves as the encoder. This encoder processes the bipartite graph by passing messages between read and SNP nodes to learn high-dimensional structural features.

The GAEseq architecture, featuring a stacked graph encoder and a haplotype decoder for reconstructing SNP fragment matrices.

As shown in the architecture diagram above, the encoder terminates in a "softmax" layer. This layer acts as a probability estimator, predicting the likelihood that a specific read originated from one of $k$ possible haplotypes. The decoder then takes these predicted origins to reconstruct the consensus haplotype sequences and "impute" missing data where reads did not cover specific SNP positions.

Optimization and Loss

Rather than using standard classification loss, GAEseq employs a loss function that approximates the Minimum Error Correction (MEC) score. The MEC score is a standard metric in genomics that quantifies the number of changes required to make a sequencing dataset consistent with a set of haplotypes. By optimizing for this metric, the model directly addresses the goal of minimizing assembly errors.

Performance and Results

The model was rigorously evaluated using synthetic benchmarks, semi-experimental data from the tetraploid Solanum Tuberosum (potato), and real-world viral data from a 5-strain HIV-1 mixture.

Accuracy and Error Resilience

GAEseq consistently outperformed established tools such as HapCompass, H-PoP, and AltHap. On the HIV-1 dataset, GAEseq perfectly reconstructed all five viral strains in 8 out of 13 genes, whereas competing methods achieved this for only 5 or 6 genes. The auto-encoder's inherent denoising capabilities allow it to effectively ignore sequencing errors by focusing on the underlying consensus patterns.

Impact of Sequencing Coverage

A critical factor in haplotype assembly is sequencing coverage—the average number of times a specific SNP is covered by reads. GAEseq maintains a high Correct Phasing Rate (CPR) even at moderate coverages.

Precision-Recall curves for haplotype reconstruction across 15X, 25X, and 35X sequencing coverages.

As illustrated in the Precision-Recall curves, the model's performance is robust across various coverage levels. While performance naturally improves with higher coverage (e.g., 35X), GAEseq remains effective at 15X, a point where many traditional algorithms begin to fail due to insufficient overlap in the read graph.

Conclusion and Future Directions

GAEseq represents a significant shift in haplotype assembly, moving from purely combinatorial optimization to a deep learning-based representation approach. By modeling sequencing data as a graph, it captures complex relationships that traditional methods often overlook.

While powerful, the authors note that performance deteriorates at very low coverage (below 15x). Future work may involve adapting the GAEseq architecture to handle "long-read" sequencing technologies, which offer longer fragments but different error profiles. Additionally, integrating the read-mapping and assembly stages into a single end-to-end pipeline could further streamline the process of genetic reconstruction.

Summary updated

BibTeX
@inproceedings{ke2020graph,
  author = {Ziqi Ke and Haris Vikalo},
  title = {{A Graph Auto-Encoder for Haplotype Assembly and Viral Quasispecies Reconstruction}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i01.5414},
}
Figure