[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DNJ1RPBG030TDT98RJWPSN":3,"skill-same:01M6DNJ1RPBG030TDT98RJWPSN":112},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":87,"commitSha":88,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":89,"repositoryHomepageUrl":6,"ownerHtmlUrl":90,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":91,"install":92,"resources":105},"01M6DNJ1RPBG030TDT98RJWPSN","claw-ancestry-pca",null,"Ancestry decomposition PCA against the Simons Genome Diversity Project","huamu668\u002Fclawhub-openclaw-medical","huamu668","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F202473531?v=4","01M6DK1V7D7VP9PJ06Z1VXVK13","huamu","01M6DK1VBYG1BX5FT154AFZHAS",0,"MIT","https:\u002F\u002Fgithub.com\u002Fhuamu668\u002Fclawhub-openclaw-medical\u002Fblob\u002Fmain\u002Fclaw-ancestry-pca\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000002","文档处理","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"claw","claw ancestry pca","genetics","PDF","global-diversity","SGDP","ancestry","PCA","population-genetics","statistics","scikit-learn","learn","diversity","project","map","study","analysis","ids","file","pandas","2026-11-10 10:12:30",false,"---\nname: claw-ancestry-pca\nversion: 0.1.0\ndescription: Ancestry decomposition PCA against the Simons Genome Diversity Project\nauthor: Manuel Corpas\nlicense: MIT\ntags:\n  - population-genetics\n  - PCA\n  - ancestry\n  - SGDP\n  - global-diversity\ninputs:\n  - name: vcf\n    type: file\n    format: [vcf, vcf.gz]\n    description: VCF file with genotype data for your study cohort\n  - name: pop-map\n    type: file\n    format: [tsv, txt]\n    description: Tab-separated file mapping sample IDs to population labels\noutputs:\n  - name: figure\n    type: file\n    format: [png, pdf]\n    description: Multi-panel PCA composite figure showing ancestry decomposition\n  - name: report\n    type: file\n    format: markdown\n    description: Ancestry analysis report with population assignments and statistics\nmetadata:\n  openclaw:\n    category: bioinformatics\n    homepage: https:\u002F\u002Fgithub.com\u002FClawBio\u002FClawBio\n    min_python: \"3.9\"\n    dependencies:\n      - pandas\n      - numpy\n      - matplotlib\n      - scikit-learn\n      - adjustText\n    system_dependencies:\n      - plink\n      - bcftools\n---\n\n# ? Ancestry Decomposition PCA\n\nPlace 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.\n\n## What it does\n\n1. Takes your VCF + population map as input\n2. Finds common variants between your cohort and the SGDP reference panel (bundled)\n3. Runs PLINK PCA on the merged dataset\n4. Separates your cohort from SGDP reference samples\n5. Matches SGDP samples to their population labels (164 populations)\n6. Generates a publication-quality multi-panel figure:\n   - **Panel A**: PC1 vs PC2 — main population structure of your cohort\n   - **Panel B**: PC3 vs PC2 with regional groupings and confidence ellipses\n   - **Panel C**: PC3 vs PC1 with language\u002Fcultural groupings\n   - **Panel D**: Global context — your samples (circles) vs SGDP (triangles)\n7. Produces a markdown report with variance explained, population assignments, and reproducibility bundle\n\n## Why this exists\n\nIf you ask ChatGPT to \"run a PCA against a global reference panel,\" it will:\n- Not know which reference panel to use\n- Hallucinate PLINK flags for merging datasets with different variant sets\n- Skip IBD removal (related individuals distort PCA)\n- Not normalise contig names between your VCF and the reference\n- Produce a single scatter plot with no population labels\n\nThis skill encodes the correct methodological decisions:\n- Uses SGDP (the gold-standard reference for global diversity)\n- Handles contig normalisation (chr1 vs 1)\n- Filters to common biallelic SNPs shared between datasets\n- Removes related individuals via IBD checks\n- Produces publication-quality multi-panel figures with confidence ellipses\n- Differentiates your samples (circles) from reference (triangles)\n\n## Reference Panel\n\nThe skill bundles the SGDP v4 dataset (Mallick et al., 2016, Nature):\n- 345 samples from 164 populations\n- Whole-genome sequencing at high coverage\n- MAF > 0.1% filter applied\n- Populations span: Africa, Americas, Central\u002FSouth Asia, East Asia, Europe, Middle East, Oceania\n\n## Usage\n\n```bash\npython ancestry_pca.py \\\n    --vcf your_cohort.vcf.gz \\\n    --pop-map your_populations.tsv \\\n    --output ancestry_report\n```\n\n### Demo (works out of the box)\n\n```bash\npython ancestry_pca.py --demo --output demo_report\n```\n\nThe demo uses pre-computed PCA results from the Peruvian Genome Project (736 samples, 28 populations) and generates the full 4-panel figure instantly.\n\n## Example Output\n\n```\nAncestry Decomposition PCA\n==========================\nCohort: 736 samples, 28 populations\nReference: SGDP (345 samples, 164 populations)\nCommon variants: 42,831 biallelic SNPs\n\nVariance explained:\n  PC1: 51.44%  PC2: 21.70%  PC3: 6.70%\n\nPanel D — Global Context:\n  Cohort samples cluster between European and East Asian\n  reference populations, with Amazonian groups showing\n  distinct positioning from Highland and Coastal groups.\n\nFigures saved to: ancestry_report\u002F\n  Figure3_PCA_composite.png (300 dpi)\n  Figure3_PCA_composite.pdf (vector)\n\nReproducibility:\n  commands.sh | environment.yml | checksums.sha256\n```\n\n## Interpretation Guide\n\n- **PC1** typically captures the largest axis of global differentiation (often Africa vs non-Africa)\n- **PC2** separates major continental groups (Europe, East Asia, Americas)\n- **PC3** often reveals finer substructure within continental groups\n- Confidence ellipses show 2.5 standard deviations around each population cluster\n- Your samples shown as **circles**, SGDP reference as **triangles**\n\n## Citation\n\nIf you use this skill in a publication, please cite:\n\n- Mallick, S. et al. (2016). The Simons Genome Diversity Project. Nature, 538, 201-206.\n- Corpas, M. (2026). ClawBio. https:\u002F\u002Fgithub.com\u002FClawBio\u002FClawBio\n","# ? Ancestry Decomposition PCA\n\nPlace 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.\n\n## What it does\n\n1. Takes your VCF + population map as input\n2. Finds common variants between your cohort and the SGDP reference panel (bundled)\n3. Runs PLINK PCA on the merged dataset\n4. Separates your cohort from SGDP reference samples\n5. Matches SGDP samples to their population labels (164 populations)\n6. Generates a publication-quality multi-panel figure:\n   - **Panel A**: PC1 vs PC2 — main population structure of your cohort\n   - **Panel B**: PC3 vs PC2 with regional groupings and confidence ellipses\n   - **Panel C**: PC3 vs PC1 with language\u002Fcultural groupings\n   - **Panel D**: Global context — your samples (circles) vs SGDP (triangles)\n7. Produces a markdown report with variance explained, population assignments, and reproducibility bundle\n\n## Why this exists\n\nIf you ask ChatGPT to \"run a PCA against a global reference panel,\" it will:\n- Not know which reference panel to use\n- Hallucinate PLINK flags for merging datasets with different variant sets\n- Skip IBD removal (related individuals distort PCA)\n- Not normalise contig names between your VCF and the reference\n- Produce a single scatter plot with no population labels\n\nThis skill encodes the correct methodological decisions:\n- Uses SGDP (the gold-standard reference for global diversity)\n- Handles contig normalisation (chr1 vs 1)\n- Filters to common biallelic SNPs shared between datasets\n- Removes related individuals via IBD checks\n- Produces publication-quality multi-panel figures with confidence ellipses\n- Differentiates your samples (circles) from reference (triangles)\n\n## Reference Panel\n\nThe skill bundles the SGDP v4 dataset (Mallick et al., 2016, Nature):\n- 345 samples from 164 populations\n- Whole-genome sequencing at high coverage\n- MAF > 0.1% filter applied\n- Populations span: Africa, Americas, Central\u002FSouth Asia, East Asia, Europe, Middle East, Oceania\n\n## Usage\n\n```bash\npython ancestry_pca.py \\\n    --vcf your_cohort.vcf.gz \\\n    --pop-map your_populations.tsv \\\n    --output ancestry_report\n```\n\n### Demo (works out of the box)\n\n```bash\npython ancestry_pca.py --demo --output demo_report\n```\n\nThe demo uses pre-computed PCA results from the Peruvian Genome Project (736 samples, 28 populations) and generates the full 4-panel figure instantly.\n\n## Example Output\n\n```\nAncestry Decomposition PCA\n==========================\nCohort: 736 samples, 28 populations\nReference: SGDP (345 samples, 164 populations)\nCommon variants: 42,831 biallelic SNPs\n\nVariance explained:\n  PC1: 51.44%  PC2: 21.70%  PC3: 6.70%\n\nPanel D — Global Context:\n  Cohort samples cluster between European and East Asian\n  reference populations, with Amazonian groups showing\n  distinct positioning from Highland and Coastal groups.\n\nFigures saved to: ancestry_report\u002F\n  Figure3_PCA_composite.png (300 dpi)\n  Figure3_PCA_composite.pdf (vector)\n\nReproducibility:\n  commands.sh | environment.yml | checksums.sha256\n```\n\n## Interpretation Guide\n\n- **PC1** typically captures the largest axis of global differentiation (often Africa vs non-Africa)\n- **PC2** separates major continental groups (Europe, East Asia, Americas)\n- **PC3** often reveals finer substructure within continental groups\n- Confidence ellipses show 2.5 standard deviations around each population cluster\n- Your samples shown as **circles**, SGDP reference as **triangles**\n\n## Citation\n\nIf you use this skill in a publication, please cite:\n\n- Mallick, S. et al. (2016). The Simons Genome Diversity Project. Nature, 538, 201-206.\n- Corpas, M. (2026). ClawBio. https:\u002F\u002Fgithub.com\u002FClawBio\u002FClawBio\n",{"name":5,"tags":49,"author":50,"inputs":51,"license":15,"outputs":63,"version":74,"metadata":75,"description":7},[32,31,30,29,28],"Manuel Corpas",[52,57],{"name":53,"type":42,"format":54,"description":56},"vcf",[53,55],"vcf.gz","VCF file with genotype data for your study cohort",{"name":58,"type":42,"format":59,"description":62},"pop-map",[60,61],"tsv","txt","Tab-separated file mapping sample IDs to population labels",[64,70],{"name":65,"type":42,"format":66,"description":69},"figure",[67,68],"png","pdf","Multi-panel PCA composite figure showing ancestry decomposition",{"name":71,"type":42,"format":72,"description":73},"report","markdown","Ancestry analysis report with population assignments and statistics","0.1.0",{"openclaw":76},{"category":77,"homepage":78,"min_python":79,"dependencies":80,"system_dependencies":84},"bioinformatics","https:\u002F\u002Fgithub.com\u002FClawBio\u002FClawBio","3.9",[43,81,82,34,83],"numpy","matplotlib","adjustText",[85,86],"plink","bcftools","main","d3998984163a67a891ee8397e35adf79b14e872d","https:\u002F\u002Fgithub.com\u002Fhuamu668\u002Fclawhub-openclaw-medical","https:\u002F\u002Fgithub.com\u002Fhuamu668","2026-03-12 11:49:42",{"source":8,"skillName":5,"commands":93,"prompt":103,"zipAvailable":104},[94,97,100],{"tool":95,"command":96},"npx","npx skills add huamu668\u002Fclawhub-openclaw-medical --skill claw-ancestry-pca",{"tool":98,"command":99},"bunx","bunx skills add huamu668\u002Fclawhub-openclaw-medical --skill claw-ancestry-pca",{"tool":101,"command":102},"pnpm","pnpm dlx skills add huamu668\u002Fclawhub-openclaw-medical --skill claw-ancestry-pca","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhuamu668\u002Fclawhub-openclaw-medical\u002Fblob\u002Fmain\u002Fclaw-ancestry-pca\u002FSKILL.md",true,[106],{"path":107,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":110,"sourceHtmlUrl":111},"bmad-skill-manifest.yaml","REFERENCE","参考文档",698,"https:\u002F\u002Fgithub.com\u002Fdelorenj\u002FyTm\u002Fblob\u002Fmain\u002F.crush\u002Fskills\u002Fbmad-cis-agent-innovation-strategist\u002Fbmad-skill-manifest.yaml",[113,132,160,180,194,223],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":44},"01M6DR3JGAEX5G5FR7TK3D8NS8","zarr-python","Chunked N-D arrays for cloud storage. Compressed arrays, parallel I\u002FO, S3\u002FGCS integration, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Fhuamu668\u002Fclawhub-openclaw-medical\u002Fblob\u002Fmain\u002Fzarr-python\u002FSKILL.md",[],[120,121,122,123,81,124,125,126,127,128,129,130,131],"python","zarr python","storage","scientific computing","arrays","pipelines","parallel","dask","cloud","gcs","s3","integration",{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":141,"publishedAt":44},"01M6DR101MEDE5XT2ZZ5VBEAA5","vaex","Use this skill for processing and analyzing large tabular datasets (billions of rows) that exceed available RAM. Vaex excels at out-of-core DataFrame operations, lazy evaluation, fast aggregations, efficient visualization of big data, and machine learning on large datasets. Apply when users need to work with large CSV\u002FHDF5\u002FArrow\u002FParquet files, perform fast statistics on massive datasets, create visualizations of big data, or build ML pipelines that do not fit in memory.","https:\u002F\u002Fgithub.com\u002Fhuamu668\u002Fclawhub-openclaw-medical\u002Fblob\u002Fmain\u002Fvaex\u002FSKILL.md",[138],{"categoryNo":139,"categoryName":140,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000013","分析与可视化",[134,142,143,144,145,146,147,148,149,150,151,152,153,33,154,155,156,157,158,159],"machine learning","in memory","learning","csv","visualization","create","core","ml","big data","memory","visualizations","fit","do","build","files","use","operations","work",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":44},"01M6DQVMB0GBKF2W44FKXVD1P7","torch-geometric","Graph Neural Networks (PyG). Node\u002Fgraph classification, link prediction, GCN, GAT, GraphSAGE, heterogeneous graphs, molecular property prediction, for geometric deep learning.","https:\u002F\u002Fgithub.com\u002Fhuamu668\u002Fclawhub-openclaw-medical\u002Fblob\u002Fmain\u002Ftorch-geometric\u002FSKILL.md",[],[167,144,168,169,170,171,172,173,174,175,176,177,178,179],"torch geometric","node","Neural","link","gat","molecular","graphs","deep","networks","graph","neural networks","deep learning","classification",{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":186,"publishedAt":44},"01M6DQH2GZPZKEQ140GRCJ9746","tiledbvcf","Efficient storage and retrieval of genomic variant data using TileDB. Scalable VCF\u002FBCF ingestion, incremental sample addition, compressed storage, parallel queries, and export capabilities for population genomics.","https:\u002F\u002Fgithub.com\u002Fhuamu668\u002Fclawhub-openclaw-medical\u002Fblob\u002Fmain\u002Ftiledbvcf\u002FSKILL.md",[],[182,187,188,189,190,191,192,126,193,122],"data","genomics","sample","queries","ingestion","export","capabilities",{"skillNo":195,"name":196,"nameZh":6,"description":197,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":198,"categories":199,"keywords":208,"publishedAt":44},"01M6DQD9G958EM6NHJ994D0SK1","solublempnn","Solubility-optimized protein sequence design using SolubleMPNN. Use this skill when: (1) Designing for E. coli expression, (2) Optimizing solubility of designed proteins, (3) Reducing aggregation propensity, (4) Need high-yield expression, (5) Avoiding inclusion body formation.\nFor standard design, use proteinmpnn. For ligand-aware design, use ligandmpnn.","https:\u002F\u002Fgithub.com\u002Fhuamu668\u002Fclawhub-openclaw-medical\u002Fblob\u002Fmain\u002Fsolublempnn\u002FSKILL.md",[200,203],{"categoryNo":201,"categoryName":202,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":204,"categoryName":205,"taxonomyType":206,"taxonomyTypeDesc":207},"01JBSEEDCAT000000000000032","设计师","PROFESSION","适用职业",[196,209,210,157,211,212,213,214,215,216,217,218,219,220,221,222],"inclusion","yield","modal","Tools","aggregation","design","proteins","solubility","proteinmpnn","ligandmpnn","ligand-aware","inverse-folding","expression","sequence-design",{"skillNo":224,"name":225,"nameZh":6,"description":226,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":227,"licenseFileUrl":6,"sourceHtmlUrl":228,"categories":229,"keywords":230,"publishedAt":44},"01M6DQ8W91A93MGGCEEW949HBC","scvelo","RNA velocity analysis with scVelo. Estimate cell state transitions from unspliced\u002Fspliced mRNA dynamics, infer trajectory directions, compute latent time, and identify driver genes in single-cell RNA-seq data. Complements Scanpy\u002FscVI-tools for trajectory inference.","BSD-3-Clause","https:\u002F\u002Fgithub.com\u002Fhuamu668\u002Fclawhub-openclaw-medical\u002Fblob\u002Fmain\u002Fscvelo\u002FSKILL.md",[],[225,231,232,233,234,235,236,237,238,239,40,212,187,240,241],"RNA","single-cell","infer","cell","transitions","time","compute","velocity","scanpy","state","inference"]