RFhap: accurate alignment-free long-read phasing for improved diploid de novo assembly
Haplotype-resolved de novo assemblies enable genome-wide separation of maternal and paternal variation, improving the interpretation of complex variants relevant to human disease. Trio-aware assemblers such as Hifiasm-Trio leverage parental short reads by deriving parent-specific k-mers to guide phasing within the long-read assembly graph; however, fixed k-mer length and heuristics cannot be optimal in the presence of sequencing errors and graph complexity in repetitive regions, contributing to phasing errors and reduced haplotype-resolved contiguity. Here we present RFhap, a trio-based long-read phasing method that integrates multi-k-mer parent-specific markers with an alignment-free k-mer lookup engine and a random forest classifier to assign long reads to maternal, paternal, or unknown haplotypes prior to de novo assembly. We benchmarked RFhap on four human trio datasets from the Human Pangenome project spanning two ONT chemistries (R10.4 and R9.4.1). Using Merqury to evaluate downstream assemblies, RFhap nearly doubled corrected haplotype NG50 (mean 24.3 Mb vs. 13.1 Mb) and halved switch error rates (mean 0.111% vs. 0.236%) relative to Hifiasm-Trio, while remaining competitive in consensus QV and parental k-mer completeness. Consistent with improved phasing, RFhap reduced long-switch errors by ~ 3-fold across datasets, particularly within interspersed repeats. RFhap improves phasing accuracy from standard trio data, representing a step toward accurate and automated diploid human de novo assembly from long reads.
Authors
- Alex Di Genova (ORCID: https://orcid.org/0000-0002-3120-9283)
- Juan Francisco Miquel (ORCID: https://orcid.org/0000-0002-0526-4377)
- Damariz Gonzalez
- Gabriel Cabas
- Carol Moraga
- Francisca Salas-Pérez
Institutions
- Centre National de la Recherche Scientifique (FR)
- Pontificia Universidad Católica de Chile (CL)
- University of O'Higgins (CL)
- Center for Mathematical Modeling (CL)
- University of Chile (CL)
Publication Details
- Journal
- BMC Bioinformatics
- Published
- 2026-10-24
- DOI
- https://doi.org/10.1186/s12859-026-06735-2
- Primary Topic
- Genomics and Phylogenetic Studies
- Type
- article
- Field-Weighted Citation Impact
- 0.00