Skip to content
Agentmart
Submit a tool

archaic-introgression

Detect Neanderthal and Denisovan introgression segments from modern human genomes

Skill by Manuel Corpas

IndexedMIT★ 1,166
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/clawbio-archaic-introgression

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Detect Neanderthal and Denisovan introgression segments from modern human genomes

Use cases: data-analysis

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/archaic-introgression

What's inside

Skill name
archaic-introgression
Description
Detect Neanderthal and Denisovan introgression segments from modern human genomes
License
MIT
Metadata
author: Manuel Corpas · domain: genomics · version: 0.1.0
Instructions
183 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (8)

  • SKILL.md
  • archaic_introgression.py
  • demo_archaic.vcf · examples/
  • demo_modern.vcf · examples/
  • pipeline.py
  • __init__.py · tests/
  • test_archaic_introgression.py · tests/
  • test_pipeline.py · tests/

SKILL.md (first lines)

# Archaic Introgression Detector

## Trigger

**Fire when:**
- User asks about Neanderthal or Denisovan DNA in modern humans
- User wants to detect archaic introgression segments
- User mentions IBDmix, Sprime, or hmmix methods
- User has modern + archaic VCF files and wants to compare them

**Do NOT fire when:**
- User asks about general ancestry or population structure (use claw-ancestry-pca)
- User asks about pharmacogenomics or clinical variants
- User wants admixture proportions without segment-level detail

## Why This Exists

Between 1-4% of non-African modern human genomes derive from archaic hominins
(Neanderthals, Denisovans). Identifying these segments matters for understanding
human evolution, disease susceptibility, and immune adaptation. Three complementary
methods exist (IBDmix, Sprime, hmmix), each with different strengths. This skill
wraps all three behind a unified interface with a pure-Python fallback when
external binaries are unavailable.

## Core Capabilities

1. **IBDmix**: Detect segments shared IBD between modern and archaic genomes using LOD score thresholds
2. **Sprime**: Identify introgressed haplotypes without requiring an archaic reference panel
3. **hmmix**: HMM-based detection of archaic ancestry tracts
4. **Pure-Python fallback**: LOD-score-based segment calling when IBDmix binary is not installed
5. **EIGENSTRAT support**: Read .ind/.snp/.geno files (text and binary packed formats)
6. **Summary statistics**: Per-individual introgression burden, segment count, mean length

## Scope

One skill, one task: detect and report archaic introgression segments. Does not
perform downstream functional annotation of introgressed variants (chain with
vcf-annotator for that).

## Input Formats

- **Modern genotypes**: VCF (uncompressed or .vcf.gz with .tbi index)
- **Archaic genotypes**: VCF (Neanderthal/Denisovan reference panel)
- **EIGENSTRAT**: .ind + .snp + .geno files (text or binary packed format)

## Workflow

1. Parse modern VCF to extract sample names and genotype matrix (numpy array)
2. Parse archaic VCF to extract reference genotypes at matching positions
3. Identify shared variant positions between modern and archaic panels
4. Run selected method (IBDmix / Sprime / hmmix) or pure-Python LOD fallback
5. Collect IntrogressionSegment results per sample
6. Compute per-individual summary statistics
7. Write JSON report and optional BED file

## CLI Reference

```bash
# Run with IBDmix on VCF inputs
python archaic_introgression.py \
  --input modern.vcf --archaic archaic.vcf \
  --method ibdmix --output /tmp/introgression

# Run demo with synthetic data
python archaic_introgression.py --demo --output /tmp/introgression_demo

# Filter to specific samples
python archaic_introgression.py \
  --input modern.vcf --archaic archaic.vcf \
  --samples SAMPLE01,SAMPLE02 --output /tmp/introgression

# Adjust LOD threshold
python archaic_introgression.py \
  --input modern.vcf --archaic archaic.vcf \
  --lod 5.0 --output /tmp/introgression
```

## Demo

```bash
python archaic_introgression.py --demo --output /tmp/introgression_demo
```

Runs on bundled `examples/demo_modern.vcf` (3 samples, 10 SNPs on chr22) and
`examples/demo_archaic.vcf` (1 Neanderthal sample, same positions).

## Example Queries

- "How much Neanderthal DNA do I have?"
- "Detect archaic introgression in my VCF"
- "Run IBDmix on my genotype data"
- "Show me introgressed segments from Denisova"
- "Compare my genome against the Vindija Neanderthal"

## Output Structure

```
output_dir/
  introgression_results.json   # Full results with segments and summary
  segments.bed                 # BED file of introgressed regions
  reproducibility/
    commands.sh                # Command that reproduces this run
    environment.yml            # Conda environment (python, numpy)
    checksums.sha256           # SHA-256 of outputs; verify with sha256sum -c
```

### JSON structure

```json
{
  "method": "ibdmix",
  "lod_threshold": 3.0,
  "num_samples": 3,
  "segments": [
    {
      "sample": "SAMPLE01",
      "chrom": "chr22",
      "start": 16050075,
      "end": 16051249,

From ClawBio/ClawBio, MIT.

More from ClawBio/ClawBio

Signals

Stars
1,166
Forks
288
Open issues
27
Last commit (this folder)
Oct 11, 2026 (16 days ago)
Last release
Sep 11, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
0.1.0
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from Manuel Corpas

Cite this page

archaic-introgression skill. Agent Mart. https://agentmart.dev/skills/clawbio-archaic-introgression (last updated 2026-10-24)