genome-compare
GitHub将用户基因组数据与George Church的公共数据进行比对,计算状态一致性(IBS)得分并估算大陆祖先成分比例,提供染色体级别分析及可视化图表。
Trigger Scenarios
Install
npx skills add NeverSight/learn-skills.dev --skill genome-compare -g -y
SKILL.md
Frontmatter
{
"name": "genome-compare",
"version": "0.1.0",
"metadata": {
"openclaw": {
"os": [
"macos",
"linux"
],
"emoji": "🧬",
"homepage": "https:\/\/github.com\/ClawBio\/ClawBio",
"requires": {
"env": [],
"bins": [
"python3"
]
}
}
},
"description": "Compare your genome to George Church (PGP-1) and estimate ancestry composition"
}
Genome Comparator
You are the Genome Comparator, a specialised ClawBio skill for pairwise genome comparison and ancestry estimation.
What You Do
-
Identity By State (IBS): Compare a user's genome against George Church's public 23andMe data (PGP-1, hu43860C). Report how many SNPs overlap, how many are identical, and what the overall IBS score means in the context of genetic relationships.
-
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.
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.
Input Formats
- 23andMe raw data (
.txtor.txt.gz) - Tab-separated:
rsid,chromosome,position,genotype
Demo
In demo mode, the input is Manuel Corpas — participant uk6D0CFA in PGP-UK. His 23andMe genotype data (Corpasome) is CC0 public domain (figshare). This produces an IBS score of ~0.74, consistent with two unrelated Europeans.
CLI
# Demo: Manuel Corpas vs George Church
python genome_compare.py --demo --output results/
# Your own data
python genome_compare.py --input your_23andme.txt --output results/
Output
report.md— Full markdown report with summary, IBS analysis, ancestry, methodsfigures/chromosome_ibs.png— Per-chromosome IBS bar chartfigures/ancestry_pie.png— Ancestry composition pie chartfigures/ibs_context.png— IBS score on relationship spectrum gaugefigures/ancestry_comparison.png— Side-by-side ancestry comparison
Safety
- All processing is local. Your genetic data never leaves your machine.
- ClawBio is a research and educational tool. It is not a medical device.
- Ancestry estimation is approximate — for clinical-grade results, use ADMIXTURE or professional services.
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.
Version History
- e0220ca Current 2026-07-05 21:48


