Whole-genome duplication (WGD / paleopolyploidy) events shape genome evolution by doubling all genes; subsequent gene loss is biased toward certain functional categories (Birchler & Veitia 2007 Plant Cell 19:395 gene balance hypothesis). Detection combines Ks distribution (synonymous substitution rates among paralog pairs) with synteny block analysis (parallel collinear blocks). The 2024 standard pipeline is wgd v2 (Chen et al 2024 Bioinformatics 40:btae272). For comparing WGDs across lineages, KsRates (Sensalari 2022 Bioinformatics 38:530) is mandatory because substitution rates vary across the tree.
The vertebrate 2R, teleost 3R, and salmonid Ss4R WGDs are well-established; plant WGDs are extremely common (every angiosperm has at least one ancestral WGD).
# wgd v2 + KsRates
pip install wgd ksrates
# DupGen_finder (Perl)
git clone https://github.com/qiao-xin/DupGen_finder
# MCScanX (dependency for wgd syn)
git clone https://github.com/wyp1125/MCScanX && cd MCScanX && make
# Phylogenomic WGD detection
git clone https://bitbucket.org/barker-lab/maps # MAPS
julia -e 'using Pkg; Pkg.add("Whale")' # Whale.jl
# PAML for Ks computation
conda install -c bioconda paml
# R packages for mixture models
Rscript -e "install.packages(c('mclust', 'rmixmod'))"
Tell the AI agent what to do: - "Detect whole-genome duplications in this plant genome using wgd v2 Ks distribution analysis" - "Position the WGD event relative to speciation using KsRates with three outgroup species" - "Classify all paralog pairs as tandem, proximal, transposed, or WGD using DupGen_finder" - "Apply Whale.jl Bayesian DL+WGD modeling with explicit WGD nodes on the species tree"
"Detect WGD events in the Arabidopsis thaliana genome (CDS + protein + GFF provided). Build the paranome with wgd dmd, compute the Ks distribution with wgd ksd, identify synteny anchors with wgd syn, and fit Gaussian mixture models to determine the number of WGD events. Report the inferred age of each WGD peak."
"Compare WGD events in Brassica napus to Arabidopsis thaliana, correcting for substitution rate variation. Use KsRates with at least two outgroup species (Carica papaya and Vitis vinifera). Position the WGD events relative to known speciation events on the Brassicales tree. Determine whether B. napus's WGD predates or postdates the divergence from A. thaliana."
"Place the WGD events on the vertebrate species tree using Whale.jl with native WGD modeling. The species tree should have explicit WGD nodes at the gnathostome (2R) and teleost (3R) ancestors. Report posterior probabilities for each WGD and retention parameters for each. Cross-validate with MAPS phylogenomic placement."
comparative-genomics/synteny-analysis - Synteny-anchored Ks (wgd syn / GENESPACE) comparative-genomics/ortholog-inference - Ortholog detection feeds DupGen / wgd comparative-genomics/gene-tree-species-tree-reconciliation - Whale.jl native WGD modeling comparative-genomics/gene-family-evolution - CAFE5 birth-death across families comparative-genomics/positive-selection - Selection on retained ohnologs post-WGD phylogenetics/divergence-dating - Time-calibrated WGD positioning alignment/multiple-alignment - Codon-aware MSA for Ks genome-assembly/assembly-qc - BUSCO before WGD analysis