ComHapDet: a spatial community detection algorithm for haplotype assembly

Abishek Sankararaman, Haris Vikalo, François Baccelli

Abstract

Performance of the proposed algorithm is benchmarked on simulated as well as experimental data obtained by sequencing Chromosome 5 of tetraploid biallelic Solanum-Tuberosum (Potato). The results demonstrate the efficacy of the proposed method and that it compares favorably with the existing techniques.

Introduction

Haplotypes—the specific sequences of genetic variations (SNPs) found on a single chromosome—are essential for understanding disease susceptibility and drug responses. However, modern sequencing technologies produce "reads," which are short fragments of DNA, without identifying which specific chromosome copy they originated from. Reconstructing the full haplotype from these fragments is an NP-hard combinatorial problem.

This challenge is significantly amplified in polyploid organisms, such as potatoes and wheat, which possess more than two sets of chromosomes. In these cases, algorithms must distinguish between multiple nearly identical chromosome copies. Existing methods often struggle with computational noise from sequencing errors or the massive scale of data as read lengths and coverage increase. To address this, the authors propose ComHapDet, a novel algorithm that reframes haplotype assembly as a community detection problem on a spatial random graph.

Methodology

ComHapDet treats haplotype assembly as a spatial community detection task, leveraging the spatial coordinates of paired-end sequencing reads to achieve high accuracy and efficiency. The pipeline consists of three primary stages:

1. Spatial Embedding

Each paired-end read is assigned a 2D coordinate based on the starting positions of its two fragments. This process maps the genomic data into a spatial grid, allowing the algorithm to use spatial regularization. This assumes that the sampling process is roughly uniform across the genome, helping the algorithm ignore spurious connections caused by sequencing errors.

Pictorial description of a paired-end read

2. Graph Construction

The algorithm constructs a graph where each read is a node. Weighted edges are established between overlapping reads. A positive weight suggests reads originate from the same haplotype (agreeing on alleles), while a negative weight suggests they come from different ones. By recognizing that reads only interact if they are spatially close, the computational complexity is reduced from a naive $O(n^2)$ to approximately $O(n)$.

Mapping reads to a site-based graph

3. Divide-and-Conquer Clustering

Instead of clustering the entire graph at once, the algorithm tessellates the 2D space into overlapping boxes:

  • Local Clustering: Within each box, a modified k-means algorithm groups reads into $K$ communities (where $K$ is the ploidy).
  • Synchronization: Local labels are aligned globally using overlapping regions to ensure consistency across the genome.
  • Majority Rule: Final haplotypes are reconstructed by taking a majority vote of the alleles assigned to each community at every SNP position. This overlapping structure creates a built-in error-correction mechanism.

Experimental Evaluation

The algorithm was evaluated using both simulated and real-world datasets:

  • Simulated Data: Diploid (2n), triploid (3n), tetraploid (4n), and hexaploid (6n) datasets with varying error rates (0.002 to 0.2) and coverage levels.
  • Experimental Data: Real sequencing data from Chromosome 5 of a tetraploid potato (Solanum tuberosum).
  • Benchmarks: ComHapDet was compared against state-of-the-art tools including AltHap, HPoP, HapCompass, and HapTree.

Key Results

ComHapDet demonstrated superior accuracy in polyploid simulations, consistently outperforming AltHap in Correct Phasing Rate (CPR) and Minimum Error Correction (MEC) scores, particularly as sequencing error rates increased. On hexaploid data, the algorithm was significantly faster than competing methods while maintaining higher accuracy.

In real-world applications, ComHapDet achieved a competitive MEC score (17,738) on the tetraploid potato dataset. Furthermore, the algorithm's performance and runtime scaled gracefully as sequencing coverage increased, proving its suitability for high-throughput data.

Conclusion and Future Work

ComHapDet offers a robust solution for polyploid haplotype assembly by utilizing spatial information to regularize the clustering process. While the method performs best when sequencing coverage exceeds 10x, it represents a significant step forward in genomic reconstruction. Future work may involve extending the spatial mapping to higher dimensions to better represent complex fragmented reads and testing the algorithm on even higher-coverage real-world datasets.

Summary updated

BibTeX
@inproceedings{sankararaman2020comhapdet,
  author = {Abishek Sankararaman and Haris Vikalo and François Baccelli},
  title = {{ComHapDet: a spatial community detection algorithm for haplotype assembly}},
  booktitle = {BMC},
  year = {2020},
  doi = {10.1186/s12864-020-06935-x},
}
Figure