[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DTD0PC1F8JM1JN94S00PJN":3,"skill-same:01M6DTD0PC1F8JM1JN94S00PJN":105},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":50,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":52,"install":53,"resources":66},"01M6DTD0PC1F8JM1JN94S00PJN","genomics-vcf-operations",null,"Load when summarising \u002F filtering a VCF — variant classification (SNP \u002F MNP \u002F INS \u002F DEL \u002F COMPLEX), Ti\u002FTv ratio, QUAL \u002F DP threshold filtering, INFO-field parsing. Skip when calling variants from BAM (run an external caller first); adding functional annotations (use genomics-variant-annotation).","TianGzlab\u002FOmicsClaw","TianGzlab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F150978281?v=4","01M6DT9WNJJ470ADHPSMFAA02Y","01M6DT9WSN09C5K65GB6RK18R9",161,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-vcf-operations\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"genomics","genomics vcf operations","operations","annotation","run","filter","bcftools","ti-tv","vcf","indel","snv","bam","parsing","merge","info","calling","use","first","filtering","classification","2026-11-10 10:12:30",false,"---\nname: genomics-vcf-operations\ndescription: Load when summarising \u002F filtering a VCF — variant classification (SNP \u002F MNP \u002F INS \u002F DEL \u002F\n  COMPLEX), Ti\u002FTv ratio, QUAL \u002F DP threshold filtering, INFO-field parsing. Skip when calling variants from BAM (run an external caller first); adding functional annotations (use genomics-variant-annotation).\ntrigger: VCF, bcftools, variant filter, merge VCF\ntags:\n- genomics\n- vcf\n- bcftools\n- filter\n- ti-tv\n- snv\n- indel\n---\n\n# genomics-vcf-operations\n\n## When to use\n\nLoad this skill for the file-based analysis named in the description.\nThe function library and CLI share the same calculations; no external\naligner, assembler, caller or annotation service is started.\n\n## Use from a step\n\n```python\nfrom skills._sdk.notebook import load_skill, read_input, write_output\nlibrary = load_skill(\"genomics-vcf-operations\")\ndata = read_input(\"input.vcf\", reader=library.read_records)\nresult = library.analyze(data)\nwrite_output(result, \"tables\u002Fresult.csv\")\nwrite_output(library.distribution_figure(result), \"figures\u002Fdistribution.png\")\n```\n\nRun `examples\u002Fexample_step.py` through the step runner for a small,\nhand-worked synthetic fixture. It asserts known summary values.\nThe reader materializes the input in memory; use bounded FASTQ reads or\npre-filter large genomic files before loading them.\n\n## API\n\n\u003C!-- api:begin generated from _api.py; regenerate with run.py api \u003Cskill dir> --write -->\n\n### `read_records(path: str | Path) -> pd.DataFrame`\n\nRead records through read_input(path, reader=library.read_records).\n\n:param path: Input file in the format documented under Inputs and outputs.\n\n:returns: Parsed records as a DataFrame.\n:raises ValueError: Input values or file structure cannot be parsed.\n\n### `analyze(data: pd.DataFrame, *, min_qual: float=0.0, min_dp: int=0) -> pd.DataFrame`\n\nCompute vcf-operations summaries and return a new table, leaving data unchanged.\n\n:param data: Records containing chrom, pos, ref, alt, qual, filter, dp, type.\n:param min_qual: CLI default 0 keeps all QUAL values; raise to filter.\n:param min_dp: CLI default 0 keeps all INFO\u002FDP values; FORMAT\u002FDP is ignored.\n:returns: Result table with diagnostics and summary in attrs['run_info'].\n:raises ValueError: Required columns are absent or records are empty or invalid.\n\n### `run_info(data: pd.DataFrame, *, keep: bool=True) -> dict`\n\nReturn analysis diagnostics and summary.\n\n:param data: Result returned by analyze.\n:param keep: Keep diagnostics by default; the CLI passes False.\n:returns: Independent diagnostics dictionary.\n:raises ValueError: analyze has not populated diagnostics.\n\n### `distribution_figure(data: pd.DataFrame)`\n\nPlot qual values without writing files.\n\n:param data: Result table containing qual.\n:returns: Matplotlib Figure.\n:raises ValueError: The value column is absent or table is empty.\n\n\u003C!-- api:end -->\n\n## Methods and parameters\n\n`analyze` returns a new DataFrame and leaves the input unchanged.\n`run_info(result)` returns the summary and method diagnostics.\nThe CLI passes `keep=False` so diagnostics do not enter output tables.\nAll calculations are deterministic; synthetic CLI demos retain seed 42.\n\n## Gotchas\n\n- `analyze` filters INFO\u002FDP, not per-sample FORMAT\u002FDP. Missing INFO\u002FDP is treated as zero; each ALT becomes one row.\n- `read_records` preserves VCF header lines in attrs[\"vcf_headers\"]. The legacy CLI filtered.vcf retains DP only and replaces sample genotypes with missing values; do not use it for genotype-preserving filtering.\n- `analyze` raises ValueError when no records pass filters, instead of the old CLI failing later with a missing summary key.\n\n## Inputs and outputs\n\nInput files:\n\n- File types: `.vcf`\n- VCF structure: `##fileformat`; columns: `#CHROM`, `POS`, `ID`, `REF`, `ALT`, `QUAL`, `FILTER`, `INFO`\n\nCLI output files:\n\n- `tables\u002Fvariants.csv`\n- `filtered.vcf`\n- `report.md`\n- `result.json`\n- Produces artifact `genomics.filtered_variants` as `filtered.vcf` (`vcf`)\n\nThe library writes no files. Steps use `write_output`; the CLI owns the\nlisted artifacts. Public figure functions return matplotlib Figures and\ndo not add new CLI outputs.\n\n## CLI\n\n```bash\npython skills\u002Fgenomics\u002Fgenomics-vcf-operations\u002Fgenomics_vcf_operations.py --input input_file --output results\u002F\npython skills\u002Fgenomics\u002Fgenomics-vcf-operations\u002Fgenomics_vcf_operations.py --demo --output \u002Ftmp\u002Fgenomics_vcf_operations_demo\n```\n\n## See also\n\n- `references\u002Fparameters.md`\n- `references\u002Fmethodology.md`\n- `references\u002Foutput_contract.md`\n\n## Dependencies\n\n`numpy`, `pandas`, `matplotlib`\n","# genomics-vcf-operations\n\n## When to use\n\nLoad this skill for the file-based analysis named in the description.\nThe function library and CLI share the same calculations; no external\naligner, assembler, caller or annotation service is started.\n\n## Use from a step\n\n```python\nfrom skills._sdk.notebook import load_skill, read_input, write_output\nlibrary = load_skill(\"genomics-vcf-operations\")\ndata = read_input(\"input.vcf\", reader=library.read_records)\nresult = library.analyze(data)\nwrite_output(result, \"tables\u002Fresult.csv\")\nwrite_output(library.distribution_figure(result), \"figures\u002Fdistribution.png\")\n```\n\nRun `examples\u002Fexample_step.py` through the step runner for a small,\nhand-worked synthetic fixture. It asserts known summary values.\nThe reader materializes the input in memory; use bounded FASTQ reads or\npre-filter large genomic files before loading them.\n\n## API\n\n\u003C!-- api:begin generated from _api.py; regenerate with run.py api \u003Cskill dir> --write -->\n\n### `read_records(path: str | Path) -> pd.DataFrame`\n\nRead records through read_input(path, reader=library.read_records).\n\n:param path: Input file in the format documented under Inputs and outputs.\n\n:returns: Parsed records as a DataFrame.\n:raises ValueError: Input values or file structure cannot be parsed.\n\n### `analyze(data: pd.DataFrame, *, min_qual: float=0.0, min_dp: int=0) -> pd.DataFrame`\n\nCompute vcf-operations summaries and return a new table, leaving data unchanged.\n\n:param data: Records containing chrom, pos, ref, alt, qual, filter, dp, type.\n:param min_qual: CLI default 0 keeps all QUAL values; raise to filter.\n:param min_dp: CLI default 0 keeps all INFO\u002FDP values; FORMAT\u002FDP is ignored.\n:returns: Result table with diagnostics and summary in attrs['run_info'].\n:raises ValueError: Required columns are absent or records are empty or invalid.\n\n### `run_info(data: pd.DataFrame, *, keep: bool=True) -> dict`\n\nReturn analysis diagnostics and summary.\n\n:param data: Result returned by analyze.\n:param keep: Keep diagnostics by default; the CLI passes False.\n:returns: Independent diagnostics dictionary.\n:raises ValueError: analyze has not populated diagnostics.\n\n### `distribution_figure(data: pd.DataFrame)`\n\nPlot qual values without writing files.\n\n:param data: Result table containing qual.\n:returns: Matplotlib Figure.\n:raises ValueError: The value column is absent or table is empty.\n\n\u003C!-- api:end -->\n\n## Methods and parameters\n\n`analyze` returns a new DataFrame and leaves the input unchanged.\n`run_info(result)` returns the summary and method diagnostics.\nThe CLI passes `keep=False` so diagnostics do not enter output tables.\nAll calculations are deterministic; synthetic CLI demos retain seed 42.\n\n## Gotchas\n\n- `analyze` filters INFO\u002FDP, not per-sample FORMAT\u002FDP. Missing INFO\u002FDP is treated as zero; each ALT becomes one row.\n- `read_records` preserves VCF header lines in attrs[\"vcf_headers\"]. The legacy CLI filtered.vcf retains DP only and replaces sample genotypes with missing values; do not use it for genotype-preserving filtering.\n- `analyze` raises ValueError when no records pass filters, instead of the old CLI failing later with a missing summary key.\n\n## Inputs and outputs\n\nInput files:\n\n- File types: `.vcf`\n- VCF structure: `##fileformat`; columns: `#CHROM`, `POS`, `ID`, `REF`, `ALT`, `QUAL`, `FILTER`, `INFO`\n\nCLI output files:\n\n- `tables\u002Fvariants.csv`\n- `filtered.vcf`\n- `report.md`\n- `result.json`\n- Produces artifact `genomics.filtered_variants` as `filtered.vcf` (`vcf`)\n\nThe library writes no files. Steps use `write_output`; the CLI owns the\nlisted artifacts. Public figure functions return matplotlib Figures and\ndo not add new CLI outputs.\n\n## CLI\n\n```bash\npython skills\u002Fgenomics\u002Fgenomics-vcf-operations\u002Fgenomics_vcf_operations.py --input input_file --output results\u002F\npython skills\u002Fgenomics\u002Fgenomics-vcf-operations\u002Fgenomics_vcf_operations.py --demo --output \u002Ftmp\u002Fgenomics_vcf_operations_demo\n```\n\n## See also\n\n- `references\u002Fparameters.md`\n- `references\u002Fmethodology.md`\n- `references\u002Foutput_contract.md`\n\n## Dependencies\n\n`numpy`, `pandas`, `matplotlib`\n",{"name":5,"tags":43,"trigger":44,"description":7},[18,26,24,23,25,28,27],"VCF, bcftools, variant filter, merge VCF","main","90a3bec3e6549bc33dddbf67e4b23869736c49d1","skills\u002Fgenomics\u002Fgenomics-vcf-operations",27,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw","https:\u002F\u002FTianGzlab.github.io\u002FOmicsClaw\u002F","https:\u002F\u002Fgithub.com\u002FTianGzlab","2026-10-08 01:36:11",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add TianGzlab\u002FOmicsClaw --skill genomics-vcf-operations",{"tool":59,"command":60},"bunx","bunx skills add TianGzlab\u002FOmicsClaw --skill genomics-vcf-operations",{"tool":62,"command":63},"pnpm","pnpm dlx skills add TianGzlab\u002FOmicsClaw --skill genomics-vcf-operations","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-vcf-operations\u002FSKILL.md",true,[67,73,79,83,87,93,97,101],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"_api.py","SCRIPT","脚本",2801,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-vcf-operations\u002F_api.py",{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"data\u002Fexample.vcf","OTHER","其他",216,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-vcf-operations\u002Fdata\u002Fexample.vcf",{"path":80,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":81,"sourceHtmlUrl":82},"examples\u002Fexample_step.py",696,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-vcf-operations\u002Fexamples\u002Fexample_step.py",{"path":84,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":85,"sourceHtmlUrl":86},"genomics_vcf_operations.py",7793,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-vcf-operations\u002Fgenomics_vcf_operations.py",{"path":88,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fmethodology.md","REFERENCE","参考文档",924,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-vcf-operations\u002Freferences\u002Fmethodology.md",{"path":94,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Foutput_contract.md",729,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-vcf-operations\u002Freferences\u002Foutput_contract.md",{"path":98,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fparameters.md",234,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-vcf-operations\u002Freferences\u002Fparameters.md",{"path":102,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":103,"sourceHtmlUrl":104},"tests\u002Ftest_api.py",1137,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-vcf-operations\u002Ftests\u002Ftest_api.py",[106,119,131,147,173,196],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":38},"01M6DTP4X225Q92RMY8XXHPCTT","demo-skill","A fixture skill for the skill environment tests. Use it for nothing else.","https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Ftests\u002Fskillenv\u002Ffixtures\u002Fskills\u002Fdemo\u002Fdemo-skill\u002FSKILL.md",[],[113,114,115,116,117,34,118],"demo skill","demo","tests","fixture","fixture skill","environment",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":38},"01M6DTP28JTWQK3HHXDNQV8BBV","fake-domains","Test fixture for the golden deployment in tests\u002Fentry. Load never; it has no script.","https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Ftests\u002Fentry\u002Ffake_skills\u002Fspatial\u002Ffake-domains\u002FSKILL.md",[],[126,127,128,115,116,129,130],"domains","fake domains","deployment","never","test",{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":38},"01M6DTNZ4AMWKTME1T18K5C643","replace-me-skill","Load when copying this directory to bootstrap a new OmicsClaw skill. Skip when an existing skill already covers the request.","https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Ftemplates\u002Fskill\u002FSKILL.md",[],[138,139,140,141,142,143,144,145,146],"me","replace me skill","template","directory","skill template","existing skill","new skill","bootstrap","scaffold",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":38},"01M6DTNV63MTD0Q6YRC52F0B1Y","spatial-velocity","Load when estimating RNA velocity on a spatial AnnData with `layers[\"spliced\"]` + `layers[\"unspliced\"]` via scVelo (stochastic \u002F deterministic \u002F dynamical) or veloVI (deep generative). Skip when input lacks the spliced\u002Funspliced layers (must be quantified upstream by velocyto \u002F kb-python \u002F STARsolo); non-spatial scRNA velocity (use sc-velocity).","https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fspatial\u002Fspatial-velocity\u002FSKILL.md",[],[154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,34,171,172],"velocity","spatial velocity","Spatial","scvelo","input","starsolo","time","deep","RNA","kb-python","via","velocyto","rna-velocity","velovi","dynamics","upstream","kb","python","deterministic",{"skillNo":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":177,"categories":178,"keywords":179,"publishedAt":38},"01M6DTNPMR227NAT8QFY620YDW","spatial-trajectory","Load when inferring pseudotime \u002F lineage trajectories on a preprocessed spatial AnnData via DPT (default — diffusion pseudotime), CellRank (terminal-state + fate-probability), or Palantir (waypoint branch probabilities). Skip when the data has spliced\u002Funspliced layers and you want velocity-driven dynamics (use spatial-velocity); non-spatial scRNA pseudotime (use sc-pseudotime).","https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fspatial\u002Fspatial-trajectory\u002FSKILL.md",[],[156,180,181,182,183,184,185,186,164,187,188,189,190,191,154,192,34,193,194,195],"trajectory","spatial trajectory","state","terminal","lineage","diffusion","cellrank","palantir","dpt","pseudotime","probability","cell","default","branch","anndata","data",{"skillNo":197,"name":198,"nameZh":6,"description":199,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":200,"categories":201,"keywords":202,"publishedAt":38},"01M6DTNJEYFT33P84DGHDNXW95","spatial-statistics","Load when running spatial autocorrelation \u002F hotspot \u002F co-occurrence \u002F neighbourhood-enrichment \u002F Ripley K stats on a clustered spatial AnnData via squidpy. Skip when ranking spatially variable genes (use spatial-genes); tissue domain detection (use spatial-domains).","https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fspatial\u002Fspatial-statistics\u002FSKILL.md",[],[203,204,156,164,205,206,207,208,209,210,126,211,212,213,214,34,194,215,216,217],"spatial statistics","statistics","nhood-enrichment","co-occurrence","ripley","geary","moran","neighbourhood","ranking","autocorrelation","local","domain","detection","enrichment","stats"]