Agent skill · Testing & QA

bio-comparative-genomics-introgression-detection

Detect introgression and admixture between species or populations using Dsuite (Malinsky 2021 fast D-statistics), Patterson's D / ABBA-BABA test (Green 2010; Durand 2011), f4-ratio and f-branch statistic (Malinsky 2018), TreeMix (Pickrell & Pritchard 2012), HyDe (Blischak 2018), QuIBL (Edelman 2019), sprime (Browning 2018), Twisst (Martin 2017), PhyloNet (Solis-Lemus 2017) for explicit phylogenetic networks, and qpAdm / qpGraph (Patterson 2012; Lipson 2013). Distinguish introgression from incomplete lineage sorting (ILS), ancestral structure, ghost-lineage admixture, and rate variation. Use wh

BioTender-maxgithub.com/BioTender-maxGitHub ↗
claude-codeships scriptsNOASSERTION
Install
npx skills add BioTender-max/awesome-bio-agent-skills --skill introgression-detection --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 3
SKILL.md size: 32 KB
Bundled scripts: yes
Path: skills/bioskills/introgression-detection/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 135
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

## Version Compatibility Reference examples tested with: Dsuite 0.5+ (millanek/Dsuite; Malinsky 2021 Mol Ecol Res 21:584; ABBAclustering option from Koppetsch-Malinsky-Matschiner 2024 Syst Biol), HyDe 0.4.3+ (Blischak 2018 Syst Biol 67:821), QuIBL (Edelman 2019 Science 366:594), TreeMix 1.13+ (Pickrell & Pritchard 2012 PLoS Genet 8:e1002967), sprime (Browning 2018 Cell 173:53), Twisst (Martin & Van Belleghem 2017 Genetics 206:429), PhyloNet 3.8.2+ (NakhlehLab/PhyloNet; Than-Ruths-Nakhleh 2008 BMC Bioinf 9:322) and PhyloNetworks 0.16+ (JuliaPhylo/PhyloNetworks; Solis-Lemus & Ane 2017 PLoS Comp Biol 13:e1005485), qpAdm / qpGraph (AdmixTools v2.0+; Maier 2023), ADMIXTOOLS2 R wrapper (Maier 2023 eLife 12:e85492), MaCS-like simulators (msprime 1.3+ for testing), bcftools 1.21+, samtools 1.21+, vcftools 0.1.16+, R 4.4+. See upstream Dsuite docs for visualization helpers. Before using code patterns, verify installed versions match. If versions differ: - CLI: `Dsuite --version`; `treemix --help`; `qpDstat --help` (AdmixTools) - Python: `pip show msprime hyde` - R: `packageVersion('admixtools')` If code throws `Dsuite SETS file format error`, `TreeMix matrix singular`, `qpAdm rotation faile

What's inside
Steps it walks through
  1. Version Compatibility
  2. Algorithmic Taxonomy
  3. Decision Tree by Experimental Scenario
  4. Per-Method Failure Modes
  5. ILS confounded with introgression in D-statistic
  6. Ghost lineage admixture mimicking signal
  7. Ancestral structure (population subdivision before admixture)
  8. Outgroup-distance effect on D-statistic
  9. Sample-size bias in D-statistic
  10. TreeMix migration-edge selection
  11. qpAdm rotation failures
  12. Multiple-testing correction across population trios
  13. Genomic-window choice in Twisst / QuIBL
  14. Phylogenetic network not unique
Ships with 2 files
  • examples/dsuite_abba_baba_workflow.sh
  • usage-guide.md
Commands it runs
cat > SETS.tsv << 'EOF'
Real CLI flags (verify with `Dsuite Dtrios --help` against installed version):
Fbranch is its own subcommand (`Dsuite Fbranch`); no Dtrios flag toggles it.
Dsuite Dtrios \
population_genotypes.vcf.gz \
SETS.tsv
Dsuite Fbranch species_tree.nwk trios_run_tree.txt > trios_run_fbranch.txt
Implementation specifics depend on the Dsuite branch / fork distributing the ABBAclustering option;
consult the Koppetsch 2024 supplement and `Dsuite --help` for current invocation. The option may
be exposed as a subcommand or per-trio flag rather than a global Dtrios switch.
More from awesome-bio-agent-skills
All skills →
About this skill
What does the bio-comparative-genomics-introgression-detection skill do?

Detect introgression and admixture between species or populations using Dsuite (Malinsky 2021 fast D-statistics), Patterson's D / ABBA-BABA test (Green 2010; Durand 2011), f4-ratio and f-branch statistic (Malinsky 2018), TreeMix (Pickrell & Pritchard 2012), HyDe (Blischak 2018), QuIBL (Edelman 2019), sprime (Browning 2018), Twisst (Martin 2017), PhyloNet (Solis-Lemus 2017) for explicit phylogenetic networks, and qpAdm / qpGraph (Patterson 2012; Lipson 2013). Distinguish introgression from incomplete lineage sorting (ILS), ancestral structure, ghost-lineage admixture, and rate variation. Use wh

How do I install it?

Run `npx skills add BioTender-max/awesome-bio-agent-skills --skill introgression-detection --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From BioTender-max/awesome-bio-agent-skills, a repository with 135 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going