claw-ancestry-pca

claw-ancestry-pca is a skill for Claude Code, Codex from AndyZhuang/Opentest. It costs 20 tokens per session (1,195 once invoked), scanned A, a copy of claw-ancestry-pca, MIT.

A genetics analysis that compares study samples with the Simons Genome Diversity Project, a reference collection of 345 samples from 164 populations worldwide, using principal component analysis (PCA) to show genetic patterns.

In plain words
What is it for?
Use it with a VCF file and population map to compare samples, examine population structure, assign reference populations, and create figures and reproducibility files.
Why use it?
It places a study group in a broader global genetic context using a defined reference panel, while producing labelled visual results and an analysis report.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it with a VCF file and population map to compare samples, examine population structure, assign reference populations, and create figures and reproducibility files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andyzhuang/opentest/ancestry-pca
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AndyZhuang/Opentest --skill ancestry-pca
Clone the repo
git clone --depth 1 https://github.com/AndyZhuang/Opentest

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for claw-ancestry-pca

README.md
[![agentmods](https://agentmods.dev/badge/skills/andyzhuang/opentest/ancestry-pca/github.svg)](https://agentmods.dev/skills/andyzhuang/opentest/ancestry-pca)
Your own site
<a href="https://agentmods.dev/skills/andyzhuang/opentest/ancestry-pca"><img src="https://agentmods.dev/badge/skills/andyzhuang/opentest/ancestry-pca/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for claw-ancestry-pca

Your own site · 80×15
<a href="https://agentmods.dev/skills/andyzhuang/opentest/ancestry-pca"><img src="https://agentmods.dev/badge/skills/andyzhuang/opentest/ancestry-pca.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,195 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 95% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.01195
Opus 5 $0.00010 $0.00598
Sonnet 5 $0.00004 $0.00239
Haiku 4.5 $0.00002 $0.00120

Measured 11d ago against content hash 6f2f3a530dc4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

claw-ancestry-pca scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

95% identical to claw-ancestry-pca — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/ancestry-pca/SKILL.md · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

🦖 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)
  7. 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

Read the full file on GitHub · 146 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 146 lines · 20 tokens per session scan A 6f2f3a530dc4

Subscribe to this mod's changes

claw-ancestry-pca is a skill published in the GitHub repository AndyZhuang/Opentest (22 stars, last pushed 6mo ago), licensed MIT. It adds 20 tokens to every session and 1,195 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 95% identical to claw-ancestry-pca, differing in 4 lines, and is treated as a copy.

Related

Other skills, from other repositories

claw-ancestry-pca

Ancestry decomposition PCA against the Simons Genome Diversity Project.

aAAaqwq/AGI-Super-Team · 20 tokens

genomic-variants

Analysis of called genomic variants — filtering, annotation, GWAS, and population-genetics summaries from VCF and PLINK-format data.

inflexa-ai/inflexa · 31 tokens

spatial-preprocess

Load when running the foundational spatial transcriptomics QC + filtering + normalisation + HVG + PCA + neighbour-graph + Leiden pipeline on a Visium / Xenium / generic spatial AnnData. Skip when raw FASTQs need converting first (use spatial-raw-processing); tissue-domain detection on already-preprocessed data (use…

TianGzlab/OmicsClaw · 73 tokens

metabolomics-de

Load when running two-group metabolomics DE (t-test + log2FC + BH-FDR + PCA) on a feature × sample CSV using --group-a-prefix / --group-b-prefix (default ctrl / treat). Skip when needing tunable test backends (use metabolomics-statistics); raw spectra.

TianGzlab/OmicsClaw · 75 tokens

sc-preprocessing

Load when normalising QC'd scRNA into a PCA-ready AnnData via scanpy / Seurat / SCTransform / Pearson residuals. Skip when QC thresholds are still undecided (use sc-qc); batch correction across samples (use sc-batch-integration).

TianGzlab/OmicsClaw · 58 tokens

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens