[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DTCJ7BAA6A2R24XZQ300YE":3,"skill-same:01M6DTCJ7BAA6A2R24XZQ300YE":104},{"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":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":51,"install":52,"resources":65},"01M6DTCJ7BAA6A2R24XZQ300YE","genomics-sv-detection",null,"Load when summarising structural variants from an SV VCF (DEL \u002F DUP \u002F INV \u002F TRA) — INFO\u002FSVTYPE-based classification, size classification, per-type counts. Skip when working with small SNVs \u002F indels (use genomics-variant-calling); calling SVs from BAM (run Manta \u002F Delly \u002F Sniffles first).","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-sv-detection\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"detection","genomics sv detection","genomics","classification","use","dup","calling","info","first","structural","type","bam","structural-variants","sv","manta","delly","sniffles","bnd","run","2026-11-10 10:12:30",false,"---\nname: genomics-sv-detection\ndescription: Load when summarising structural variants from an SV VCF (DEL \u002F DUP \u002F INV \u002F TRA) — INFO\u002FSVTYPE-based\n  classification, size classification, per-type counts. Skip when working with small SNVs \u002F indels (use genomics-variant-calling);\n  calling SVs from BAM (run Manta \u002F Delly \u002F Sniffles first).\ntrigger: structural variant, SV, Manta, Delly, Lumpy, Sniffles\ntags:\n- genomics\n- structural-variants\n- sv\n- manta\n- delly\n- sniffles\n- bnd\n---\n\n# genomics-sv-detection\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-sv-detection\")\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: Existing input file in the format documented under Inputs and outputs.\n:returns: Parsed records as a DataFrame.\n:raises ValueError: Input values or file structure cannot be parsed.\n\n### `analyze(data: pd.DataFrame) -> pd.DataFrame`\n\nCompute sv-detection summaries and return a new table, leaving data unchanged.\n\n:param data: Records containing chrom, sv_type, sv_len, filter, size_class, genotype.\n\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 the 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 sv_len values without writing files.\n\n:param data: Result table containing sv_len.\n:returns: Matplotlib Figure.\n:raises ValueError: The value column is absent or the 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- `read_records` reads INFO\u002FSVTYPE; breakend ALT notation without that field stays UNKNOWN. There is no mate-pair resolution or SV calling.\n- `run_info()[\"summary\"]` uses absolute SVLEN and the legacy small (\u003C1000), medium (\u003C100000), and large size classes. Only the first sample genotype is read.\n\n## Inputs and outputs\n\nInput files:\n\n- File types: `.vcf`\n\nCLI output files:\n\n- `tables\u002Fstructural_variants.csv`\n- `report.md`\n- `result.json`\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-sv-detection\u002Fsv_detection.py --input input_file --output results\u002F\npython skills\u002Fgenomics\u002Fgenomics-sv-detection\u002Fsv_detection.py --demo --output \u002Ftmp\u002Fgenomics_sv_detection_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-sv-detection\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-sv-detection\")\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: Existing input file in the format documented under Inputs and outputs.\n:returns: Parsed records as a DataFrame.\n:raises ValueError: Input values or file structure cannot be parsed.\n\n### `analyze(data: pd.DataFrame) -> pd.DataFrame`\n\nCompute sv-detection summaries and return a new table, leaving data unchanged.\n\n:param data: Records containing chrom, sv_type, sv_len, filter, size_class, genotype.\n\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 the 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 sv_len values without writing files.\n\n:param data: Result table containing sv_len.\n:returns: Matplotlib Figure.\n:raises ValueError: The value column is absent or the 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- `read_records` reads INFO\u002FSVTYPE; breakend ALT notation without that field stays UNKNOWN. There is no mate-pair resolution or SV calling.\n- `run_info()[\"summary\"]` uses absolute SVLEN and the legacy small (\u003C1000), medium (\u003C100000), and large size classes. Only the first sample genotype is read.\n\n## Inputs and outputs\n\nInput files:\n\n- File types: `.vcf`\n\nCLI output files:\n\n- `tables\u002Fstructural_variants.csv`\n- `report.md`\n- `result.json`\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-sv-detection\u002Fsv_detection.py --input input_file --output results\u002F\npython skills\u002Fgenomics\u002Fgenomics-sv-detection\u002Fsv_detection.py --demo --output \u002Ftmp\u002Fgenomics_sv_detection_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":42,"trigger":43,"description":7},[20,30,31,32,33,34,35],"structural variant, SV, Manta, Delly, Lumpy, Sniffles","main","90a3bec3e6549bc33dddbf67e4b23869736c49d1","skills\u002Fgenomics\u002Fgenomics-sv-detection",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":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add TianGzlab\u002FOmicsClaw --skill genomics-sv-detection",{"tool":58,"command":59},"bunx","bunx skills add TianGzlab\u002FOmicsClaw --skill genomics-sv-detection",{"tool":61,"command":62},"pnpm","pnpm dlx skills add TianGzlab\u002FOmicsClaw --skill genomics-sv-detection","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-sv-detection\u002FSKILL.md",true,[66,72,78,82,88,92,96,100],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"_api.py","SCRIPT","脚本",2302,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-sv-detection\u002F_api.py",{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"data\u002Fexample.vcf","OTHER","其他",341,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-sv-detection\u002Fdata\u002Fexample.vcf",{"path":79,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":80,"sourceHtmlUrl":81},"examples\u002Fexample_step.py",685,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-sv-detection\u002Fexamples\u002Fexample_step.py",{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fmethodology.md","REFERENCE","参考文档",867,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-sv-detection\u002Freferences\u002Fmethodology.md",{"path":89,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Foutput_contract.md",656,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-sv-detection\u002Freferences\u002Foutput_contract.md",{"path":93,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Fparameters.md",218,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-sv-detection\u002Freferences\u002Fparameters.md",{"path":97,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":98,"sourceHtmlUrl":99},"sv_detection.py",8787,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-sv-detection\u002Fsv_detection.py",{"path":101,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":102,"sourceHtmlUrl":103},"tests\u002Ftest_api.py",661,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-sv-detection\u002Ftests\u002Ftest_api.py",[105,118,130,146,172,195],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":37},"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",[],[112,113,114,115,116,22,117],"demo skill","demo","tests","fixture","fixture skill","environment",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":37},"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",[],[125,126,127,114,115,128,129],"domains","fake domains","deployment","never","test",{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":37},"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",[],[137,138,139,140,141,142,143,144,145],"me","replace me skill","template","directory","skill template","existing skill","new skill","bootstrap","scaffold",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":37},"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",[],[153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,22,170,171],"velocity","spatial velocity","Spatial","scvelo","input","starsolo","time","deep","RNA","kb-python","via","velocyto","rna-velocity","velovi","dynamics","upstream","kb","python","deterministic",{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":37},"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",[],[155,179,180,181,182,183,184,185,163,186,187,188,189,190,153,191,22,192,193,194],"trajectory","spatial trajectory","state","terminal","lineage","diffusion","cellrank","palantir","dpt","pseudotime","probability","cell","default","branch","anndata","data",{"skillNo":196,"name":197,"nameZh":6,"description":198,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":199,"categories":200,"keywords":201,"publishedAt":37},"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",[],[202,203,155,163,204,205,206,207,208,209,125,210,211,212,213,22,193,18,214,215],"spatial statistics","statistics","nhood-enrichment","co-occurrence","ripley","geary","moran","neighbourhood","ranking","autocorrelation","local","domain","enrichment","stats"]