[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DTGDBPG61RJ3FEEDYDSX16":3,"skill-same:01M6DTGDBPG61RJ3FEEDYDSX16":108},{"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":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":49,"install":50,"resources":63},"01M6DTGDBPG61RJ3FEEDYDSX16","sc-cytotrace",null,"Load when computing per-cell differentiation potency \u002F stemness scores from gene-expression complexity on a scRNA AnnData via the CytoTRACE-simple method. Skip when ordering cells along a trajectory (use sc-pseudotime); marker-based cell-type labelling (use sc-cell-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\u002Fsinglecell\u002Fscrna\u002Fsc-cytotrace\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"sc cytotrace","trajectory","differentiation","stemness","potency","cytotrace","cell-annotation","singlecell","pseudotime","anndata","annotation","scrna","expression","type","cell","simple","complexity","use","2026-11-10 10:12:30",false,"---\nname: sc-cytotrace\ndescription: Load when computing per-cell differentiation potency \u002F stemness scores from gene-expression\n  complexity on a scRNA AnnData via the CytoTRACE-simple method. Skip when ordering cells along a trajectory\n  (use sc-pseudotime); marker-based cell-type labelling (use sc-cell-annotation).\ntags:\n- singlecell\n- scrna\n- cytotrace\n- potency\n- stemness\n- differentiation\n---\n\n# sc-cytotrace\n\n## Use from a step\n\n```python\npotency = load_skill(\"sc-cytotrace\")\nadata = potency.cytotrace(read_input(\"expression.h5ad\"), layer=\"counts\")\nwrite_output(potency.potency_table(adata), \"tables\u002Fpotency.csv\")\nwrite_output(potency.potency_figure(adata), \"figures\u002Fpotency.png\")\nwrite_output(adata, \"intermediate\u002Fadata_potency.h5ad\")\n```\n\nThe function annotates the input in place. The PBMC example in\n`examples\u002Fexample_step.py` demonstrates the call, not biological differentiation.\n\n## API\n\n\u003C!-- api:begin generated from _api.py; regenerate with run.py api \u003Cskill dir> --write -->\n\n### `cytotrace(adata, *, n_neighbors: int=30, layer: str | None=None)`\n\nAnnotate a complexity-based potency proxy in place, preserving X.\n\nThis is CytoTRACE-simple, not the published CytoTRACE or CytoTRACE 2.\nIt counts positive expression, smooths rank scores, ranks them again\nand bins them into six relative categories. Existing neighbors are reused.\n\n:param adata: AnnData with expression and optionally PCA\u002Fneighbors.\n:param n_neighbors: Neighbors to construct when absent; default 30.\n:param layer: Expression layer for gene detection; None uses X.\n    Use counts or unscaled log expression, not centered\u002Fscaled X.\n:returns: The same AnnData with cytotrace_score, cytotrace_gene_count\n    and cytotrace_potency in obs; run_info returns diagnostics.\n:raises ValueError: The input is empty, a layer is missing, or neighbors \u003C 1.\n\n### `run_info(adata, *, keep: bool=True) -> dict`\n\nRead JSON potency diagnostics; keep=False removes them from uns.\n\n### `potency_table(adata) -> pd.DataFrame`\n\nReturn per-cell score, category and detected-gene count, indexed by cell.\n\n### `potency_composition(adata) -> pd.DataFrame`\n\nReturn counts for the six relative potency bins; they are not cell-type calls.\n\n### `potency_figure(adata)`\n\nReturn a matplotlib Figure showing the potency score distribution.\n\n\u003C!-- api:end -->\n\n## Methods and parameters\n\nCytoTRACE-simple counts positive expression, rank-normalizes that complexity,\nsmooths on a neighbor graph, ranks again and assigns six relative bins.\nIt is not the published CytoTRACE or CytoTRACE 2 model.\n\n`n_neighbors=30` retains the CLI default and is used only if a neighbor graph\nmust be built. `layer=None` uses X; specify a counts layer or unscaled\nlog-normalized expression. Computation is deterministic for a fixed graph.\n\n## Gotchas\n\n- The second rank transform makes the six `cytotrace_potency` bins approximately\n  equal-sized when scores have no ties. Labels such as Totipotent are names\n  of these bins, not evidence that those cells are biologically totipotent (`_api.py:112`).\n- Positive values in centered\u002Fscaled X do not count detected genes. Use\n  `layer=\"counts\"` or an unscaled matrix; inspect `potency_table` (`_api.py:72`).\n- Existing neighbors are reused regardless of `n_neighbors`. The CLI's\n  processed PBMC demo has scaled X and is retained only for compatibility (`_api.py:80`).\n- `run_info(adata)[\"degenerate\"]` marks at most one occupied category. It\n  does not raise; the CLI mirrors this under `result.json[\"summary\"]`.\n\n## Inputs & Outputs\n\nInput is AnnData with expression, optionally PCA and neighbors. The API adds\n`cytotrace_score`, `cytotrace_potency` and `cytotrace_gene_count` to obs and\nreturns tables\u002FFigures without writing files.\n\nThe CLI writes `processed.h5ad`, `tables\u002Fcytotrace_scores.csv`, `report.md`,\n`result.json`, `figure_data\u002Fcytotrace_embedding.csv` and potency\u002Fdistribution\nplots under `figures\u002F`. R-enhanced plots are optional.\n\n## Key CLI\n\n```bash\npython skills\u002Fsinglecell\u002Fscrna\u002Fsc-cytotrace\u002Fsc_cytotrace.py --demo --output \u002Ftmp\u002Fsc_cytotrace_demo\npython skills\u002Fsinglecell\u002Fscrna\u002Fsc-cytotrace\u002Fsc_cytotrace.py --input normalized.h5ad --n-neighbors 30 --output results\u002F\n```\n\n## Dependencies\n\n`anndata`, `matplotlib`, `numpy`, `pandas`, `scanpy`, `scipy`\n","# sc-cytotrace\n\n## Use from a step\n\n```python\npotency = load_skill(\"sc-cytotrace\")\nadata = potency.cytotrace(read_input(\"expression.h5ad\"), layer=\"counts\")\nwrite_output(potency.potency_table(adata), \"tables\u002Fpotency.csv\")\nwrite_output(potency.potency_figure(adata), \"figures\u002Fpotency.png\")\nwrite_output(adata, \"intermediate\u002Fadata_potency.h5ad\")\n```\n\nThe function annotates the input in place. The PBMC example in\n`examples\u002Fexample_step.py` demonstrates the call, not biological differentiation.\n\n## API\n\n\u003C!-- api:begin generated from _api.py; regenerate with run.py api \u003Cskill dir> --write -->\n\n### `cytotrace(adata, *, n_neighbors: int=30, layer: str | None=None)`\n\nAnnotate a complexity-based potency proxy in place, preserving X.\n\nThis is CytoTRACE-simple, not the published CytoTRACE or CytoTRACE 2.\nIt counts positive expression, smooths rank scores, ranks them again\nand bins them into six relative categories. Existing neighbors are reused.\n\n:param adata: AnnData with expression and optionally PCA\u002Fneighbors.\n:param n_neighbors: Neighbors to construct when absent; default 30.\n:param layer: Expression layer for gene detection; None uses X.\n    Use counts or unscaled log expression, not centered\u002Fscaled X.\n:returns: The same AnnData with cytotrace_score, cytotrace_gene_count\n    and cytotrace_potency in obs; run_info returns diagnostics.\n:raises ValueError: The input is empty, a layer is missing, or neighbors \u003C 1.\n\n### `run_info(adata, *, keep: bool=True) -> dict`\n\nRead JSON potency diagnostics; keep=False removes them from uns.\n\n### `potency_table(adata) -> pd.DataFrame`\n\nReturn per-cell score, category and detected-gene count, indexed by cell.\n\n### `potency_composition(adata) -> pd.DataFrame`\n\nReturn counts for the six relative potency bins; they are not cell-type calls.\n\n### `potency_figure(adata)`\n\nReturn a matplotlib Figure showing the potency score distribution.\n\n\u003C!-- api:end -->\n\n## Methods and parameters\n\nCytoTRACE-simple counts positive expression, rank-normalizes that complexity,\nsmooths on a neighbor graph, ranks again and assigns six relative bins.\nIt is not the published CytoTRACE or CytoTRACE 2 model.\n\n`n_neighbors=30` retains the CLI default and is used only if a neighbor graph\nmust be built. `layer=None` uses X; specify a counts layer or unscaled\nlog-normalized expression. Computation is deterministic for a fixed graph.\n\n## Gotchas\n\n- The second rank transform makes the six `cytotrace_potency` bins approximately\n  equal-sized when scores have no ties. Labels such as Totipotent are names\n  of these bins, not evidence that those cells are biologically totipotent (`_api.py:112`).\n- Positive values in centered\u002Fscaled X do not count detected genes. Use\n  `layer=\"counts\"` or an unscaled matrix; inspect `potency_table` (`_api.py:72`).\n- Existing neighbors are reused regardless of `n_neighbors`. The CLI's\n  processed PBMC demo has scaled X and is retained only for compatibility (`_api.py:80`).\n- `run_info(adata)[\"degenerate\"]` marks at most one occupied category. It\n  does not raise; the CLI mirrors this under `result.json[\"summary\"]`.\n\n## Inputs & Outputs\n\nInput is AnnData with expression, optionally PCA and neighbors. The API adds\n`cytotrace_score`, `cytotrace_potency` and `cytotrace_gene_count` to obs and\nreturns tables\u002FFigures without writing files.\n\nThe CLI writes `processed.h5ad`, `tables\u002Fcytotrace_scores.csv`, `report.md`,\n`result.json`, `figure_data\u002Fcytotrace_embedding.csv` and potency\u002Fdistribution\nplots under `figures\u002F`. R-enhanced plots are optional.\n\n## Key CLI\n\n```bash\npython skills\u002Fsinglecell\u002Fscrna\u002Fsc-cytotrace\u002Fsc_cytotrace.py --demo --output \u002Ftmp\u002Fsc_cytotrace_demo\npython skills\u002Fsinglecell\u002Fscrna\u002Fsc-cytotrace\u002Fsc_cytotrace.py --input normalized.h5ad --n-neighbors 30 --output results\u002F\n```\n\n## Dependencies\n\n`anndata`, `matplotlib`, `numpy`, `pandas`, `scanpy`, `scipy`\n",{"name":5,"tags":41,"description":7},[25,29,23,22,21,20],"main","90a3bec3e6549bc33dddbf67e4b23869736c49d1","skills\u002Fsinglecell\u002Fscrna\u002Fsc-cytotrace",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":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add TianGzlab\u002FOmicsClaw --skill sc-cytotrace",{"tool":56,"command":57},"bunx","bunx skills add TianGzlab\u002FOmicsClaw --skill sc-cytotrace",{"tool":59,"command":60},"pnpm","pnpm dlx skills add TianGzlab\u002FOmicsClaw --skill sc-cytotrace","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fsinglecell\u002Fscrna\u002Fsc-cytotrace\u002FSKILL.md",true,[64,70,74,80,84,88,92,96,100,104],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"_api.py","SCRIPT","脚本",8192,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fsinglecell\u002Fscrna\u002Fsc-cytotrace\u002F_api.py",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"examples\u002Fexample_step.py",942,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fsinglecell\u002Fscrna\u002Fsc-cytotrace\u002Fexamples\u002Fexample_step.py",{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fmethodology.md","REFERENCE","参考文档",2760,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fsinglecell\u002Fscrna\u002Fsc-cytotrace\u002Freferences\u002Fmethodology.md",{"path":81,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Foutput_contract.md",758,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fsinglecell\u002Fscrna\u002Fsc-cytotrace\u002Freferences\u002Foutput_contract.md",{"path":85,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fparameters.md",509,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fsinglecell\u002Fscrna\u002Fsc-cytotrace\u002Freferences\u002Fparameters.md",{"path":89,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Fr_visualization.md",1009,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fsinglecell\u002Fscrna\u002Fsc-cytotrace\u002Freferences\u002Fr_visualization.md",{"path":93,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":94,"sourceHtmlUrl":95},"sc_cytotrace.py",19943,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fsinglecell\u002Fscrna\u002Fsc-cytotrace\u002Fsc_cytotrace.py",{"path":97,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":98,"sourceHtmlUrl":99},"scripts\u002Fclean-gone",1586,"https:\u002F\u002Fgithub.com\u002Fyxc023\u002Fagent-config-studio\u002Fblob\u002Ffeat\u002Fui-redesign-card-grid\u002F.opencode\u002Fskills\u002Fgit-clean-gone-branches\u002Fscripts\u002Fclean-gone",{"path":101,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":102,"sourceHtmlUrl":103},"tests\u002Ftest_cytotrace_api.py",1143,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fsinglecell\u002Fscrna\u002Fsc-cytotrace\u002Ftests\u002Ftest_cytotrace_api.py",{"path":105,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":106,"sourceHtmlUrl":107},"tests\u002Ftest_sc_cytotrace_methods.py",2960,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fsinglecell\u002Fscrna\u002Fsc-cytotrace\u002Ftests\u002Ftest_sc_cytotrace_methods.py",[109,122,134,150,176,195],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":36},"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",[],[116,117,118,119,120,35,121],"demo skill","demo","tests","fixture","fixture skill","environment",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":36},"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",[],[129,130,131,118,119,132,133],"domains","fake domains","deployment","never","test",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":36},"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",[],[141,142,143,144,145,146,147,148,149],"me","replace me skill","template","directory","skill template","existing skill","new skill","bootstrap","scaffold",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":36},"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",[],[157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,35,174,175],"velocity","spatial velocity","Spatial","scvelo","input","starsolo","time","deep","RNA","kb-python","via","velocyto","rna-velocity","velovi","dynamics","upstream","kb","python","deterministic",{"skillNo":177,"name":178,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":182,"publishedAt":36},"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",[],[159,19,183,184,185,186,187,188,167,189,190,26,191,32,157,192,35,193,27,194],"spatial trajectory","state","terminal","lineage","diffusion","cellrank","palantir","dpt","probability","default","branch","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":36},"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,159,167,204,205,206,207,208,209,129,210,211,212,213,35,27,214,215,216],"spatial statistics","statistics","nhood-enrichment","co-occurrence","ripley","geary","moran","neighbourhood","ranking","autocorrelation","local","domain","detection","enrichment","stats"]