Skip to content
naulon

No retraction, correction or concern found when last checked on Oct 19, 2026.

wgd—simple command line tools for the analysis of ancient whole-genome duplications

Arthur Zwaenepoel, Yves Van de Peer

Bioinformatics · 2018 · CC BY

doi:10.1093/bioinformatics/bty915

Abstract

Summary. Ancient whole-genome duplications (WGDs) have been uncovered in almost all major lineages of life on Earth and the search for traces or remnants of such events has become standard practice in most genome analyses. This is especially true for plants, where ancient WGDs are abundant. Common approaches to find evidence for ancient WGDs include the construction of KS distributions and the analysis of intragenomic colinearity. Despite the increased interest in WGDs and the acknowledgment of their evolutionary importance, user-friendly and comprehensive tools for their analysis are lacking. Here, we present an easy to use command-line tool for KS distribution construction named wgd. The wgd suite provides commonly used KS and colinearity analysis workflows together with tools for modeling and visualization, rendering these analyses accessible to genomics researchers in a convenient manner.

Availability and implementation. wgd is free and open source software implemented in Python and is available at https://github.com/arzwa/wgd.

Supplementary information. Supplementary data are available at Bioinformatics online.

Full text

From PubMed Central, U.S. National Library of Medicine, as current on Oct 19, 2026. Paragraph numbers are ours, so an answer can point at one.

1 Introduction

In this era of whole-genome sequencing, many ancient whole-genome duplication (WGD) events have been uncovered across the eukaryotic tree of life. One of the main approaches for revealing ancient WGDs using genomic data is the construction of whole paranome KS distributions (e.g.;;; ), where KS is the synonymous distance or the estimated number of synonymous substitutions per synonymous site. Under the assumption of neutral evolution at synonymous sites, the synonymous distance between two coding sequences serves as a proxy for the divergence time of two sequences. Under a model of continuous small-scale gene duplication (SSD) and loss of duplicated copies not under selection, a whole paranome KS distribution is expected to show an exponential decay of the number of retained duplicates in function of age. Against this background of SSDs, large-scale duplication events, such as WGDs, are visible as peaks in the number of retained duplicates at a particular age.

Several issues compromise the use of KS distributions for WGD inference, and these were extensively addressed in. When high-quality genome assemblies are available, gene colinearity (often called synteny) based analyses may further aid in unveiling WGDs or large segmental duplications. WGDs are expected to leave large blocks with high intragenomic colinearity, and paralogs located in such colinear segments (anchor pairs) can therefore be traced back more reliably to a particular event, enabling their use for downstream analyses such as molecular dating or functional analysis.

While these methods have been used frequently in genomics research, no comprehensive and user-friendly software is available to perform these analyses, and researchers have often resorted to custom pipelines. Here, we fill this gap with an integrated suite for KS and colinearity based analysis of ancient WGDs. We briefly discuss the methods implemented here, but refer to the documentation and Supplementary Material for more information.

2.1 Gene family delineation

Delineation of paralogous gene families and one-to-one orthologs starts from all-versus-all BLASTp similarity searches or precomputed BLAST results and is performed using ‘wgd mcl’. For whole paranome delineation, MCL is then used to cluster sequences in paralogous gene families. One-to-one orthologs are determined using the commonly employed reciprocal best hit strategy.

2.2 KS distribution construction

A KS distribution for a set of paralogous families or one-to-one orthologs can be constructed using the ‘wgd ksd’ subcommand, and we closely follow the approach used by. We refrain from a full description of the methodology here and refer to the Supplementary Material instead.

2.3 Colinearity analyses

When high-quality structural genome annotations are available, the ‘wgd syn’ tool allows the identification of intragenomic colinear blocks and their corresponding anchor pairs using I-ADHoRe 3.0. Whole-genome syntenic dotplots are generated, and if a KS distribution is provided, KS-colored dotplots and anchor pair KS distributions are generated (Fig. 1).

2.4 Kernel density estimation and mixture modeling

Downstream analyses of KS distributions have often consisted in fitting statistical models and visualizing these. We provide tools (‘wgd kde’) for fitting kernel density estimates (KDEs). Importantly, we apply a correction for boundary effects, which are often neglected but may lead to artificial peaks in low KS regions. As peaks derived from WGDs are expected to be approximately log-normally distributed, Gaussian mixture models (GMMs) have also been used frequently to analyze KS distributions. We provide tools (‘wgd mix’) for fitting mixtures of log-normal components using different inference algorithms, implemented using the scikit-learn python library. Common approaches to determine the optimal number of components are provided, using the Akaike or Bayesian information criterion, however we would like to warn prospective users to carefully interpret ‘significant’ components, as these GMMs may strongly overfit the empirical distribution.

2.5 Interactive visualization

Lastly, we provide tools for (interactive) visualization of histograms and KDEs in ‘wgd viz’ (Fig. 1). These tools allow visualization of multiple KS distributions for comparative purposes as well as modification of key visualization parameters such as the histogram bin-width or the KDE bandwidth. We encourage researchers to modify and explore the influence of these to guide careful analysis of the distributions and to prevent misinterpretations of KDE or histogram artifacts as biologically interesting features.

3 Conclusion

We provide, to our knowledge, the first comprehensive toolshed for KS and colinearity based analysis of WGDs in an easy to use and freely available package named wgd. We hope that, besides being a useful tool for researchers, it will also aid in preventing common pitfalls and misinterpretations when analyzing putative WGDs in genomic data.

Funding

This work was supported by the European Union Seventh Framework Programme (FP7/2007-2013) under European Research Council Advanced Grant Agreement 322739—DOUBLEUP [to Y.V.d.P]; and a PhD Fellowship of the Research Foundation—Flanders (FWO) [to A.Z.].

Conflict of Interest: none declared.

References 11

  1. 1.

    Blanc G., Wolfe K.H. (2004 ) Widespread paleopolyploidy in model plant species inferred from age distributions of duplicate genes. Plant Cell, 16, 1667–1678.

    Not in our library10.1105/tpc.021345

  2. 2.

    Cui L. et al (2006 ) Widespread genome duplications throughout the history of flowering plants. Genome Res., 16, 738–749.

    Not in our library10.1101/gr.4825606

  3. 3.

    Lynch M., Conery J.S. (2000 ) The evolutionary fate and consequences of duplicate genes. Science, 290, 1151–1155.

    Not in our library10.1126/science.290.5494.1151

  4. 4.

    Pedregosa F. et al (2011 ) Scikit-learn: machine learning in Python. J. Mach. Learn. Res., 12, 2825–2830.

    Not in our library

  5. 5.

    Proost S. et al (2012 ) i-ADHoRe 3.0: fast and sensitive detection of genomic homology in extremely large data sets. Nucleic Acids Res., 40, e11.

    Not in our library10.1093/nar/gkr955

  6. 6.

    Tiley G.P. et al (2018 ) Assessing the performance of Ks plots for detecting ancient whole genome duplications. Genome Biol. Evol., 10, 2882–2898.

    Not in our library10.1093/gbe/evy200

  7. 7.

    Van de Peer Y. (2004 ) Computational approaches to unveiling ancient genome duplications. Nat. Rev. Genet., 5, 752–763.

    Not in our library10.1038/nrg1449

  8. 8.

    Van de Peer Y. et al (2017 ) The evolutionary significance of polyploidy. Nat. Rev. Genet., 18, 411–424.

    Not in our library10.1038/nrg.2017.26

  9. 9.

    van Dongen S. (2000 ) Graph Clustering by Flow Simulation. PhD Thesis, University of Utrecht, Utrecht, The Netherlands.

    Not in our library

  10. 10.

    Vanneste K. et al (2013 ) Inference of genome duplications from age distributions revisited. Mol. Biol. Evol., 30, 177–190.

    Not in our library10.1093/molbev/mss214

  11. 11.

Cited by papers we hold 2

Reads

Read by people on this page

None yet.

Checked or read by AI through naulon

None yet.

A person counts once a day per paper. We keep no cookie and no address: a reader is a hash that changes every day. Any month under five reads shows no number.

Are you an author?

Is this your paper?

Claim it to add your note and be paid when agents cite it. Free.