Skip to main content
Nature Communications logoLink to Nature Communications
. 2020 Mar 18;11:1432. doi: 10.1038/s41467-020-14998-3

GenomeScope 2.0 and Smudgeplot for reference-free profiling of polyploid genomes

T Rhyker Ranallo-Benavidez 1,, Kamil S Jaron 2,3, Michael C Schatz 1,4
PMCID: PMC7080791  PMID: 32188846

Abstract

An important assessment prior to genome assembly and related analyses is genome profiling, where the k-mer frequencies within raw sequencing reads are analyzed to estimate major genome characteristics such as size, heterozygosity, and repetitiveness. Here we introduce GenomeScope 2.0 (https://github.com/tbenavi1/genomescope2.0), which applies combinatorial theory to establish a detailed mathematical model of how k-mer frequencies are distributed in heterozygous and polyploid genomes. We describe and evaluate a practical implementation of the polyploid-aware mixture model that quickly and accurately infers genome properties across thousands of simulated and several real datasets spanning a broad range of complexity. We also present a method called Smudgeplot (https://github.com/KamilSJaron/smudgeplot) to visualize and estimate the ploidy and genome structure of a genome by analyzing heterozygous k-mer pairs. We successfully apply the approach to systems of known variable ploidy levels in the Meloidogyne genus and the extreme case of octoploid Fragaria×ananassa.

Subject terms: Genomic analysis, Software, Computational biology and bioinformatics, Genome informatics


Prior to genome assembly, the raw sequencing reads must be analyzed for assessment of major genome characteristics such as genome size, heterozygosity, and repetitiveness. For this purpose, the authors introduce GenomeScope 2.0, an extension of GenomeScope for polyploid genomes, and Smudgeplot, which can estimate a genome’s ploidy.

Introduction

Genome sequencing has become an integral part of modern molecular biology. The majority of the available analysis methods, however, are designed for established model organisms with chromosome-level reference genomes and detailed annotation readily available. In contrast, genome assemblies of non-model organisms are often fragmented, incomplete, or nonexistent. Furthermore, model organisms usually have relatively modest complexity, and are typically haploid or diploid species with relatively low genetic diversity and low repetitive content. Conversely, non-model species often have higher ploidy or higher rates of heterozygosity, and thus are substantially more difficult to analyze. As a result, polyploid species or species with other unusual genome structures are greatly underrepresented among genomics studies.

This underrepresentation reduces the generality of biological insights that can be gleaned from such studies. Notably, polyploids are known to be common, especially among plants and fungi. More than 70% of flowering plants are polyploid1 including many common crops essential for human consumption and use, such as apples, bananas, potatoes, strawberries, and wheat2. Higher ploidy levels have also been documented in many fungal species3. Polyploidy in animals is less common than in these other taxa, but is far from rare, including many species of frogs4, fish5, crustaceans, and molluscs6, as well as many species of nematodes7. The nematode species that are major pests of polyploid crops also happen to be polyploid8. More generally, polyploidization events have important consequences to genome evolution9,10. Developing tools to analyze fragmented and polyploid genomes is therefore essential for our understanding of how polyploidy affects genome and species evolution11.

The methods to analyze polyploid genomes typically rely on mapping reads to a haploid reference. However, obtaining a complete haploid reference is usually a challenging task12 as the assembly often results in mixed ploidy levels among the assembled sequences13. Genome assembly has an extra layer of complexity when the basic genomic features of the species are unknown (e.g., size, heterozygosity, and even ploidy). In the context of diploid organisms, several computational approaches have been developed to estimate genome characteristics directly from unassembled sequencing reads, including genome size and heterozygosity1416 or repetitiveness and heterozygosity17. However, none of these approaches model polyploid genomes.

We previously introduced GenomeScope18, for reference-free analysis of diploid genomes using a statistical analysis of k-mers in unassembled reads, also called the k-mer spectrum. Here, we present GenomeScope 2.0, which extends this approach with a polyploid-aware mixture model to computationally infer genome characteristics from unassembled sequencing data. GenomeScope 2.0 fits a mixture of negative binomial distributions to the k-mer spectrum of the sequencing data, with additional components to capture k-mers across higher ploidy levels. To further assist in the analysis of species we also develop Smudgeplot, a visualization technique of genome structure to estimate the ploidy, which is often unknown in non-model organisms. We show that these tools quickly and accurately analyze sequencing data from an ensemble of simulated polyploid genomes and from several real polyploid genomes (see Supplementary Table 1 for a summary of the 11 species analyzed). These tools can be used to improve the assessment and interpretation of genome assemblies and will substantially aid future studies of polyploid or otherwise complex genomes.

Results

Methods overview

We have extended the GenomeScope modeling for polyploid genomes. Similar to GenomeScope 1.018, GenomeScope 2.0 takes as input the k-mer spectrum, performs a nonlinear least-squares optimization to fit a mixture of negative binomial distributions, and outputs estimates for genome size, repetitiveness, and heterozygosity rates. For example, Fig. 1 shows the k-mer profiles, fitted models, and estimated parameters for diploid Arabidopsis thaliana and triploid nematode Meloidogyne enterolobii. The diploid has two major peaks at ~22 and 44, and the triploid has three major peaks centered at ~150, 300, and 450. Occasionally, it is difficult to determine whether a peak in the k-mer spectrum is a major peak. For this reason, GenomeScope 2.0 analyzes a transformed k-mer spectrum (see “GenomeScope Implementation”) in which the heights of higher-order peaks are increased. If the ploidy is still uncertain the user may run our Smudgeplot tool (see “Smudgeplot”).

Fig. 1. GenomeScope plots for heterozygous species.

Fig. 1

K-mer spectra and fitted models for (a) diploid Arabidopsis thaliana and (b) triploid Meloidogyne enterolobii. Note that the diploid plot has two major peaks, while the triploid plot has three major peaks. Both also have high frequency putative error k-mers with coverage near 1.

Furthermore, the relative heights of the peaks in a k-mer spectrum are proportional to the heterozygosity of the species. For example, for a diploid species, increasing heterozygosity will result in a higher first peak and a lower second peak. For a polyploid species, the relationship is more complicated, but in general increasing heterozygosity will result in a higher first peak and lower subsequent peaks. Lastly, higher coverage peaks of the k-mer spectrum represent increasingly higher copy repetitive sequences in the genomes.

Simulated polyploid sequencing data

We first applied GenomeScope 2.0 on 13,704 simulated datasets with varying ploidy (3, 4, 5, and 6), repetitiveness (0, 10, and 20%), and nucleotide heterozygosity rates (0, 0.5, 1, 1.5, and 2% for ploidies 3 and 4; 0, 1, and 2% for ploidies 5 and 6). For each ploidy, we also simulated all the possible topological relationships between the homologous chromosomes. For example, for tetraploid organisms there are two possible topologies (see Fig. 2 for the corresponding representations in Newick notation19). For pentaploid organisms there are five possible topologies, and for hexaploid organisms there are sixteen possible topologies (see Supplementary Methods for further explanation).

Fig. 2. Autotetraploid and allotetraploid topologies.

Fig. 2

a The autotetraploid topology, notated as (, (, (, )));  in Newick notation, corresponds to the following nucleotide heterozygosity forms: aaaaaaabaabcabcd. b The allotetraploid topology, notated as ((, ), (, ));  in Newick notation, corresponds to the following nucleotide heterozygosity forms: aaaaaabbaabcabcd.

Each triploid topology consists of two nucleotide heterozygosity forms (e.g., aab and abc), while each tetraploid, pentaploid, and hexaploid topology consists of three, four, and five heterozygosity forms, respectively. Thus, we simulated 75 triploid datasets (3 repetitiveness values, 5 heterozygosity values for each of the two heterozygosity forms, one topology), 750 tetraploid datasets (3 repetitiveness values, 5 heterozygosity values for each of the three heterozygosity forms, two topologies), 1215 pentaploid datasets (3 repetitiveness values, 3 heterozygosity values for each of the four heterozygosity forms, five topologies), and 11,664 hexaploid datasets (3 repetitiveness values, 3 heterozygosity values for each of the 5 heterozygosity forms, 16 topologies).

For the simulated data, we simulated 15x coverage per homolog and 1% sequencing error, to test GenomeScope 2.0 in relatively poor data quality conditions. Each simulated dataset was created with a generative model using a random 1 Mbp monoploid genome as aprogenitor. To test GenomeScope’s robustness on genomes of varying size, we also simulated using progenitor genomes of size 1, 10, 100 Mbp, and 1 Gbp. The mean absolute errors of the estimated parameters on the simulated datasets are shown in Table 1, which demonstrate that GenomeScope 2.0 is highly accurate. For the full results, see Supplementary Data 1.

Table 1.

Mean absolute errors of parameters on simulated polyploid datasets.

Mean absolute errors Triploid Tetraploid Pentaploid Hexaploid
Repetitiveness (d) 2.29 × 10−3 6.61 × 10−3 9.64 × 10−3 1.67 × 10−2
Nucleotide divergence 3.58 × 10−4 7.38 × 10−4 1.13 × 10−3 3.76 × 10−3
Monoploid length 2182 bp 4320 bp 5138 bp 7969 bp

Simulated datasets include 75 simulated triploid datasets, 750 simulated tetraploid datasets, 1215 simulated pentaploid datasets, and 11,664 simulated hexaploid datasets. Nucleotide divergence refers the proportion of loci along the genome for which the nucleotides across all the homologs are not all the same.

We then performed more specific testing to validate GenomeScope 2.0’s performance at predicting nucleotide divergence, repetitiveness, and length. Specifically, for each of these three parameters, we held the others constant, and varied only the parameter of interest:

  1. For nucleotide divergence, we systematically evaluated across 0–25% in 0.5% increments, for a total of 51 values. We used a 100 Mbp progenitor genome, 15x coverage per homolog, and 1.0% sequencing error. Figure 3 shows the difference between the estimated and true nucleotide divergence as a function of the true nucleotide divergence, for ploidies 2, 3, 4, 5, and 6.

  2. For repetitiveness, we evaluated a parameter sweep from 0-50% in 1% increments, for a total of 51 values. We used a 100 Mbp progenitor genome, 15x coverage per homolog, and 1.0% sequencing error. Figure 4 shows the difference between the estimated and true repetitiveness as a function of the true repetitiveness, for ploidies 1, 2, 3, 4, 5, and 6.

  3. For genome length, we evaluated progenitor genomes of size 1, 10, 100 Mbp, and 1 Gbp. We sequenced 15x coverage per homolog, and 1.0% sequencing error. Figure 5 shows the relative error in the length LengthEstimatedLengthTrueLengthTrue as a function of the true length (log scale), for ploidies 1, 2, 3, 4, 5, and 6.

Fig. 3. Nucleotide divergence parameter sweep.

Fig. 3

Results shown for diploid, triploid, tetraploid, pentaploid, and hexaploid simulated datasets.

Fig. 4. Repetitiveness parameter sweep.

Fig. 4

Results shown for monoploid, diploid, triploid, tetraploid, pentaploid, and hexaploid simulated datasets.

Fig. 5. Length parameter sweep.

Fig. 5

Results shown for monoploid, diploid, triploid, tetraploid, pentaploid, and hexaploid simulated datasets.

When compared with GenomeScope 1.0, GenomeScope 2.0 is more robust and accurate, especially on low coverage diploid data. Specifically, GenomeScope 1.0 failed to converge for 35 of the 51 simulated heterozygosity datasets, converged to the wrong peak due to low sequencing coverage for 15 of the datasets, and produced accurate results for only one dataset. GenomeScope 1.0 failed to converge on 2 of the 51 simulated repetitiveness datasets and converged to the wrong peak for the other 49 datasets. Lastly, GenomeScope 1.0 failed to converge for three of the four simulated length datasets and produced inaccurate results for the other dataset. Based on these results, we encourage all users to use GenomeScope 2.0 for diploid datasets.

Finally, we validated Smudgeplot on simulated data. In each case, we simulated 25x coverage per homolog and 1% sequencing error using a random 10 Mbp monoploid genome as a “progenitor”. We simulated both the allotetraploid and autotetraploid topologies for ploidy 4, and a single topology for ploidies 2, 3, 5, and 6. For nucleotide divergence, we systematically evaluated across 0.5–25% in 0.5% increments while holding the repetitiveness constant at 10%, for a total of 50 values. For repetitiveness, we evaluated a parameter sweep from 0-50% in 1% increments while holding the nucleotide divergence constant at 2.0%, for a total of 51 values.

For the nucleotide divergence sweep, Smudgeplot correctly estimates ploidy for the diploid simulated data over all heterozygosity values, for the triploid data up to 24.0% heterozygosity, for the allotetraploid data up to 18.0% heterozygosity, for the autotetraploid data up to 23.5% heterozygosity, for the pentaploid data up to 24.0% heterozygosity, and for the hexaploid data up to 24.0% heterozygosity. Above these heterozygosity thresholds, Smudgeplot underestimates the ploidy due to the k-mers in a k-mer pair being more than one nucleotide different and thus not identified. For the full results, see Supplementary Table 3.

For the repetitiveness sweep, Smudgeplot correctly estimates ploidy for the diploid simulated data up to 39% repetitiveness, for the triploid data up to 38% repetitiveness, for the allotetraploid data up to 43% repetitiveness, for the autotetraploid data up to 38% repetitiveness, for the pentaploid data over all repetitiveness values, and for the hexaploid data over all repetitiveness values. Above these repetitiveness thresholds, Smudgeplot overestimates the ploidy due to the signal from repetitive k-mers dominating the signal from heterozygous k-mers. For the full results, see Supplementary Table 4.

Real polyploid sequencing data

We then applied GenomeScope 2.0 on the real polyploid genomes listed in Supplementary Table 1. Table 2 shows a summary of the GenomeScope estimates for polyploid genome size (see Supplementary Table 2 for the full GenomeScope results). Here, we highlight a few notable results from this analysis, and the complete GenomeScope and Smudgeplot plots are available as Supplementary Figs. 123.

Table 2.

Summary of polyploid genomes analyzed.

Common name Species name Estimated genome size Assembly size
Coastal redwood Sequoia sempervirens 27.0 Gbp 26.5 Gbp
Cotton Gossypium barbadense 2.293 Gbp 2.267 Gbp27
Cotton Gossypium hirsutum 2.349 Gbp 2.347 Gbp27
Marbled crayfish Procambarus virginalis 9.5 Gbp 3.3 Gbp21
Root-knot nematode Meloidogyne arenaria 290.4 Mbp 163.7 Mbp7
Root-knot nematode Meloidogyne enterolobii 268.7 Mbp 162.4 Mbp7
Root-knot nematode Meloidogyne floridensis 201.7 Mbp 74.9 Mbp7
Root-knot nematode Meloidogyne incognita 207.4 Mbp 122.0 Mbp7
Root-knot nematode Meloidogyne javanica 280.2 Mbp 142.6 Mbp7
Potato Solanum tuberosum 3.0 Gbp 778.7 Mbp29
Wheat Triticum aestivum 14.1 Gbp 15.34 Gbp23

The genome size refers to the polyploid genome size that is estimated by GenomeScope 2.0. The assembly size for the coastal redwood is from the Redwood Genome Project.

Coastal redwoods (Sequoia sempervirens) are evergreen trees that can reach towering heights and are some of the longest living organisms on Earth. Sequoia sempervirens is known to be hexaploid, with recent evidence suggesting that it is an autohexaploid20. This aligns with the Smudgeplot analysis, which inferred a triploid ploidy for these data, which come from the haploid megagametophyte extracted from a seed. Furthermore, the genome size of the coastal redwood is larger than the human genome, with a recent assembly by the Redwood Genome Project spanning 26.5 Gbp. The estimated genome size of the coastal redwood output by GenomeScope is 27.0 Gbp, revealing great concordance with the recent assembly (see Supplementary Figs. 1 and 2).

Marbled crayfish (Procambarus virginalis) are freshwater crustaceans that undergo parthenogenetic reproduction, in which a female gamete develops into an individual without fertilization. Based on a Smudgeplot analysis, we inferred the ploidy to be triploid, which aligns with the current understanding of this organism21. We ran GenomeScope 2.0 with a triploid model to estimate the genome characteristics. Specifically, GenomeScope estimates a polyploid genome size of 9.7 Gbp, while the current assembly spans 3.3 Gbp (see Supplementary Figs. 7 and 8). It is clear that the assembly only spans one homolog of the triploid genome.

Root-knot nematodes (Meloidogyne arenaria, Meloidogyne enterolobii, Meloidogyne floridensis, Meloidogyne incognita, and Meloidogyne javanica) are parasitic roundworms that infect the roots of plants. Based on Smudgeplot analyses, we inferred that Meloidogyne enterolobii, Meloidogyne floridensis, and Meloidogyne incognita were triploid, while Meloidogyne arenaria and Meloidogyne javanica were tetraploid. Running GenomeScope 2.0 with the corresponding ploidies, we determined estimates for the genome characteristics. For the five root-knot nematodes the GenomeScope estimates for genome size are 1.65–2.69 times larger than the current best assemblies7, suggesting the assemblies have partially collapsed the homologous chromosomes (see Supplementary Figs. 918).

Bread wheat (Triticum aestivum) is an allohexaploid which consists of three subgenomes22. A Smudgeplot analysis inferred that the ploidy was diploid, because the individual subgenomes are highly divergent from each other. Specifically, if the homologous k-mers from different subgenomes are highly divergent (more than one SNP different), while the homologous k-mers from the same subgenome are only one SNP different, and then we would expect to see three k-mer pairs. Each of these pairs would have an estimated sum of coverages of 2λ and an estimated relative minor coverage of 12, and would thus be interpreted by Smudgeplot as coming from the genomic structure AB. The current best assembly spans 15.34 Gbp23, while the GenomeScope estimate is 14.1 Gbp (see Supplementary Figs. 21 and 22).

Allotetraploid vs. autotetraploid

One important application of GenomeScope is to distinguish between allotetraploid and autotetraploid species based on the distinct patterns of nucleotide heterozygosity rates that occur. For example, it is known in cotton that during meiosis homologous chromosomes from the same subgenome form bivalents and preferentially pair with each other24. This phenomenon is also prominent in many other allotetraploid species25. Thus, for allotetraploids we would expect a high proportion of aabb and a low proportion of aaab since preferential pairing would ensure that two homologs from the first subgenome and two homologs from the second subgenome are present after recombination. Conversely, it is known in potato that during meiosis the majority of cells contain quadrivalents26. In this case, after recombination an individual might have 0, 1, 2, or 3 homologs from a given subgenome. Thus, aaab would be expected to be more prominent than aabb since it is more likely that there are one or three copies of a subgenome rather than exactly two copies of a subgenome (see Supplementary Methods for a more in-depth discussion).

For cotton and potato, we see that the GenomeScope estimates for nucleotide heterozygosity rates follow these expectations (see Fig. 6). For the two allotetraploid cotton species, aaab is estimated to be ~0 and aabb is estimated to be >5%. The estimated genome size is also highly accurate, and GenomeScope estimates the polyploid genome lengths to be 2.293 and 2.349 Gbp, while the current best assemblies span 2.267 and 2.347 Gbp, respectively27 (see Supplementary Figs. 36). For potato28, aaab is greater than aabb as we would expect after recombination. Here, the estimated genome size is approximately three times larger than the current best assembly (3.0 Gbp vs. 778.7 Mbp) (see Supplementary Figs. 19 and 20). This is expected since the assembly was filtered to form a pseudo-haploid representation that reports a single homolog29. Thus, the GenomeScope estimates can determine whether a novel polyploid organism is an allopolyploid or autopolyploid.

Fig. 6. Allotetraploid and autotetraploid GenomeScope plots.

Fig. 6

K-mer spectra and fitted models for (a) allotetraploid Gossypium barbadense and (b) autotetraploid Solanum tuberosum. Note that the allotetraploid plot has aaab < aabb, while the autotetraploid plot has aaab > aabb.

Discussion

We have shown on simulated and real datasets that GenomeScope 2.0 is able to quickly and accurately estimate the genomic characteristics of polyploid organisms without a reference genome. The core of GenomeScope 2.0 is a polyploid model using the Möbius inversion formula which accounts for the k-mers occurring at higher ploidy levels. Users provide the k-mer spectrum as input and GenomeScope performs a nonlinear optimization using the Levenberg–Marquardt algorithm. We have also introduced Smudgeplot as a visualization and analysis technique that can be used to reveal the structure of a novel species. The core of this analysis is the identification and statistical analysis of k-mer pairs that differ by exactly one nucleotide.

The coverage of the dataset must be sufficient for these methods to resolve the error peak with the haploid peak. In general, having at least 15x coverage per homolog for GenomeScope and 25x coverage per homolog for Smudgeplot is required. Currently, GenomeScope and Smudgeplot only support low error short read sequencing. Future work remains to extend these techniques for single molecule sequencing with high error rates that currently prevent k-mer based analysis. Smudgeplot works well under moderate heterozygosity and repetitiveness where the signal from heterozygous k-mer pairs is stronger than the signal from repetitive k-mer pairs. For eight of the real polyploid organisms analyzed, Smudgeplot produces an accurate estimate of ploidy. Species with extreme heterozygosity and high repetitiveness, such as cotton and wheat, can confuse a Smudgeplot analysis. Another example is the diploid Fragaria iinumae strawberry genome, where more k-mer pairs come from the “AABB” smudge than from the “AB” smudge, which leads to the incorrect inference of tetraploidy (see Supplementary Fig. 23). Upon further analysis, Smudgeplot is correctly finding k-mer pairs in the genome, though they actually represent repetitive k-mer pairs, not k-mer pairs at a higher ploidy level. However, GenomeScope results reveal very low levels of heterozygosity and high rates of duplications, which highlight that using these tools in conjunction with one another can help unravel the properties of a genome.

In addition, polyploid species, especially allopolyploids, often have highly divergent genomic copies (e.g.,  >12% different at the nucleotide level). Thus, one limitation of using a k-mer-based technique is that in these cases too few k-mers may actually be shared between the homologous copies. This can lead Smudgeplot to infer diploidy even for polyploid species. However, in these cases the divergence of the homologs may be so high that they will be separated during the assembly process. The polyploidy will then very likely be revealed by standard genome quality assessment of conserved single-copy orthologs (BUSCO)30.

It is important to run GenomeScope with the correct value for the ploidy parameter. If p is greater than the true value this can lead to overfitting where the model contains a greater number of negative binomial distributions than is necessary. In real polyploid data, especially for highly heterozygous genomes, it is difficult to know a priori whether shorter higher-order peaks truly represent the data or whether they are due to an incorrect ploidy parameter. In addition, in order to accurately estimate genome size for highly repetitive genomes, it is important to create a k-mer histogram that is not truncated. By default, KMC and Jellyfish truncate the histogram at 10,000. We suggest running these tools without a maximum counter. The model fit that is output by GenomeScope can also be used to identify poor fit or incomplete datasets. However, in general, the best indicator of a good model fit is inspecting the plots to ensure the model matches the empirical data across the distribution.

Even with these caveats, GenomeScope and Smudgeplot are able to rapidly and accurately infer genomic properties for large, highly heterozygous, and polyploid genomes. GenomeScope accurately predicts genomic properties for the nearly 9 Gbp coastal redwood genome, for the highly heterozygous allotetraploid cotton genomes, and for the hexaploid wheat genome. Furthermore, GenomeScope is able to distinguish between allopolyploid and autopolyploid species, which can help researchers gain valuable biological insights for novel organisms without needing to perform costly experiments. Finally, Smudgeplot is able to correctly predict ploidy even in the extreme case of octaploid Fragaria×ananassa. These tools will open up future analysis of complex organisms that are underrepresented in current genomics pipelines.

Methods

GenomeScope diploid model

GenomeScope 1.0 statistically analyzes the k-mer profile and fits a mixture of four negative binomials, the first two representing unique heterozygous and homozygous k-mers, and the next two representing two-copy heterozygous and homozygous k-mers. For example, Fig. 1a shows the k-mer profile, fitted model, and estimated parameters for a highly heterozygous diploid Arabidopsis thaliana representing an F1 cross between two divergent accessions (Col-0 × Cvi-0)31.

The four negative binomials are equally spaced apart and occur at λ, 2λ, 3λ, and 4λ, where λ = 22.2 is the average k-mer coverage for the diploid genome. More generally, the ith peak corresponds to the contributions from k-mers that occur exactly i times in the diploid genome. It should be noted that although GenomeScope does not fit negative binomials for repetitive regions that occur more than twice, this does not greatly affect the fit on the peaks corresponding to less repetitive regions. This is because the proportion of the genome modeled by a given copy number repeat typically follows a Zeta distribution and hence quickly falls off32.

The underlying GenomeScope 1.0 model is given by:

f(x)=Gi=14αiNBx,iλ,iλρ, 1

where f(x) is the k-mer spectrum (i.e., the frequency of the k-mers at coverage depth x) and G is the number of distinct k-mers (i.e., repetitive k-mers are counted only once) in the monoploid genome. Within polyploids, the basic chromosome set from which the other sets are derived is called the monoploid chromosome set, while the chromosomes present in the gametes of a species constitute the haploid chromosome set. Thus, the monoploid genome consists of a single chromosome set, while the haploid genome typically consists of half of the total number of chromosome sets33. Under this model, αi is, for a single distinct k-mer of the monoploid genome, the expected frequency contribution of the corresponding k-mers across the two homologs to peak i of the k-mer spectrum, NB(xμsize) is the negative binomial distribution that approximates the sequencing coverage with mean μ and dispersion parameter size, λ is the average k-mer coverage for the diploid genome, and ρ is a bias parameter proportional to PCR duplication and other sequencing biases.

The next crucial step for the model is to mathematically determine the αi values in terms of the repetitiveness, heterozygosity, and k-mer length. In the diploid case, we have:

α1=(1d)(2(1(raa)k))+d(2((raa)k)(1(raa)k)+2(1(raa)k)2)α2=(1d)((raa)k)+d((1(raa)k)2)α3=d(2((raa)k)(1(raa)k))α4=d(((raa)k)2), 2

where d is the proportion of distinct k-mers of the monoploid genome that occur twice, raa is the homozygosity rate, and k is the k-mer length.

GenomeScope polyploid model

To account for the higher ploidy levels in polyploid organisms, the underlying GenomeScope 2.0 model now fits 2 × p negative binomial distributions, where p is the ploidy, according to:

f(x)=Gi=12pαiNBx,iλ,iλρ. 3

Similar to the diploid case, each of the 2p negative binomials are equally spaced apart and occur at λ, 2λ, …, and 2pλ, where λ is the average k-mer coverage of the polyploid genome. Again, the i-th peak corresponds to the contributions from k-mers that occur exactly i times in the polyploid genome.

The next step for the model is to mathematically determine the αi values in terms of the ploidy, repetitiveness, heterozygosity, and k-mer length. In the polyploid case, this calculation is much more involved and requires utilizing the Möbius inversion formula on partially ordered sets, a classical combinatorics theorem34. For the derivation of this calculation, please refer to Supplementary Methods.

GenomeScope implementation

In order to determine the parameters that best fit the input data, GenomeScope uses a nonlinear least-squares minimization technique. While GenomeScope 1.0 uses the nls function in R based on the Gauss–Newton algorithm, GenomeScope 2.0 instead uses the nlsLM function. nlsLM utilizes the Levenberg–Marquardt algorithm, with support for lower and upper parameter bounds. Like the Gauss–Newton method, the Levenberg–Marquardt algorithm starts from an initial naive estimate and performs an iterative procedure to update the parameters. However, Levenberg–Marquardt introduces a damping parameter that is adjusted as the iterative process continues, making it more robust. Notable, in many simulated and real datasets with higher ploidy, the nlsLM function is able to converge, while the nls function is not.

For datasets with high heterozygosity and/or high ploidy, the k-mer spectrum does not show clearly defined higher-order peaks. In these cases, fitting to the transformed k-mer spectrum improves the model’s ability to converge. We define the transformed k-mer spectrum as a plot of frequency times coverage (y-axis) versus coverage (x-axis) instead of the typical frequency versus coverage. Transforming the k-mer spectrum effectively increases the heights of higher-order peaks, overcoming the effect of high heterozygosity. This increases the signal in the higher-order peaks, especially the homozygous peak, which allows the model to converge. Even for datasets with low heterozygosity and low ploidy, we find fitting to the transformed k-mer spectrum yields accurate results. Consequently, GenomeScope 2.0 now by default fits to the transformed k-mer spectrum, and the mathematical equation for the model used during the nonlinear optimization is adjusted accordingly. After the fitting process, GenomeScope 2.0 outputs the estimated parameters along with four plots of the best fit model overlaying the k-mer spectrum: (1) untransformed linear, (2) untransformed log, (3) transformed linear, and (4) transformed log.

Smudgeplot

GenomeScope 2.0 is able to accurately analyze organisms given a known ploidy. However, in many cases researchers studying a novel organism may not know the ploidy a priori. For this reason, we have implemented Smudgeplot to visualize genome structure and infer ploidy directly from the k-mers present in sequencing reads.

For this method, we take as input the set of sequenced k-mers, such as the k-mer frequency files produced by KMC35 or jellyfish36. Then, we search for all pairs of k-mers that differ at exactly one nucleotide through a systematic scan of all input k-mers. To avoid pairing k-mers produced by sequencing errors with genomic k-mers, we search only those k-mers which exceed a coverage threshold and assume that such k-mers represent real genomic k-mers. Given how many possible k-mers exist for sufficiently large k (e.g., over four trillion for k = 21), it is very unlikely that two independent genomic k-mers will have the same sequence in all but one nucleotide simply by chance. Thus, the two k-mers in a k-mer pair are homologous and can either represent different alleles of the same locus (heterozygous k-mers) or different loci (paralogs, e.g., duplicated genes or transposable elements). In a reasonably heterozygous genome, the signal from heterozygous k-mers will dominate and therefore can be used to generate an estimate of ploidy.

We denote the two k-mers in each k-mer pair as A and B such that the coverage of A (CovA) is always greater than or equal to the coverage of B (CovB). Within every pair, both A and B can be present in one or more genomic copies and therefore CovA+CovB2λ,3λ,4λ,5λ,..., where λ is the monoploid genome coverage. Plotting CovA + CovB versus CovBCovA+CovB will result in each distinct genomic structure projecting on a different position (i.e., “smudge”) in 2D space (see Fig. 7).

Fig. 7. Smudgeplot genomic structure locations.

Fig. 7

Coordinates of individual genomic structures for a genome with monoploid coverage = 100 in a 2D space of coverage sums versus coverage ratios and in b a table of coordinates.

By plotting the total coverage of the k-mer pair, CovA + CovB, versus the relative minor k-mer coverage, CovBCovA+CovB, we can identify individual “smudges” that correspond to different haplotype structures. Due to the Poisson nature of the coverages of each position along the genome that is typical in sequencing experiments, the k-mer pairs will not have the exact coordinates as given in Fig. 7. However, it is usually possible to resolve the smudge to which each pair belongs. Figure 8a shows an ideal case, where the sequencing coverage is sufficient to completely separate all the smudges, providing very strong evidence of triploidy. The brightness of each smudge is determined by the number of k-mer pairs that fall within it.

Fig. 8. Smudgeplots on real datasets.

Fig. 8

Smudgeplots for (a) the triploid root-knot nematode Meloidogyne floridensis and (b) the octaploid strawberry Fragaria×ananassa.

The Smudgeplot estimates of monoploid coverage and ploidy allow users to visualize and discover properties about genomes with high levels of imperfect duplications, various ploidy levels, and high heterozygosity (see Supplementary Methods for details). Smudgeplot provides users with a results table that indicates the number of k-mer pairs that fall within each annotated smudge. We recommend using these values in addition to the ploidy estimate to help determine the structure of the genome. Smudgeplot is a visualization tool that is especially powerful in combination with GenomeScope, as both independently estimate monoploid coverage by exploiting different genomic properties. Notably, Smudgeplot is able to accurately predict that Fragariaxananassa is octaploid (see Fig. 8b).

Supplementary information

Peer Review File (195.1KB, pdf)
Supplementary Data 1 (2.1MB, xlsx)
41467_2020_14998_MOESM4_ESM.pdf (9.3KB, pdf)

Description of Additional Supplementary Files

Acknowledgements

We would like to thank Edward Scheinerman for his thorough explanation of combinatorics topics. We would also like to thank Tanja Schwander and Marc Robinson-Rechavi for their helpful discussions. This work was supported, in part, by NIH grant R01-HG006677 and NSF grants DBI-1350041 and IOS-1732253 to M.C.S. K.S.J. was supported by Swiss National Foundation grant CRSII3_160723. Part of this research project was conducted using computational resources at the Maryland Advanced Research Computing Center (MARCC).

Author contributions

T.R.R.-B. extended the GenomeScope model for polyploid genomes. T.R.R.-B. and K.S.J. conceived and implemented Smudgeplot. M.C.S. supervised the project. All authors wrote the manuscript.

Data availability

Genuine sequencing data are available using the accession codes listed in Supplementary Table 1. The code and parameters used for generating the simulated datasets are available in the GenomeScope 2.0 GitHub repository. The full results of modeling the simulated datasets are available in Supplementary Data 1.

Code availability

All code supporting the current study is deposited in GitHub at https://github.com/tbenavi1/genomescope2.0 and https://github.com/KamilSJaron/smudgeplot. Permanent repositories are available at 10.5281/zenodo.3657798 and 10.5281/zenodo.3658220. We also have a web-enabled version of GenomeScope available at http://genomescope.org/genomescope2.0/.

Competing interests

The authors declare no competing interests.

Footnotes

Peer review information Nature Communications thanks Daniel Zerbino and the other, anonymous, reviewer(s) for their contribution to the peer review of this work. Peer reviewer reports are available.

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary information

Supplementary information is available for this paper at 10.1038/s41467-020-14998-3.

References

  • 1.Meyers LA, Levin DA. On the abundance of polyploids in flowering plants. Evolution. 2006;60:1198–1206. doi: 10.1111/j.0014-3820.2006.tb01198.x. [DOI] [PubMed] [Google Scholar]
  • 2.Renny-Byfield S, Wendel JF. Doubling down on genomes: polyploidy and crop plants. Am. J. Bot. 2014;101:1711–1725. doi: 10.3732/ajb.1400119. [DOI] [PubMed] [Google Scholar]
  • 3.Todd RT, Forche A, Selmecki A. Ploidy variation in fungi: polyploidy, aneuploidy, and genome evolution. Microbiol. Spectr. 2017;5:1–20. doi: 10.1128/microbiolspec.FUNK-0051-2016. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Novikova,  P. Y. et al. Whole genome duplication potentiates inter-specific hybridisation and niche shifts in australian burrowing frogs neobatrachus. https://www.biorxiv.org/content/10.1101/593699v1 (2019).
  • 5.Le Comber SC, Smith C. Polyploidy in fishes: patterns and processes. Biol. J. Linn. Soc. 2004;82:431–442. doi: 10.1111/j.1095-8312.2004.00330.x. [DOI] [Google Scholar]
  • 6.Goldman MA, LoVerde PT, Chrisman CL. Hybrid origin of polyploidy in freshwater snails of the genus bulinus (mollusca: planorbidae) Evolution. 1983;37:592–600. doi: 10.1111/j.1558-5646.1983.tb05576.x. [DOI] [PubMed] [Google Scholar]
  • 7.Szitenberg A, et al. Comparative genomics of apomictic root-knot nematodes: hybridization, ploidy, and dynamic genome change. Genome Biol. Evol. 2017;9:2844–2861. doi: 10.1093/gbe/evx201. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Abad P, et al. Genome sequence of the metazoan plant-parasitic nematode meloidogyne incognita. Nat. Biotechnol. 2008;26:909–915. doi: 10.1038/nbt.1482. [DOI] [PubMed] [Google Scholar]
  • 9.Otto SP. The evolutionary consequences of polyploidy. Cell. 2007;131:452–462. doi: 10.1016/j.cell.2007.10.022. [DOI] [PubMed] [Google Scholar]
  • 10.Baduel P, Bray S, Vallejo-Marin M, Kolář F, Yant L. The “polyploid hop”: shifting challenges and opportunities over the evolutionary lifespan of genome duplications. Front. Ecol. Evol. 2018;6:117. doi: 10.3389/fevo.2018.00117. [DOI] [Google Scholar]
  • 11.Blischak PD, Kubatko LS, Wolfe AD. SNP genotyping and parameter estimation in polyploids using low-coverage sequencing data. Bioinformatics. 2018;34:407–415. doi: 10.1093/bioinformatics/btx587. [DOI] [PubMed] [Google Scholar]
  • 12.Claros MG, et al. Why assembling plant genome sequences is so challenging. Biology. 2012;1:439–459. doi: 10.3390/biology1020439. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Nowell RW, et al. Comparative genomics of bdelloid rotifers: insights from desiccating and nondesiccating species. PLoS Biol. 2018;16:e2004830. doi: 10.1371/journal.pbio.2004830. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Chikhi R, Medvedev P. Informed and automated k-mer size selection for genome assembly. Bioinformatics. 2014;30:31–37. doi: 10.1093/bioinformatics/btt310. [DOI] [PubMed] [Google Scholar]
  • 15.Melsted P, Halldórsson BV. KmerStream: streaming algorithms for k-mer abundance estimation. Bioinformatics. 2014;30:3541–3547. doi: 10.1093/bioinformatics/btu713. [DOI] [PubMed] [Google Scholar]
  • 16.Sun H, Ding J, Piednoël M, Schneeberger K. findGSE: estimating genome size variation within human and arabidopsis using k-mer frequencies. Bioinformatics. 2018;34:550–557. doi: 10.1093/bioinformatics/btx637. [DOI] [PubMed] [Google Scholar]
  • 17.Simpson JT. Exploring genome characteristics and sequence quality without a reference. Bioinformatics. 2014;30:1228–1235. doi: 10.1093/bioinformatics/btu023. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Vurture GW, et al. GenomeScope: fast reference-free genome profiling from short reads. Bioinformatics. 2017;33:2202–2204. doi: 10.1093/bioinformatics/btx153. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Boc A, Diallo AB, Makarenkov V. T-rex: a web server for inferring, validating and visualizing phylogenetic trees and networks. Nucleic Acids Res. 2012;40:W573–W579. doi: 10.1093/nar/gks485. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Scott AD, Stenz NWM, Ingvarsson PK, Baum DA. Whole genome duplication in coast redwood (sequoia sempervirens) and its implications for explaining the rarity of polyploidy in conifers. New Phytol. 2016;211:186–193. doi: 10.1111/nph.13930. [DOI] [PubMed] [Google Scholar]
  • 21.Gutekunst J, et al. Clonal genome evolution and rapid invasive spread of the marbled crayfish. Nat. Ecol. Evol. 2018;2:567–573. doi: 10.1038/s41559-018-0467-9. [DOI] [PubMed] [Google Scholar]
  • 22.The International Wheat Genome Sequencing Consortium. A chromosome-based draft sequence of the hexaploid bread wheat (triticum aestivum) genome. Science. 2014;345:1251788. doi: 10.1126/science.1251788. [DOI] [PubMed] [Google Scholar]
  • 23.Zimin AV, et al. The first near-complete assembly of the hexaploid bread wheat genome, triticum aestivum. GigaScience. 2017;6:1–7. doi: 10.1093/gigascience/gix097. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Endrizzi JE. The diploid-like cytological behavior of tetraploid cotton. Evolution. 1962;16:325–329. doi: 10.1111/j.1558-5646.1962.tb03224.x. [DOI] [Google Scholar]
  • 25.Xu F, et al. Allotetraploid and autotetraploid models of linkage analysis. Brief. Bioinform. 2015;16:32–38. doi: 10.1093/bib/bbt075. [DOI] [PubMed] [Google Scholar]
  • 26.He L, Braz GT, Torres GA, Jiang J. Chromosome painting in meiosis reveals pairing of specific chromosomes in polyploid solanum species. Chromosoma. 2018;127:505–513. doi: 10.1007/s00412-018-0682-9. [DOI] [PubMed] [Google Scholar]
  • 27.Wang M, et al. Reference genome sequences of two cultivated allotetraploid cottons, gossypium hirsutum and gossypium barbadense. Nat. Genet. 2019;51:224–229. doi: 10.1038/s41588-018-0282-x. [DOI] [PubMed] [Google Scholar]
  • 28.Hardigan MA, et al. Genome diversity of tuber-bearing solanum uncovers complex evolutionary history and targets of domestication in the cultivated potato. PNAS. 2017;114:E9999–E10008. doi: 10.1073/pnas.1714380114. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Hardigan MA, et al. Genome reduction uncovers a large dispensable genome and adaptive role for copy number variation in asexually propagated solanum tuberosum. Plant Cell. 2016;28:388–405. doi: 10.1105/tpc.15.00538. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Waterhouse RM, et al. Busco applications from quality assessments to gene prediction and phylogenomics. Mol. Biol. Evol. 2018;35:543–548. doi: 10.1093/molbev/msx319. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Chin C-S, et al. Phased diploid genome assembly with single-molecule real-time sequencing. Nat. Methods. 2016;13:1050–1054. doi: 10.1038/nmeth.4035. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Kelley DR, Schatz MC, Salzberg SL. Quake: quality-aware detection and correction of sequencing errors. Genome Biol. 2010;11:R116. doi: 10.1186/gb-2010-11-11-r116. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Hartl DL, Jones EW. Essential Genetics. Sudbury, MA: Jones and Bartlett Publishers; 1999. [Google Scholar]
  • 34.Rota,  G.-C.  On the foundations of combinatorial theory. Classic Papers in Combinatorics, (eds Gessel, I. & Rota, G.-C.) 332–360 (Birkhäuser Boston, Boston, MA, 1987).
  • 35.Kokot M, Dlugosz M, Deorowicz S. KMC 3: counting and manipulating k-mer statistics. Bioinformatics. 2017;33:2759–2761. doi: 10.1093/bioinformatics/btx304. [DOI] [PubMed] [Google Scholar]
  • 36.Marçais G, Kingsford C. A fast, lock-free approach for efficient parallel counting of occurrences of k-mers. Bioinformatics. 2011;27:764–770. doi: 10.1093/bioinformatics/btr011. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Peer Review File (195.1KB, pdf)
Supplementary Data 1 (2.1MB, xlsx)
41467_2020_14998_MOESM4_ESM.pdf (9.3KB, pdf)

Description of Additional Supplementary Files

Data Availability Statement

Genuine sequencing data are available using the accession codes listed in Supplementary Table 1. The code and parameters used for generating the simulated datasets are available in the GenomeScope 2.0 GitHub repository. The full results of modeling the simulated datasets are available in Supplementary Data 1.

All code supporting the current study is deposited in GitHub at https://github.com/tbenavi1/genomescope2.0 and https://github.com/KamilSJaron/smudgeplot. Permanent repositories are available at 10.5281/zenodo.3657798 and 10.5281/zenodo.3658220. We also have a web-enabled version of GenomeScope available at http://genomescope.org/genomescope2.0/.


Articles from Nature Communications are provided here courtesy of Nature Publishing Group

RESOURCES