[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DTBWF3T7VCN8G939Q8VJFV":3,"skill-same:01M6DTBWF3T7VCN8G939Q8VJFV":109},{"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":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":46,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":48,"install":49,"resources":62},"01M6DTBWF3T7VCN8G939Q8VJFV","genomics-assembly",null,"Load when computing genome-assembly QC metrics — N50\u002FN90, L50\u002FL90, total length, contig count, GC content, longest-contig — from a FASTA produced by any assembler (SPAdes \u002F Megahit \u002F Flye \u002F Canu). Skip when running the assembly itself; assessing alignment quality (use genomics-alignment).","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-assembly\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"assembly","genomics","genomics assembly","metrics","content","quality","use","gc","alignment","qc","n50","l50","contig","quast","spades","flye","2026-11-10 10:12:30",false,"---\nname: genomics-assembly\ndescription: Load when computing genome-assembly QC metrics — N50\u002FN90, L50\u002FL90, total length, contig count,\n  GC content, longest-contig — from a FASTA produced by any assembler (SPAdes \u002F Megahit \u002F Flye \u002F Canu).\n  Skip when running the assembly itself; assessing alignment quality (use genomics-alignment).\ntrigger: genome assembly, de novo, SPAdes, Megahit, Flye, Canu\ntags:\n- genomics\n- assembly\n- n50\n- l50\n- contig\n- quast\n- spades\n- flye\n---\n\n# genomics-assembly\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-assembly\")\ndata = read_input(\"input.fasta\", 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, *, genome_size: int=0) -> pd.DataFrame`\n\nCompute assembly summaries and return a new table, leaving data unchanged.\n\n:param data: Records containing contig, sequence.\n:param genome_size: CLI default 0 omits completeness; otherwise expected genome bases.\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 length values without writing files.\n\n:param data: Result table containing length.\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- `run_info()[\"summary\"][\"completeness_pct\"]` is assembly length divided by expected genome size, not a gene-completeness assessment.\n- `read_records` uppercases FASTA sequence. GC content excludes N bases; no assembler or QUAST is invoked.\n\n## Inputs and outputs\n\nInput files:\n\n- File types: `.fasta`, `.fa`\n\nCLI output files:\n\n- `tables\u002Fassembly_metrics.csv`\n- `tables\u002Fcontig_lengths.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-assembly\u002Fgenome_assembly.py --input input_file --output results\u002F\npython skills\u002Fgenomics\u002Fgenomics-assembly\u002Fgenome_assembly.py --demo --output \u002Ftmp\u002Fgenomics_assembly_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-assembly\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-assembly\")\ndata = read_input(\"input.fasta\", 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, *, genome_size: int=0) -> pd.DataFrame`\n\nCompute assembly summaries and return a new table, leaving data unchanged.\n\n:param data: Records containing contig, sequence.\n:param genome_size: CLI default 0 omits completeness; otherwise expected genome bases.\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 length values without writing files.\n\n:param data: Result table containing length.\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- `run_info()[\"summary\"][\"completeness_pct\"]` is assembly length divided by expected genome size, not a gene-completeness assessment.\n- `read_records` uppercases FASTA sequence. GC content excludes N bases; no assembler or QUAST is invoked.\n\n## Inputs and outputs\n\nInput files:\n\n- File types: `.fasta`, `.fa`\n\nCLI output files:\n\n- `tables\u002Fassembly_metrics.csv`\n- `tables\u002Fcontig_lengths.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-assembly\u002Fgenome_assembly.py --input input_file --output results\u002F\npython skills\u002Fgenomics\u002Fgenomics-assembly\u002Fgenome_assembly.py --demo --output \u002Ftmp\u002Fgenomics_assembly_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":39,"trigger":40,"description":7},[19,18,28,29,30,31,32,33],"genome assembly, de novo, SPAdes, Megahit, Flye, Canu","main","90a3bec3e6549bc33dddbf67e4b23869736c49d1","skills\u002Fgenomics\u002Fgenomics-assembly",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":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add TianGzlab\u002FOmicsClaw --skill genomics-assembly",{"tool":55,"command":56},"bunx","bunx skills add TianGzlab\u002FOmicsClaw --skill genomics-assembly",{"tool":58,"command":59},"pnpm","pnpm dlx skills add TianGzlab\u002FOmicsClaw --skill genomics-assembly","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-assembly\u002FSKILL.md",true,[63,69,75,79,83,89,93,97,101,105],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"_api.py","SCRIPT","脚本",2632,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-assembly\u002F_api.py",{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"data\u002Fexample.fasta","OTHER","其他",50,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-assembly\u002Fdata\u002Fexample.fasta",{"path":76,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":77,"sourceHtmlUrl":78},"examples\u002Fexample_step.py",664,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-assembly\u002Fexamples\u002Fexample_step.py",{"path":80,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":81,"sourceHtmlUrl":82},"genome_assembly.py",7616,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-assembly\u002Fgenome_assembly.py",{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Farchitecture.md","REFERENCE","参考文档",13816,"https:\u002F\u002Fgithub.com\u002Fhefarica\u002Farbitragex-v2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Farbitragex-v2-ops-en\u002Freferences\u002Farchitecture.md",{"path":90,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fcartridge_api.md",10970,"https:\u002F\u002Fgithub.com\u002Fhefarica\u002Farbitragex-v2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Farbitragex-v2-ops-en\u002Freferences\u002Fcartridge_api.md",{"path":94,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fmethodology.md",874,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-assembly\u002Freferences\u002Fmethodology.md",{"path":98,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Foutput_contract.md",781,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-assembly\u002Freferences\u002Foutput_contract.md",{"path":102,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":103,"sourceHtmlUrl":104},"references\u002Fparameters.md",224,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-assembly\u002Freferences\u002Fparameters.md",{"path":106,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":107,"sourceHtmlUrl":108},"tests\u002Ftest_api.py",1102,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fgenomics\u002Fgenomics-assembly\u002Ftests\u002Ftest_api.py",[110,123,135,151,177,200],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":34},"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",[],[117,118,119,120,121,24,122],"demo skill","demo","tests","fixture","fixture skill","environment",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":34},"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",[],[130,131,132,119,120,133,134],"domains","fake domains","deployment","never","test",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":34},"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",[],[142,143,144,145,146,147,148,149,150],"me","replace me skill","template","directory","skill template","existing skill","new skill","bootstrap","scaffold",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":34},"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",[],[158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,24,175,176],"velocity","spatial velocity","Spatial","scvelo","input","starsolo","time","deep","RNA","kb-python","via","velocyto","rna-velocity","velovi","dynamics","upstream","kb","python","deterministic",{"skillNo":178,"name":179,"nameZh":6,"description":180,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":181,"categories":182,"keywords":183,"publishedAt":34},"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",[],[160,184,185,186,187,188,189,190,168,191,192,193,194,195,158,196,24,197,198,199],"trajectory","spatial trajectory","state","terminal","lineage","diffusion","cellrank","palantir","dpt","pseudotime","probability","cell","default","branch","anndata","data",{"skillNo":201,"name":202,"nameZh":6,"description":203,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":204,"categories":205,"keywords":206,"publishedAt":34},"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",[],[207,208,160,168,209,210,211,212,213,214,130,215,216,217,218,24,198,219,220,221],"spatial statistics","statistics","nhood-enrichment","co-occurrence","ripley","geary","moran","neighbourhood","ranking","autocorrelation","local","domain","detection","enrichment","stats"]