[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DTC5HJB579FYXYEK6YP2BV":3,"skill-same:01M6DTC5HJB579FYXYEK6YP2BV":107},{"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":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":52,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":54,"install":55,"resources":68},"01M6DTC5HJB579FYXYEK6YP2BV","genomics-epigenomics",null,"Load when summarising a peak file (BED \u002F narrowPeak) from ATAC-seq \u002F ChIP-seq \u002F CUT&Tag — peak count, width distribution, per-chromosome counts, score statistics. Skip when calling peaks from BAM (run MACS \u002F Genrich externally first); working with single-cell ATAC (use scatac-preprocessing).","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-epigenomics\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"genomics epigenomics","genomics","atac","bed","cut-tag","chip-seq","atac-seq","epigenomics","bam","single-cell","cut","run","distribution","statistics","preprocessing","cell","calling","use","first","file","2026-11-10 10:12:30",false,"---\nname: genomics-epigenomics\ndescription: Load when summarising a peak file (BED \u002F narrowPeak) from ATAC-seq \u002F ChIP-seq \u002F CUT&Tag —\n  peak count, width distribution, per-chromosome counts, score statistics. Skip when calling peaks from\n  BAM (run MACS \u002F Genrich externally first); working with single-cell ATAC (use scatac-preprocessing).\ntrigger: epigenomics, ATAC-seq, ChIP-seq, peak calling, MACS, motif, chromatin\ntags:\n- genomics\n- epigenomics\n- atac-seq\n- chip-seq\n- cut-tag\n- peaks\n- macs\n- bed\n---\n\n# genomics-epigenomics\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-epigenomics\")\ndata = read_input(\"input.bed\", 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, *, assay: str='chip-seq') -> pd.DataFrame`\n\nCompute epigenomics summaries and return a new table, leaving data unchanged.\n\n:param data: Records containing chrom, start, end.\n:param assay: CLI default chip-seq; atac-seq and cut-tag change descriptive expectations.\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 width values without writing files.\n\n:param data: Result table containing width.\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- `analyze` uses BED zero-based, half-open coordinates and recomputes width as end minus start. It does not call peaks.\n- `run_info()[\"summary\"]` retains the legacy p\u002Fq-value heuristic: medians above 1 are treated as negative-log10 values. Convert or inspect inputs before interpreting significance.\n- `read_records` treats a .csv suffix as CSV and other suffixes as BED\u002FnarrowPeak. `assay` only changes descriptive expectations.\n\n## Inputs and outputs\n\nInput files:\n\n- Modalities: atac-seq, chip-seq\n- File types: `.bed`, `.narrowpeak`, `.csv`\n\nCLI output files:\n\n- `tables\u002Fpeaks_per_chromosome.csv`\n- `tables\u002Fpeaks_summary.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-epigenomics\u002Fgenomics_epigenomics.py --input input_file --output results\u002F\npython skills\u002Fgenomics\u002Fgenomics-epigenomics\u002Fgenomics_epigenomics.py --demo --output \u002Ftmp\u002Fgenomics_epigenomics_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-epigenomics\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-epigenomics\")\ndata = read_input(\"input.bed\", 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, *, assay: str='chip-seq') -> pd.DataFrame`\n\nCompute epigenomics summaries and return a new table, leaving data unchanged.\n\n:param data: Records containing chrom, start, end.\n:param assay: CLI default chip-seq; atac-seq and cut-tag change descriptive expectations.\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 width values without writing files.\n\n:param data: Result table containing width.\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- `analyze` uses BED zero-based, half-open coordinates and recomputes width as end minus start. It does not call peaks.\n- `run_info()[\"summary\"]` retains the legacy p\u002Fq-value heuristic: medians above 1 are treated as negative-log10 values. Convert or inspect inputs before interpreting significance.\n- `read_records` treats a .csv suffix as CSV and other suffixes as BED\u002FnarrowPeak. `assay` only changes descriptive expectations.\n\n## Inputs and outputs\n\nInput files:\n\n- Modalities: atac-seq, chip-seq\n- File types: `.bed`, `.narrowpeak`, `.csv`\n\nCLI output files:\n\n- `tables\u002Fpeaks_per_chromosome.csv`\n- `tables\u002Fpeaks_summary.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-epigenomics\u002Fgenomics_epigenomics.py --input input_file --output results\u002F\npython skills\u002Fgenomics\u002Fgenomics-epigenomics\u002Fgenomics_epigenomics.py --demo --output \u002Ftmp\u002Fgenomics_epigenomics_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":46,"description":7},[19,25,24,23,22,44,45,21],"peaks","macs","epigenomics, ATAC-seq, ChIP-seq, peak calling, MACS, motif, chromatin","main","90a3bec3e6549bc33dddbf67e4b23869736c49d1","skills\u002Fgenomics\u002Fgenomics-epigenomics",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":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add TianGzlab\u002FOmicsClaw --skill genomics-epigenomics",{"tool":61,"command":62},"bunx","bunx skills add TianGzlab\u002FOmicsClaw --skill genomics-epigenomics",{"tool":64,"command":65},"pnpm","pnpm dlx skills add TianGzlab\u002FOmicsClaw --skill genomics-epigenomics","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-epigenomics\u002FSKILL.md",true,[69,75,81,85,89,95,99,103],{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"_api.py","SCRIPT","脚本",2679,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-epigenomics\u002F_api.py",{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"data\u002Fexample.bed","OTHER","其他",99,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-epigenomics\u002Fdata\u002Fexample.bed",{"path":82,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":83,"sourceHtmlUrl":84},"examples\u002Fexample_step.py",692,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-epigenomics\u002Fexamples\u002Fexample_step.py",{"path":86,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":87,"sourceHtmlUrl":88},"genomics_epigenomics.py",8813,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-epigenomics\u002Fgenomics_epigenomics.py",{"path":90,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":93,"sourceHtmlUrl":94},"references\u002Fmethodology.md","REFERENCE","参考文档",4208,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-epigenomics\u002Freferences\u002Fmethodology.md",{"path":96,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":97,"sourceHtmlUrl":98},"references\u002Foutput_contract.md",722,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-epigenomics\u002Freferences\u002Foutput_contract.md",{"path":100,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":101,"sourceHtmlUrl":102},"references\u002Fparameters.md",245,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-epigenomics\u002Freferences\u002Fparameters.md",{"path":104,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":105,"sourceHtmlUrl":106},"tests\u002Ftest_api.py",672,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-epigenomics\u002Ftests\u002Ftest_api.py",[108,121,133,149,175,197],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"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",[],[115,116,117,118,119,35,120],"demo skill","demo","tests","fixture","fixture skill","environment",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"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",[],[128,129,130,117,118,131,132],"domains","fake domains","deployment","never","test",{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"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",[],[140,141,142,143,144,145,146,147,148],"me","replace me skill","template","directory","skill template","existing skill","new skill","bootstrap","scaffold",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"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",[],[156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,35,173,174],"velocity","spatial velocity","Spatial","scvelo","input","starsolo","time","deep","RNA","kb-python","via","velocyto","rna-velocity","velovi","dynamics","upstream","kb","python","deterministic",{"skillNo":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":181,"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",[],[158,182,183,184,185,186,187,188,166,189,190,191,192,33,156,193,35,194,195,196],"trajectory","spatial trajectory","state","terminal","lineage","diffusion","cellrank","palantir","dpt","pseudotime","probability","default","branch","anndata","data",{"skillNo":198,"name":199,"nameZh":6,"description":200,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":201,"categories":202,"keywords":203,"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",[],[204,31,158,166,205,206,207,208,209,210,128,211,212,213,214,35,195,215,216,217],"spatial statistics","nhood-enrichment","co-occurrence","ripley","geary","moran","neighbourhood","ranking","autocorrelation","local","domain","detection","enrichment","stats"]