Literature DB >> 31971576

Identifying and removing haplotypic duplication in primary genome assemblies.

Dengfeng Guan1,2, Shane A McCarthy2, Jonathan Wood3, Kerstin Howe3, Yadong Wang1, Richard Durbin2,3.   

Abstract

MOTIVATION: Rapid development in long-read sequencing and scaffolding technologies is accelerating the production of reference-quality assemblies for large eukaryotic genomes. However, haplotype divergence in regions of high heterozygosity often results in assemblers creating two copies rather than one copy of a region, leading to breaks in contiguity and compromising downstream steps such as gene annotation. Several tools have been developed to resolve this problem. However, they either focus only on removing contained duplicate regions, also known as haplotigs, or fail to use all the relevant information and hence make errors.
RESULTS: Here we present a novel tool, purge_dups, that uses sequence similarity and read depth to automatically identify and remove both haplotigs and heterozygous overlaps. In comparison with current tools, we demonstrate that purge_dups can reduce heterozygous duplication and increase assembly continuity while maintaining completeness of the primary assembly. Moreover, purge_dups is fully automatic and can easily be integrated into assembly pipelines.
AVAILABILITY AND IMPLEMENTATION: The source code is written in C and is available at https://github.com/dfguan/purge_dups. SUPPLEMENTARY INFORMATION: Supplementary data are available at Bioinformatics online.
© The Author(s) 2020. Published by Oxford University Press.

Entities:  

Mesh:

Year:  2020        PMID: 31971576      PMCID: PMC7203741          DOI: 10.1093/bioinformatics/btaa025

Source DB:  PubMed          Journal:  Bioinformatics        ISSN: 1367-4803            Impact factor:   6.937


1 Introduction

The superior and increasing throughput of long-read sequencing technologies, such as from Pacific Biosciences (Pacbio) and Oxford Nanopore Technologies (ONT), is revolutionizing the sequencing of genomes for new species (Phillippy, 2017). Long-read assemblers, such as Falcon (Chin ) and Canu (Koren ), typically generate haplotype-fused paths of a diploid genome, with Falcon-unzip (Chin ) further able to separate the initial assembly into primary contigs and haplotigs. However, when there is high heterozygosity as in many outbred species, for example, most insects and marine animals, the allelic relationships between haplotypic regions can be hard to identify, causing not only haplotigs to be mislabeled as primary contigs, but also overlaps to be kept among the primary contigs. The majority of these retained overlaps are between homologous chromosomes, and the resulting duplication harms downstream processes, such as scaffolding and gene annotation, leading to incorrect results. Tools such as purge_haplotigs (Roach ) and HaploMerger2 (Huang ) have been designed to resolve this problem. Purge_haplotigs makes use of both read depth and sequence similarity to identify haplotigs. However, it does not identify heterozygous overlaps, and requires users to specify read-depth cutoffs manually. HaploMerger2 seeks to identify both haplotigs and overlaps, but it ignores read depth and relies only on the alignment of contigs to each other. Here we describe a novel purging tool, purge_dups, to resolve the haplotigs and overlaps in a primary assembly, using both sequence similarity and read depth. Purge_dups is now being used routinely in the Vertebrate Genomes Project assembly pipeline.

2 Materials and methods

Given a primary assembly and long-read sequencing data, we apply the following steps to identify haplotigs and overlaps. A more detailed description of the methods is available in the Supplementary Material. We use minimap2 (Li, 2016) to map long-read sequencing data onto the assembly and collect read depth at each base position in the assembly. The software then uses the read-depth histogram to select a cutoff to separate haploid from diploid coverage depths, allowing for scenarios where the total assembly is dominated by either haploid or diploid sequence. We segment the input draft assembly into contigs by cutting at blocks of ‘N’s, and use minimap2 to generate an all by all self-alignment. We next recognize and remove haplotigs in essentially the same way as purge_haplotigs, and remove all matches associated with haplotigs from the self-alignment set. Finally we chain consistent matches in the remainder to find overlaps, then calculate the average coverage of the matching intervals for each overlap, and mark an unambiguous overlap as heterozygous when the average coverage on both contigs is less than the read-depth cutoff found in step 1, removing the sequence corresponding to the matching interval in the shorter contig.

3 Results and discussion

We evaluated the performance of purge_dups (v1.0.0) on four Falcon-unzip primary assemblies: Arabidopsis thaliana (At) (Chin ), Anopheles coluzzi (Ac) (Kingan ),grape Vitis vinifera L. cv. Cabernet Sauvignon (Vv) and pinecone soldierfish Myripristis murdjan (Mm), and compared our results to those of purge_haplotigs (v1.0.4), HaploMerger2. The expected genome sizes and heterozygosities of these genomes calculated by GenomeScope (Vurture ) are given in Supplementary Table S1, with heterozygosity ranging from 0.6% (Ac) to 1.6% (Vv). K-mer comparison analysis (Mapleson ) shows that purge_dups removes 96.4% of duplicated haploid-unique k-mers in the Falcon-unzip assembly of Mm (Fig. 1). Comparable figures for HaploMerger2 and purge_haplotigs are 95.7% and 81.2% respectively (Supplementary Fig. S1) and for At are 88.4%, 87.3% and 80.7% respectively (Supplementary Fig. S2). Supplementary Figures S3 and S4 show examples of regions where purge_dups removes both contained and overlapping duplication, whereas purge_haplotigs only removes fully contained duplication.
Fig. 1.

K-mer comparison plots for draft and purge_dups Mm assemblies (k = 21). The horizontal axis represents the copy number of k-mers in short reads from the same sample, the vertical axis shows the number of distinct k-mers and the colored lines denote k-mers which occur in the given number of times in the assembly. (a) The purple line shows 209.1 million two-copy k-mers accumulating in the haploid and diploid areas, which correspond to duplicated haplotigs or overlaps in the primary assembly. (b) Only 7.6 million two-copy k-mers remain after purging with purge_dups

K-mer comparison plots for draft and purge_dups Mm assemblies (k = 21). The horizontal axis represents the copy number of k-mers in short reads from the same sample, the vertical axis shows the number of distinct k-mers and the colored lines denote k-mers which occur in the given number of times in the assembly. (a) The purple line shows 209.1 million two-copy k-mers accumulating in the haploid and diploid areas, which correspond to duplicated haplotigs or overlaps in the primary assembly. (b) Only 7.6 million two-copy k-mers remain after purging with purge_dups Table 1 presents statistics on assembly and for the four assemblies, using Benchmarking Universal Single-Copy Orthologs (BUSCOs) (Simão ) to assess the consequences of purging for gene set completeness and duplication. Results are given for the original assemblies, purge_haplotigs, purge_dups and HaploMerger2 (with and without repeat masking). All purging methods remove a substantial amount of sequence from the primary assembly and decrease BUSCO duplication. No single method performs uniformly best across all assemblies and all metrics. However purge_haplotigs consistently leaves more duplicated sequence and genes. For all assemblies other than Mm, purge_dups gives the highest fraction of single-copy complete genes, and the lowest fraction of missing genes. Although purge_dups has only a limited ability to explicitly handle repeats it does not exhibit signs of significant overpurging.
Table 1.

BUSCO scores and assembly metrics

BUSCO scores (%)
Assembly size (Mb)Num. Contigs
CC(S)C(D)FM
At-orig 98.1 91.96.2 0.3 1.6 140172
At-PH97.796.01.70.61.7123109
At-PD97.8 96.7 1.1 0.6 1.6 121 96
At-HM96.895.61.20.62.6122117
At-HMm96.895.7 1.1 0.62.6 121 102

Ac-orig98.794.74.00.60.7266372
Ac-PH98.896.91.9 0.5 0.7253224
Ac-PD 98.9 98.6 0.30.6 0.5 246 192
Ac-HM98.598.20.30.60.9 245 223
Ac-HMm98.698.4 0.2 0.60.8246212

Vv-orig 92.2 79.812.4 1.5 6.3591718
Vv-PH92.188.14.01.66.3457 259
Vv-PD91.9 89.9 2.01.9 6.2 452 324
Vv-HMNANANANANANANA
Vv-HMm91.8 89.9 1.9 1.86.4458383

Mm-orig 95.8 79.016.8 2.0 2.2 12501290
Mm-PH94.589.15.42.43.1888517
Mm-PD94.490.93.52.72.9 838 563
Mm-HM94.691.33.32.52.9850600
Mm-HMm94.7 91.6 3.1 2.62.7845 443

Mm-origS 95.3 70.724.6 2.2 2.5 1252764
Mm-PHS94.787.57.22.52.8891 221
Mm-PDS94.891.23.62.7 2.5 840 222
Mm-HMS94.991.33.62.52.6852343
Mm-HMmS94.8 91.6 3.2 2.52.7848365

C, complete genes; C(S), complete single-copy genes; C(D), complete duplicate genes; F, fragmented genes; M, missing genes; orig, Falcon-unzip; PH, purge_haplotigs; PD, purge_dups; HM, HaploMerger2; HMm, HaploMerger2 with masking; PHS, PDS, HMS, HMmS: purge_haplotigs (respectively purge_dups, HaploMerger2 with and without repeat masking) after scaffolding and polishing. Values in bold indicate the best score of each type in each section. The HaploMerger2 run without masking on Vv did not complete.

BUSCO scores and assembly metrics C, complete genes; C(S), complete single-copy genes; C(D), complete duplicate genes; F, fragmented genes; M, missing genes; orig, Falcon-unzip; PH, purge_haplotigs; PD, purge_dups; HM, HaploMerger2; HMm, HaploMerger2 with masking; PHS, PDS, HMS, HMmS: purge_haplotigs (respectively purge_dups, HaploMerger2 with and without repeat masking) after scaffolding and polishing. Values in bold indicate the best score of each type in each section. The HaploMerger2 run without masking on Vv did not complete. For Mm, we also had 10X Genomics linked read data, and used this for scaffolding using Scaff10x (https://github.com/wtsi-hpag/Scaff10X). Following this with a round of polishing with Arrow closed a number of gaps, reducing contig number further and increasing contig N50. For the purge_haplotigs assembly, this resulted in 221 scaffolds with N50 8.17 Mb, and the final contig N50 3.48 Mb, whereas scaffolding the purge_dups assembly generated 222 scaffolds with N50 23.68 Mb, and contig N50 increased substantially from 2.63 Mb to 11.98 Mb. The nominal contiguity was even greater for the scaffolded HaploMerger2 masked assembly with scaffold N50 34.53 Mb, and contig N50 16.39 Mb. However, when we further assessed the scaffolds with QUAST (Gurevich ), the purge_dups scaffolds had the highest NGA50 (characteristic length of material correctly aligned to the genome) of 16.73 Mb, while HaploMerger2 scaffolds only had 7.86 Mb NGA50, with 126 scaffold misassemblies compared to 22 for purge_dups (Supplementary Table S2). The improvements that purging makes to contiguity following scaffolding indicate that divergent heterozygous overlaps can be a significant barrier to scaffolding, and that it is important to remove them as well as removing contained haplotigs. To our knowledge, scaffolders that use long-range information, such as Scaff10X with linked reads or SALSA with Hi-C data, do not handle heterozygous overlaps. We therefore recommend applying purge_dups directly after initial assembly, prior to scaffolding. Although HaploMerger2 can also link adjacent contigs using overlap information after purging, our tests suggest that it makes false joins, perhaps because it does not use read depth to distinguish haplotypic duplication from repeat duplication. In conclusion, purge_dups can significantly improve genome assemblies by removing overlaps and haplotigs caused by sequence divergence in heterozygous regions. This both removes false duplications in primary draft assemblies while retaining completeness and sequence integrity, and can improve scaffolding. It runs autonomously without requiring user specification of cutoff thresholds, allowing it to be included in an automated assembly pipeline. Click here for additional data file.
  11 in total

1.  BUSCO: assessing genome assembly and annotation completeness with single-copy orthologs.

Authors:  Felipe A Simão; Robert M Waterhouse; Panagiotis Ioannidis; Evgenia V Kriventseva; Evgeny M Zdobnov
Journal:  Bioinformatics       Date:  2015-06-09       Impact factor: 6.937

2.  QUAST: quality assessment tool for genome assemblies.

Authors:  Alexey Gurevich; Vladislav Saveliev; Nikolay Vyahhi; Glenn Tesler
Journal:  Bioinformatics       Date:  2013-02-19       Impact factor: 6.937

3.  Minimap and miniasm: fast mapping and de novo assembly for noisy long sequences.

Authors:  Heng Li
Journal:  Bioinformatics       Date:  2016-03-19       Impact factor: 6.937

4.  Phased diploid genome assembly with single-molecule real-time sequencing.

Authors:  Chen-Shan Chin; Paul Peluso; Fritz J Sedlazeck; Maria Nattestad; Gregory T Concepcion; Alicia Clum; Christopher Dunn; Ronan O'Malley; Rosa Figueroa-Balderas; Abraham Morales-Cruz; Grant R Cramer; Massimo Delledonne; Chongyuan Luo; Joseph R Ecker; Dario Cantu; David R Rank; Michael C Schatz
Journal:  Nat Methods       Date:  2016-10-17       Impact factor: 28.547

5.  GenomeScope: fast reference-free genome profiling from short reads.

Authors:  Gregory W Vurture; Fritz J Sedlazeck; Maria Nattestad; Charles J Underwood; Han Fang; James Gurtowski; Michael C Schatz
Journal:  Bioinformatics       Date:  2017-07-15       Impact factor: 6.937

6.  New advances in sequence assembly.

Authors:  Adam M Phillippy
Journal:  Genome Res       Date:  2017-05       Impact factor: 9.043

7.  Canu: scalable and accurate long-read assembly via adaptive k-mer weighting and repeat separation.

Authors:  Sergey Koren; Brian P Walenz; Konstantin Berlin; Jason R Miller; Nicholas H Bergman; Adam M Phillippy
Journal:  Genome Res       Date:  2017-03-15       Impact factor: 9.043

8.  HaploMerger2: rebuilding both haploid sub-assemblies from high-heterozygosity diploid genome assembly.

Authors:  Shengfeng Huang; Mingjing Kang; Anlong Xu
Journal:  Bioinformatics       Date:  2017-08-15       Impact factor: 6.937

9.  Purge Haplotigs: allelic contig reassignment for third-gen diploid genome assemblies.

Authors:  Michael J Roach; Simon A Schmidt; Anthony R Borneman
Journal:  BMC Bioinformatics       Date:  2018-11-29       Impact factor: 3.169

10.  A High-Quality De novo Genome Assembly from a Single Mosquito Using PacBio Sequencing.

Authors:  Sarah B Kingan; Haynes Heaton; Juliana Cudini; Christine C Lambert; Primo Baybayan; Brendan D Galvin; Richard Durbin; Jonas Korlach; Mara K N Lawniczak
Journal:  Genes (Basel)       Date:  2019-01-18       Impact factor: 4.096

View more
  127 in total

1.  HiCanu: accurate assembly of segmental duplications, satellites, and allelic variants from high-fidelity long reads.

Authors:  Sergey Nurk; Brian P Walenz; Arang Rhie; Mitchell R Vollger; Glennis A Logsdon; Robert Grothe; Karen H Miga; Evan E Eichler; Adam M Phillippy; Sergey Koren
Journal:  Genome Res       Date:  2020-08-14       Impact factor: 9.043

Review 2.  mRatBN7.2: familiar and unfamiliar features of a new rat genome reference assembly.

Authors:  Tristan V de Jong; Hao Chen; Wesley A Brashear; Kelli J Kochan; Andrew E Hillhouse; Yaming Zhu; Isha S Dhande; Elizabeth A Hudson; Mary H Sumlut; Melissa L Smith; Theodore S Kalbfleisch; Peter A Doris
Journal:  Physiol Genomics       Date:  2022-05-11       Impact factor: 4.297

3.  A Reference Genome Assembly of Hybrid-Derived California Wild Radish (Raphanus sativus × raphanistrum).

Authors:  Nicolas M Alexandre; Diler Haji; Moe Bakhtiari; Kamalakar Chatla; Jessica M Aguilar; Ksenia Arzumanova; Noah K Whiteman
Journal:  J Hered       Date:  2022-05-16       Impact factor: 2.679

4.  Merqury: reference-free quality, completeness, and phasing assessment for genome assemblies.

Authors:  Arang Rhie; Brian P Walenz; Sergey Koren; Adam M Phillippy
Journal:  Genome Biol       Date:  2020-09-14       Impact factor: 13.583

5.  A Reference Genome Assembly of Simmental Cattle, Bos taurus taurus.

Authors:  Michael P Heaton; Timothy P L Smith; Derek M Bickhart; Brian L Vander Ley; Larry A Kuehn; Jonas Oppenheimer; Wade R Shafer; Fred T Schuetze; Brad Stroud; Jennifer C McClure; Jennifer P Barfield; Harvey D Blackburn; Theodore S Kalbfleisch; Kimberly M Davenport; Kristen L Kuhn; Richard E Green; Beth Shapiro; Benjamin D Rosen
Journal:  J Hered       Date:  2021-03-29       Impact factor: 2.645

6.  A high-quality, chromosome-level genome assembly of the Black Soldier Fly (Hermetia illucens L.).

Authors:  Tomas N Generalovic; Shane A McCarthy; Ian A Warren; Jonathan M D Wood; James Torrance; Ying Sims; Michael Quail; Kerstin Howe; Miha Pipan; Richard Durbin; Chris D Jiggins
Journal:  G3 (Bethesda)       Date:  2021-05-07       Impact factor: 3.154

7.  Chromosomal-Level Reference Genome of the Neotropical Tree Jacaranda mimosifolia D. Don.

Authors:  Mingcheng Wang; Lei Zhang; Zhiqiang Wang
Journal:  Genome Biol Evol       Date:  2021-06-08       Impact factor: 3.416

8.  Overcoming uncollapsed haplotypes in long-read assemblies of non-model organisms.

Authors:  Nadège Guiglielmoni; Antoine Houtain; Alessandro Derzelle; Karine Van Doninck; Jean-François Flot
Journal:  BMC Bioinformatics       Date:  2021-06-05       Impact factor: 3.169

9.  The USDA-ARS Ag100Pest Initiative: High-Quality Genome Assemblies for Agricultural Pest Arthropod Research.

Authors:  Anna K Childers; Scott M Geib; Sheina B Sim; Monica F Poelchau; Brad S Coates; Tyler J Simmonds; Erin D Scully; Timothy P L Smith; Christopher P Childers; Renee L Corpuz; Kevin Hackett; Brian Scheffler
Journal:  Insects       Date:  2021-07-09       Impact factor: 2.769

10.  The genome of a daddy-long-legs (Opiliones) illuminates the evolution of arachnid appendages.

Authors:  Guilherme Gainett; Vanessa L González; Jesús A Ballesteros; Emily V W Setton; Caitlin M Baker; Leonardo Barolo Gargiulo; Carlos E Santibáñez-López; Jonathan A Coddington; Prashant P Sharma
Journal:  Proc Biol Sci       Date:  2021-08-04       Impact factor: 5.530

View more

北京卡尤迪生物科技股份有限公司 © 2022-2023.