AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Claw Ancestry Pca

skill-clawbio-clawbio-claw-ancestry-pca · by ClawBio

Ancestry decomposition PCA against the Simons Genome Diversity Project

No reviews yet
0 installs
3 views
0.0% view→install

Install

$ agentstack add skill-clawbio-clawbio-claw-ancestry-pca

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-clawbio-clawbio-claw-ancestry-pca)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Claw Ancestry Pca? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

🦖 Ancestry Decomposition PCA

Place 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.

What it does

  1. Takes your VCF + population map as input
  2. Finds common variants between your cohort and the SGDP reference panel (bundled)
  3. Runs PLINK PCA on the merged dataset
  4. Separates your cohort from SGDP reference samples
  5. Matches SGDP samples to their population labels (164 populations)
  6. Generates a publication-quality multi-panel figure:
  • Panel A: PC1 vs PC2 — main population structure of your cohort
  • Panel B: PC3 vs PC2 with regional groupings and confidence ellipses
  • Panel C: PC3 vs PC1 with language/cultural groupings
  • Panel D: Global context — your samples (circles) vs SGDP (triangles)
  1. Produces a markdown report with variance explained, population assignments, and reproducibility bundle

Why this exists

If you ask ChatGPT to "run a PCA against a global reference panel," it will:

  • Not know which reference panel to use
  • Hallucinate PLINK flags for merging datasets with different variant sets
  • Skip IBD removal (related individuals distort PCA)
  • Not normalise contig names between your VCF and the reference
  • Produce a single scatter plot with no population labels

This skill encodes the correct methodological decisions:

  • Uses SGDP (the gold-standard reference for global diversity)
  • Handles contig normalisation (chr1 vs 1)
  • Filters to common biallelic SNPs shared between datasets
  • Removes related individuals via IBD checks
  • Produces publication-quality multi-panel figures with confidence ellipses
  • Differentiates your samples (circles) from reference (triangles)

Reference Panel

The skill bundles the SGDP v4 dataset (Mallick et al., 2016, Nature):

  • 345 samples from 164 populations
  • Whole-genome sequencing at high coverage
  • MAF > 0.1% filter applied
  • Populations span: Africa, Americas, Central/South Asia, East Asia, Europe, Middle East, Oceania

Usage

python ancestry_pca.py \
    --vcf your_cohort.vcf.gz \
    --pop-map your_populations.tsv \
    --output ancestry_report

Demo (works out of the box)

python ancestry_pca.py --demo --output demo_report

The demo uses pre-computed PCA results from the Peruvian Genome Project (736 samples, 28 populations) and generates the full 4-panel figure instantly.

Example Output

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

Interpretation Guide

  • PC1 typically captures the largest axis of global differentiation (often Africa vs non-Africa)
  • PC2 separates major continental groups (Europe, East Asia, Americas)
  • PC3 often reveals finer substructure within continental groups
  • Confidence ellipses show 2.5 standard deviations around each population cluster
  • Your samples shown as circles, SGDP reference as triangles

Citation

If you use this skill in a publication, please cite:

  • Mallick, S. et al. (2016). The Simons Genome Diversity Project. Nature, 538, 201-206.
  • Corpas, M. (2026). ClawBio. https://github.com/ClawBio/ClawBio

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.