Learning to Untangle Genome Assembly with Graph Convolutional Networks

Lovro Vrcek, Xavier Bresson, Thomas Laurent, Martin Schmitz, Mile SikicarXiv 2022

Abstract

A quest to determine the complete sequence of a human DNA from telomere to telomere started three decades ago and was finally completed in 2021. This accomplishment was a result of a tremendous effort of numerous experts who engineered various tools and performed laborious manual inspection to achieve the first gapless genome sequence. However, such method can hardly be used as a general approach to assemble different genomes, especially when the assembly speed is critical given the large amount of data. In this work, we explore a different approach to the central part of the genome assembly task that consists of untangling a large assembly graph from which a genomic sequence needs to be reconstructed. Our main motivation is to reduce human-engineered heuristics and use deep learning to develop more generalizable reconstruction techniques. Precisely, we introduce a new learning framework to train a graph convolutional network to resolve assembly graphs by finding a correct path through them. The training is supervised with a dataset generated from the resolved CHM13 human sequence and tested on assembly graphs built using real human PacBio HiFi reads. Experimental results show that a model, trained on simulated graphs generated solely from a single chromosome, is able to remarkably resolve all other chromosomes. Moreover, the model outperforms hand-crafted heuristics from a state-of-the-art de novo assembler on the same graphs. Reconstructed chromosomes with graph networks are more accurate on nucleotide level, report lower number of contigs, higher genome reconstructed fraction and NG50/NGA50 assessment metrics.

Introduction

Reconstructing a complete genome from scratch—a process called de novo assembly—is one of the most significant challenges in bioinformatics. Because current technology cannot read a whole chromosome at once, it produces millions of short, overlapping fragments called "reads." In the Overlap-Layout-Consensus (OLC) paradigm, these reads are organized into an assembly graph where nodes are reads and edges represent overlaps. Ideally, a single path through the graph would reveal the original sequence. However, biological genomes are full of repetitive regions and sequencing errors, creating "tangled" graphs with millions of spurious edges.

Current "Layout" tools rely on human-engineered heuristics to simplify these graphs. When these heuristics fail, they "cut" the sequence, resulting in fragmented pieces called contigs. This research aims to replace these rigid heuristics with a learnable model that can navigate complex graph structures more effectively using Graph Convolutional Networks (GCNs).

Methodology

The proposed framework treats genome assembly as an edge classification problem followed by a path-finding search. The process is divided into three main stages: data preparation, model training, and genome decoding.

Overview of the proposed framework, illustrating the pipeline from genomic data simulation to model training and final genome decoding.

Graph Construction and Encoding

The initial assembly graph is built using the "Overlap" phase of the Raven assembler. Because nodes in an assembly graph lack inherent features like coordinates, the authors employ Positional Encodings—specifically in-degree, out-degree, and $k$-step diffused PageRank vectors—to provide the network with topological context.

The GatedGCN Model

A Gated Graph Convolutional Network (GatedGCN) processes the graph and outputs a probability for each edge, indicating its likelihood of belonging to the true genomic sequence. Training is supervised using simulated reads from the CHM13 human genome reference, specifically focusing on Chromosome 19 to test generalization capabilities.

Sequence Decoding

Instead of a simple greedy walk, the system uses a greedy search algorithm guided by the model's predicted probabilities. Multiple starting points are sampled, and the longest resulting paths are selected to form the final contigs.

Experimental Results

The GatedGCN model was evaluated against Raven, a state-of-the-art traditional assembler, using real PacBio HiFi reads. The results demonstrated that the model trained on only one chromosome (Chr 19) could successfully resolve all other chromosomes, suggesting that structural "tangles" share a common "grammar" across the genome.

Dot plots for Chromosome 6 and Chromosome 10 showing the high linearity and accuracy of the reconstructed sequences against the reference genome.

Key Performance Metrics

  • Higher Contiguity: The model produced significantly fewer contigs. For Chromosome 1, GatedGCN produced 26 contigs compared to Raven's 241.
  • Improved Accuracy: The GNN-based assemblies achieved higher NG50 and NGA50 scores across almost all chromosomes, with NGA50 improving by more than 100% in some instances. Nucleotide-level accuracy also improved, with fewer mismatches and indels.

Conclusion and Future Work

This work demonstrates that deep learning can effectively replace hand-crafted heuristics in genome assembly. By learning to navigate the assembly graph, GCNs provide more contiguous and accurate reconstructions. Future research will focus on scaling the method to noisier Oxford Nanopore (ONT) reads, exploring generalization across different species, and addressing the complexities of diploid genomes (phasing).

Summary updated

BibTeX
@misc{vrcek2022learning,
  author = {Lovro Vrcek and Xavier Bresson and Thomas Laurent and Martin Schmitz and Mile Sikic},
  title = {{Learning to Untangle Genome Assembly with Graph Convolutional Networks}},
  year = {2022},
  eprint = {2206.00668},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.00668},
}
Figure