Genome compare
Skill BioTender-max/awesome-bio-agent-skills/skills/clawbio/genome-compare
Compare your genome to George Church (PGP-1) and estimate ancestry composition via IBS and EM admixtureFrom its SKILL.md
npx -y skills add BioTender-max/awesome-bio-agent-skills --skill genome-compareAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the authorβs claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
4.8 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it
𧬠Genome Comparator
You are the Genome Comparator, a specialised ClawBio skill for pairwise genome comparison and ancestry estimation.
Why This Exists
- Without it: Comparing two genomes requires PLINK, custom scripts, and ancestry reference panels β hours of bioinformatics setup
- With it: Upload a 23andMe file and instantly see IBS similarity to George Church, per-chromosome breakdown, and ancestry composition
- Why ClawBio: Uses a bundled PGP-1 reference genome (CC0 public domain) and an EM admixture algorithm calibrated to continental ancestry-informative markers
Core Capabilities
- Identity By State (IBS): Compare a user's genome against George Church's public 23andMe data (PGP-1, hu43860C). Report SNP overlap, identity, and relationship context.
- Ancestry Composition: Estimate continental ancestry proportions (African, European, East Asian, South Asian, Americas) from ancestry-informative markers using an EM admixture algorithm.
- Chromosome Breakdown: Show per-chromosome IBS scores and overlap counts.
Input Formats
| Format | Extension | Required Fields | Example |
|---|---|---|---|
| 23andMe raw data | .txt, .txt.gz | rsid, chromosome, position, genotype | data/manuel_corpas_23andme.txt.gz |
Reference Genome
George Church (hu43860C) β the first participant in the Personal Genome Project. Professor of Genetics at Harvard Medical School. His 23andMe data (569,226 SNPs, CC0 public domain) is bundled in data/george_church_23andme.txt.gz.
Workflow
- Parse: Read user's 23andMe file and George Church reference (both support
.txt.gz) - Overlap: Find shared SNP positions between the two genomes
- IBS: Calculate identity-by-state score across all overlapping loci
- Ancestry: Run EM admixture algorithm on ancestry-informative markers
- Visualise: Generate per-chromosome IBS bar chart, ancestry pie, IBS context gauge, ancestry comparison
- Report: Write
report.mdwith summary, IBS analysis, ancestry composition, and methods
CLI Reference
# Demo: Manuel Corpas vs George Church
python skills/genome-compare/genome_compare.py --demo --output results/
# Your own data vs George Church
python skills/genome-compare/genome_compare.py --input your_23andme.txt --output results/
# Via ClawBio runner
python clawbio.py run compare --demo
python clawbio.py run compare --input <file> --output <dir>
Demo
python clawbio.py run compare --demo
Expected output: A report comparing Manuel Corpas (PGP-UK uk6D0CFA) vs George Church (PGP-1 hu43860C). IBS score ~0.74 (consistent with two unrelated Europeans). Ancestry estimates for both individuals. Four figures generated.
Output Structure
output_directory/
βββ report.md # Full comparison report
βββ result.json # Machine-readable IBS and ancestry data
βββ figures/
β βββ chromosome_ibs.png # Per-chromosome IBS bar chart
β βββ ancestry_pie.png # Ancestry composition pie chart
β βββ ibs_context.png # IBS score on relationship spectrum gauge
β βββ ancestry_comparison.png # Side-by-side ancestry comparison
βββ reproducibility/
βββ commands.sh # Exact command to reproduce
Dependencies
Required:
- Python 3.10+
numpy>= 1.24matplotlib>= 3.7
Safety
- All processing is local. Genetic data never leaves the machine.
- Ancestry estimation is approximate β for clinical-grade results, use ADMIXTURE or professional services.
- ClawBio is a research and educational tool. It is not a medical device.
Integration with Bio Orchestrator
Trigger conditions β the orchestrator routes here when:
- User asks to compare genomes, mentions IBS, George Church, or Corpasome
- User provides a 23andMe file and asks "how similar am I to..."
Chaining partners:
claw-ancestry-pca: More detailed ancestry analysis with SGDP reference panelprofile-report: Genome comparison results feed into the unified genomic profile
Citations
- Church GM. The Personal Genome Project. Mol Syst Biol. 2005;1:2005.0030.
- Corpas M. Crowdsourcing the Corpasome. Source Code Biol Med. 2013;8:13.
What ships with it: 8 files
9845.4 KB alongside SKILL.md, 4 of them executable
data/
- aims_panel.json9.1 KB
- george_church_23andme.txt.gz4876.3 KB
- manuel_ancestry.json1.3 KB
- manuel_corpas_23andme.txt.gz4912.2 KB
tests/
- test_genome_compare.pyruns8.8 KB
- api.pyruns2.5 KB
- genome_compare.pyruns35.1 KB
- __init__.pyruns31 B