Tests for inter-population admixture combine site-pattern statistics (ABBA-BABA, f4), tree-topology methods (Dsuite f-branch, QuIBL, Twisst), explicit networks (PhyloNet, qpGraph), and haplotype-based methods (sprime, Relate). The fundamental confounder is incomplete lineage sorting (ILS): a significant Patterson D-statistic is consistent with introgression OR with asymmetric ILS OR with ancestral structure OR with ghost lineages (Eriksson & Manica 2012 PNAS 109:13956).
For publication-grade introgression claims, combine D-statistic with Fbranch mapping (Malinsky 2018), Twisst / QuIBL topology weighting at the locus level, and at least one network method.
# Modern Dsuite
git clone https://github.com/millanek/Dsuite && cd Dsuite && make
# Or: conda install -c bioconda dsuite
# Population-genetics ABBA-BABA + qpAdm
git clone https://github.com/DReichLab/AdmixTools && cd AdmixTools && make
# Modern AdmixTools v2 (R wrapper)
Rscript -e "remotes::install_github('uqrmaie1/admixtools')"
# TreeMix
conda install -c bioconda treemix
# Locus-level topology
git clone https://github.com/miriamtnzr/QuIBL # QuIBL
git clone https://github.com/simonhmartin/twisst # Twisst
# Network methods
git clone https://github.com/NakhlehLab/PhyloNet && cd PhyloNet && mvn package
# Haplotype-based
conda install -c bioconda sprime
# Hybridization-specific
git clone https://github.com/pblischak/HyDe && cd HyDe && pip install -e .
# Optimal migration count
Rscript -e "install.packages('OptM')"
Tell the AI agent what to do: - "Compute Patterson's D-statistic between these populations using Dsuite Dtrios" - "Apply Fbranch to assign admixture signal to specific tree branches" - "Run TreeMix with migration edges and select optimal number with OptM" - "Use sprime to identify archaic introgressed haplotype tracts in modern human populations"
"Test for introgression between Heliconius melpomene and H. cydno using Dsuite Dtrios with H. erato as outgroup. Apply Fbranch mapping. Cross-validate with Twisst topology weighting in 50 kb windows across the genome to identify specific introgressed regions."
"Test if the modern Argentinean population can be modeled as admixed from Spanish + Native American sources using qpAdm rotation. Cross-validate with TreeMix migration edges. Use OptM (Evanno method) to select optimal number of migration edges."
"Identify Neanderthal introgressed haplotype tracts in modern non-African human samples using sprime. Verify that tract lengths cluster around expected size (>50 kb typical for archaic). Compare introgression rates across populations."
comparative-genomics/hgt-detection - Distinguish HGT from hybridization in microbes comparative-genomics/gene-tree-species-tree-reconciliation - Reconciliation alternative for introgression comparative-genomics/synteny-analysis - Per-window topology analysis population-genetics/population-structure - PCA / ADMIXTURE precedes introgression testing population-genetics/selection-statistics - Selection on introgressed regions phylogenetics/species-trees - Coalescent species tree variant-calling/joint-calling - Multi-sample VCF input read-alignment/bwa-alignment - Alignment underlies variant calling