用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/stanfish06/skillquarium --skill claw-ancestry-pca命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
build a repo-local skill and install a matching iterated coding-agent GitHub Actions workflow, prompt, memory file, and reference templates
interview the user to design an agentic control loop (sensor, controller, actuator under disturbances) tailored to their codebase, then build it as locally-runnable components plus a scheduled coding-agent workflow
narrow React component prop types to match live code paths
基于 SOC 职业分类
正在显示 SKILL.md
| name | claw-ancestry-pca |
| description | Ancestry decomposition PCA against the Simons Genome Diversity Project |
| license | MIT |
| metadata | {"version":"0.1.0","author":"Manuel Corpas","tags":["population-genetics","PCA","ancestry","SGDP","global-diversity"],"inputs":[{"name":"vcf","type":"file","format":"[Truncated]","description":"VCF file with genotype data for your study cohort"},{"name":"pop-map","type":"file","format":"[Truncated]","description":"Tab-separated file mapping sample IDs to population labels"}],"outputs":[{"name":"figure","type":"file","format":"png","description":"Multi-panel PCA composite figure showing ancestry decomposition"},{"name":"report","type":"file","format":"markdown","description":"Ancestry analysis report with population assignments and statistics"}],"openclaw":{"category":"bioinformatics","emoji":"🧬","homepage":"https://github.com/ClawBio/ClawBio","os":["darwin","linux"],"min_python":"3.9","dependencies":["pandas","numpy","matplotlib","scikit-learn"],"requires":{"bins":"[Truncated]"},"always":false}} |
Compute a principal-component decomposition of your own cohort's genotypes from a VCF, coloured by population label, and write a report plus a 4-panel figure.
-1 missing)sklearn.decomposition.PCA on that matrixreport.md, result.json, and tables/ with PC coordinates and variance explainedRead these before interpreting the output.
sqrt(p(1-p)), so PCs are not on the standard population-genetics scale.chr1 or 1).The script imports clawbio.common (VCF parsing, checksums, report helpers) from three directory levels above itself, and reads its demo data from examples/. Both come from https://github.com/ClawBio/ClawBio — run this skill from inside a ClawBio checkout, or put clawbio/ and examples/ on that path. Without them the script fails at import.
python ancestry_pca.py \
--input your_cohort.vcf.gz \
--pop-map your_populations.csv \
--output ancestry_report
Omit --output for a text summary on stdout. --pop-map is a CSV/TSV with sample_id and population columns; unmapped samples are labelled UNKNOWN.
python ancestry_pca.py --demo --output demo_report
The demo runs on examples/demo_populations.vcf from the ClawBio checkout — 50 samples, 500 variants, 5 population labels.
Verbatim from --demo:
Parsing VCF...
50 samples, 500 variants
Populations: AFR (n=8), AMR (n=5), EAS (n=7), EUR (n=22), SAS (n=8)
Computing PCA (10 components)...
PC1: 7.6% PC2: 4.9%
Generating figures...
Generating report...
Done.
Report: demo_report/report.md
Figures: demo_report/figures
Written under the output directory:
report.md
result.json
figures/pca_composite.png
tables/pc_coordinates.csv
tables/variance_explained.csv
If you use this skill in a publication, please cite: