Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Jul 1;35(7):1595-1608.
doi: 10.1101/gr.280149.124.

Highly accurate assembly polishing with DeepPolisher

Collaborators, Affiliations

Highly accurate assembly polishing with DeepPolisher

Mira Mastoras et al. Genome Res. .

Abstract

Accurate genome assemblies are essential for biological research, but even the highest-quality assemblies retain errors caused by the technologies used to construct them. Base-level errors are typically fixed with an additional polishing step that uses reads aligned to the draft assembly to identify necessary edits. However, current methods struggle to find a balance between over- and underpolishing. Here, we present an encoder-only transformer model for assembly polishing called DeepPolisher, which predicts corrections to the underlying sequence using Pacific Biosciences (PacBio) HiFi read alignments to a diploid assembly. Our pipeline introduces a method, PHAsing Reads in Areas Of Homozygosity (PHARAOH), which uses ultralong Oxford Nanopore Technologies (ONT) data to ensure alignments are accurately phased and to correctly introduce heterozygous edits in falsely homozygous regions. We demonstrate that the DeepPolisher pipeline can reduce assembly errors by approximately half, mostly driven by reductions in indel errors. We have applied our DeepPolisher-based pipeline to 180 assemblies from the next Human Pangenome Reference Consortium (HPRC) data release, producing an average predicted quality value (QV) improvement of 3.4 (54% error reduction) for the majority of the genome.

PubMed Disclaimer

Figures

Figure 1.
Figure 1.
DeepPolisher pipeline overview. The PHARAOH pipeline leverages phase block information from ONT UL reads to correct the haplotype assignment of PacBio HiFi reads. The corrected alignment is passed to DeepPolisher, which is an encoder-only transformer model that predicts the underlying assembly sequence and proposes corrections in VCF format.
Figure 2.
Figure 2.
Comparison of DeepPolisher and alternate polishing methods against GIAB v4.2.1 benchmark for HG005. (A) For each polishing method, GIAB v4.2.1 variant-calling (assembly) errors are separated by indels (darker shade) and single-nucleotide variants (SNVs; lighter shade), with the number of errors per megabase to the right of each bar. (B) Total GIAB variant-calling (assembly) errors for different HiFi read coverages, with indel errors represented in pink circles and SNV errors in yellow triangles. (C) Total GIAB variant-calling (assembly) errors stratified by presence in tandem repeats (left), homopolymers >7 bp (middle), and segmental duplications (segdups; right), with SNV errors in lighter shades and indel errors in darker shades.
Figure 3.
Figure 3.
k-mer-based comparison of DeepPolisher and alternate polishing approaches for HG005. (A) Top panels display QV scores for each polishing method. Bottom panels depict total error k-mers, divided by error k-mers induced by polishing (dark blue) and error k-mers unchanged after polishing (green). Left panels show results for the GIAB high-confidence regions; right panels, whole genome. (B) Switch (x-axis) and hamming (y-axis) error rates for each polishing method. (C) Comparison of DeepVariant and DeepPolisher for eight HPRC samples. Left and middle panels show Hap1 (x-axis) and Hap2 (y-axis) QV for eight HPRC samples, with an arrow connecting the unpolished QV (pink) to the QV after polishing with DeepVariant (blue) and DeepPolisher (yellow). The left panel is within the GIAB high-confidence regions; middle panel, whole genome. The right panel shows the number of polishing edits from DeepPolisher (yellow) and DeepVariant (blue). Lighter shades indicate edits not inducing error (FP) k-mers; darker shades show edits that induce error k-mers. (D) Number of error k-mers unchanged by polishing with DeepPolisher falling into sequence annotation categories.
Figure 4.
Figure 4.
Polishing results for 180 HPRC assemblies. (A) Hap1 QV (x-axis) and Hap2 QV (y-axis) in the high-confidence regions for 180 HPRC samples from the second release. For each sample, unpolished QV is in blue with an arrow pointing to the polished QV. (B) The same as A but for whole-genome QV. (C) Switch (x -axis) and hamming (y-axis) error rate for the 107 samples with trio data. Unpolished in pink with an arrow pointing to polished in yellow.

Update of

References

    1. Aganezov S, Yan SM, Soto DC, Kirsche M, Zarate S, Avdeyev P, Taylor DJ, Shafin K, Shumate A, Xiao C, et al. 2022. A complete reference genome improves analysis of human genetic variation. Science 376: eabl3533. 10.1126/science.abl3533 - DOI - PMC - PubMed
    1. Baid G, Cook DE, Shafin K, Yun T, Llinares-López F, Berthet Q, Belyaeva A, Töpfer A, Wenger AM, Rowell WJ, et al. 2022. DeepConsensus improves the accuracy of sequences with a gap-aware sequence transformer. Nat Biotechnol 41: 232–238. 10.1038/s41587-022-01435-7 - DOI - PubMed
    1. Benjamini Y, Speed TP. 2012. Summarizing and correcting the GC content bias in high-throughput sequencing. Nucleic Acids Res 40: e72. 10.1093/nar/gks001 - DOI - PMC - PubMed
    1. Brandes N, Ofer D, Peleg Y, Rappoport N, Linial M. 2022. ProteinBERT: a universal deep-learning model of protein sequence and function. Bioinformatics 38: 2102–2110. 10.1093/bioinformatics/btac020 - DOI - PMC - PubMed
    1. Carroll A, Kolesnikov A, Cook DE, Brambrink L, Wiseman KN, Billings SM, Kruglyak S, Lajoie BR, Zhao J, Levy SE, et al. 2023. Accurate human genome analysis with element avidity sequencing. bioRxiv 10.1101/2023.08.11.553043 - DOI

LinkOut - more resources