Ancestry decomposition PCA against the Simons Genome Diversity Project
68%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./skills/claw-ancestry-pca/SKILL.mdPlace your study cohort in global genetic context by computing a joint PCA against the Simons Genome Diversity Project (SGDP) — 345 samples from 164 populations spanning every inhabited continent.
If you ask ChatGPT to "run a PCA against a global reference panel," it will:
This skill encodes the correct methodological decisions:
The skill bundles the SGDP v4 dataset (Mallick et al., 2016, Nature):
python ancestry_pca.py \
--vcf your_cohort.vcf.gz \
--pop-map your_populations.tsv \
--output ancestry_reportpython ancestry_pca.py --demo --output demo_reportThe demo uses pre-computed PCA results from the Peruvian Genome Project (736 samples, 28 populations) and generates the full 4-panel figure instantly.
Ancestry Decomposition PCA
==========================
Cohort: 736 samples, 28 populations
Reference: SGDP (345 samples, 164 populations)
Common variants: 42,831 biallelic SNPs
Variance explained:
PC1: 51.44% PC2: 21.70% PC3: 6.70%
Panel D — Global Context:
Cohort samples cluster between European and East Asian
reference populations, with Amazonian groups showing
distinct positioning from Highland and Coastal groups.
Figures saved to: ancestry_report/
Figure3_PCA_composite.png (300 dpi)
Figure3_PCA_composite.pdf (vector)
Reproducibility:
commands.sh | environment.yml | checksums.sha256<output_dir>/
├── report.md
├── result.json
├── tables/
│ ├── pc_coordinates.csv
│ └── variance_explained.csv
├── figures/
│ └── pca_composite.png # omitted with --no-figures
└── reproducibility/
├── commands.sh # command that reproduces this run
├── environment.yml
└── checksums.sha256 # cd <output_dir> && sha256sum -c reproducibility/checksums.sha256If you use this skill in a publication, please cite:
ClawBio/ClawBio
c7cf52b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.