[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DTA8XG39S2TK526MT8PE9H":3,"skill-same:01M6DTA8XG39S2TK526MT8PE9H":121},{"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":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M6DTA8XG39S2TK526MT8PE9H","bulkrna-de",null,"Load when comparing gene expression between two conditions in bulk RNA-seq count data. Skip when the data is single-cell (use sc-de); spatial (use spatial-de); you need exon-level alternative splicing (use bulkrna-splicing).","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\u002Fbulkrna\u002Fbulkrna-de\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"bulkrna de","bulkrna","expression","fold-change","MA-plot","volcano","DESeq2","differential-expression","single-cell","change","cell","gene expression","RNA","Spatial","Fold","use","analysis","data","2026-11-10 10:12:30",false,"---\nname: bulkrna-de\ndescription: Load when comparing gene expression between two conditions in bulk RNA-seq count data. Skip\n  when the data is single-cell (use sc-de); spatial (use spatial-de); you need exon-level alternative\n  splicing (use bulkrna-splicing).\ntrigger: differential expression, DE analysis, DESeq2, volcano plot, fold change, DEGs, bulk DE\ntags:\n- bulkrna\n- differential-expression\n- DESeq2\n- volcano\n- MA-plot\n- fold-change\n---\n\n# Bulk differential expression\n\n## Purpose\n\nCompare two prefix-selected groups in a raw count matrix. The default backend is R DESeq2; `--method ttest` selects Welch tests. The R bridge applies apeglm or ashr shrinkage when installed, otherwise raw estimates. This is not a single-cell or splicing analysis.\n\n## Inputs & Outputs\n\nCLI input is a gene-first CSV. The library takes a gene-indexed DataFrame. Both require nonnegative integer counts. Outputs include `tables\u002Fde_results.csv`, `tables\u002Fde_significant.csv`, four diagnostic figures, `report.md` and `result.json`; DESeq2 intermediate tables are backend-dependent.\n\n## API\n\n\u003C!-- api:begin generated from _api.py; regenerate with run.py api \u003Cskill dir> --write -->\n\n### `differential_expression(counts, *, method='deseq2', control_prefix='ctrl', treat_prefix='treat', padj_cutoff=0.05, lfc_cutoff=1.0, min_count=10)`\n\nCompare treatment against control without changing the count matrix.\n\n:param counts: Gene-indexed DataFrame of nonnegative integer raw counts.\n:param method: CLI default deseq2 (R); ttest selects Welch tests.\n:param control_prefix: CLI default ctrl selects control columns.\n:param treat_prefix: CLI default treat selects treatment columns.\n:param padj_cutoff: CLI default 0.05; significance requires a smaller adjusted p.\n:param lfc_cutoff: CLI default 1.0; absolute log2 effect must exceed it.\n:param min_count: Legacy filtering default 10 for total counts across selected samples.\n:returns: DE DataFrame with effect estimates, p values and run diagnostics in attrs.\n:raises ValueError: Counts, method, groups or thresholds are invalid.\n:raises ImportError: R DESeq2 is missing; use install_skill_deps for DESeq2.\n\n### `run_info(result, *, keep=True)`\n\nRead filtering, group and executed-method diagnostics.\n\n:param result: DataFrame returned by differential_expression.\n:param keep: Default True; False removes diagnostics from attrs.\n:returns: Diagnostic dictionary, empty after removal.\n\n### `volcano_figure(result)`\n\nPlot reported log2 effects and adjusted significance.\n\n:param result: DE DataFrame with log2FoldChange and padj.\n:returns: A matplotlib Figure without saving files.\n:raises KeyError: Required columns are absent.\n\n\u003C!-- api:end -->\n\n## Key CLI\n\n```bash\npython skills\u002Fbulkrna\u002Fbulkrna-de\u002Fbulkrna_de.py --demo --output \u002Ftmp\u002Fbulkrna-de\npython skills\u002Fbulkrna\u002Fbulkrna-de\u002Fbulkrna_de.py --input counts.csv --output results\u002Fde --method ttest\n```\n\n## Gotchas\n\n- `run_info(result)['method_used']` identifies the executed method. Missing DESeq2 raises an installation hint; a failed R fit can fall back to Welch with a warning and `fallback_reason`.\n- `run_info(result)['lfc_note']` distinguishes Welch effects from the R bridge's package-dependent shrinkage. Welch tests are not a substitute for biological replication.\n- `run_info(result)['n_tested']` counts genes after the default total-count filter of 10. Unmatched sample prefixes do not enter the comparison.\n\n## Dependencies\n\n`numpy`, `pandas`, `scipy`, `matplotlib`, `DESeq2`\n","# Bulk differential expression\n\n## Purpose\n\nCompare two prefix-selected groups in a raw count matrix. The default backend is R DESeq2; `--method ttest` selects Welch tests. The R bridge applies apeglm or ashr shrinkage when installed, otherwise raw estimates. This is not a single-cell or splicing analysis.\n\n## Inputs & Outputs\n\nCLI input is a gene-first CSV. The library takes a gene-indexed DataFrame. Both require nonnegative integer counts. Outputs include `tables\u002Fde_results.csv`, `tables\u002Fde_significant.csv`, four diagnostic figures, `report.md` and `result.json`; DESeq2 intermediate tables are backend-dependent.\n\n## API\n\n\u003C!-- api:begin generated from _api.py; regenerate with run.py api \u003Cskill dir> --write -->\n\n### `differential_expression(counts, *, method='deseq2', control_prefix='ctrl', treat_prefix='treat', padj_cutoff=0.05, lfc_cutoff=1.0, min_count=10)`\n\nCompare treatment against control without changing the count matrix.\n\n:param counts: Gene-indexed DataFrame of nonnegative integer raw counts.\n:param method: CLI default deseq2 (R); ttest selects Welch tests.\n:param control_prefix: CLI default ctrl selects control columns.\n:param treat_prefix: CLI default treat selects treatment columns.\n:param padj_cutoff: CLI default 0.05; significance requires a smaller adjusted p.\n:param lfc_cutoff: CLI default 1.0; absolute log2 effect must exceed it.\n:param min_count: Legacy filtering default 10 for total counts across selected samples.\n:returns: DE DataFrame with effect estimates, p values and run diagnostics in attrs.\n:raises ValueError: Counts, method, groups or thresholds are invalid.\n:raises ImportError: R DESeq2 is missing; use install_skill_deps for DESeq2.\n\n### `run_info(result, *, keep=True)`\n\nRead filtering, group and executed-method diagnostics.\n\n:param result: DataFrame returned by differential_expression.\n:param keep: Default True; False removes diagnostics from attrs.\n:returns: Diagnostic dictionary, empty after removal.\n\n### `volcano_figure(result)`\n\nPlot reported log2 effects and adjusted significance.\n\n:param result: DE DataFrame with log2FoldChange and padj.\n:returns: A matplotlib Figure without saving files.\n:raises KeyError: Required columns are absent.\n\n\u003C!-- api:end -->\n\n## Key CLI\n\n```bash\npython skills\u002Fbulkrna\u002Fbulkrna-de\u002Fbulkrna_de.py --demo --output \u002Ftmp\u002Fbulkrna-de\npython skills\u002Fbulkrna\u002Fbulkrna-de\u002Fbulkrna_de.py --input counts.csv --output results\u002Fde --method ttest\n```\n\n## Gotchas\n\n- `run_info(result)['method_used']` identifies the executed method. Missing DESeq2 raises an installation hint; a failed R fit can fall back to Welch with a warning and `fallback_reason`.\n- `run_info(result)['lfc_note']` distinguishes Welch effects from the R bridge's package-dependent shrinkage. Welch tests are not a substitute for biological replication.\n- `run_info(result)['n_tested']` counts genes after the default total-count filter of 10. Unmatched sample prefixes do not enter the comparison.\n\n## Dependencies\n\n`numpy`, `pandas`, `scipy`, `matplotlib`, `DESeq2`\n",{"name":5,"tags":41,"trigger":42,"description":7},[19,25,24,23,22,21],"differential expression, DE analysis, DESeq2, volcano plot, fold change, DEGs, bulk DE","main","90a3bec3e6549bc33dddbf67e4b23869736c49d1","skills\u002Fbulkrna\u002Fbulkrna-de",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":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add TianGzlab\u002FOmicsClaw --skill bulkrna-de",{"tool":57,"command":58},"bunx","bunx skills add TianGzlab\u002FOmicsClaw --skill bulkrna-de",{"tool":60,"command":61},"pnpm","pnpm dlx skills add TianGzlab\u002FOmicsClaw --skill bulkrna-de","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fbulkrna\u002Fbulkrna-de\u002FSKILL.md",true,[65,71,75,81,85,89,93,97,101,105,109,113,117],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"_api.py","SCRIPT","脚本",3484,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fbulkrna\u002Fbulkrna-de\u002F_api.py",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"bulkrna_de.py",10788,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fbulkrna\u002Fbulkrna-de\u002Fbulkrna_de.py",{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"evals\u002Fevals.json","REFERENCE","参考文档",6089,"https:\u002F\u002Fgithub.com\u002Fpatinaproject\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsite-architecture\u002Fevals\u002Fevals.json",{"path":82,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":83,"sourceHtmlUrl":84},"examples\u002Fexample_step.py",552,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fbulkrna\u002Fbulkrna-de\u002Fexamples\u002Fexample_step.py",{"path":86,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fmermaid-templates.md",4922,"https:\u002F\u002Fgithub.com\u002Fpatinaproject\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsite-architecture\u002Freferences\u002Fmermaid-templates.md",{"path":90,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fmethodology.md",1061,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fbulkrna\u002Fbulkrna-de\u002Freferences\u002Fmethodology.md",{"path":94,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fnavigation-patterns.md",10733,"https:\u002F\u002Fgithub.com\u002Fpatinaproject\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsite-architecture\u002Freferences\u002Fnavigation-patterns.md",{"path":98,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Foutput_contract.md",1595,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fbulkrna\u002Fbulkrna-de\u002Freferences\u002Foutput_contract.md",{"path":102,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":103,"sourceHtmlUrl":104},"references\u002Fparameters.md",294,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fbulkrna\u002Fbulkrna-de\u002Freferences\u002Fparameters.md",{"path":106,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":107,"sourceHtmlUrl":108},"references\u002Fsite-type-templates.md",9624,"https:\u002F\u002Fgithub.com\u002Fpatinaproject\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsite-architecture\u002Freferences\u002Fsite-type-templates.md",{"path":110,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":111,"sourceHtmlUrl":112},"tests\u002F__init__.py",0,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fbulkrna\u002Fbulkrna-de\u002Ftests\u002F__init__.py",{"path":114,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":115,"sourceHtmlUrl":116},"tests\u002Ftest_api.py",1924,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fbulkrna\u002Fbulkrna-de\u002Ftests\u002Ftest_api.py",{"path":118,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":119,"sourceHtmlUrl":120},"tests\u002Ftest_bulkrna_de.py",1948,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fbulkrna\u002Fbulkrna-de\u002Ftests\u002Ftest_bulkrna_de.py",[122,135,147,163,187,208],{"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},"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",[],[129,130,131,132,133,33,134],"demo skill","demo","tests","fixture","fixture skill","environment",{"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":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",[],[142,143,144,131,132,145,146],"domains","fake domains","deployment","never","test",{"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":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",[],[154,155,156,157,158,159,160,161,162],"me","replace me skill","template","directory","skill template","existing skill","new skill","bootstrap","scaffold",{"skillNo":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"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",[],[170,171,31,172,173,174,175,176,30,177,178,179,180,181,182,183,184,33,185,186],"velocity","spatial velocity","scvelo","input","starsolo","time","deep","kb-python","via","velocyto","rna-velocity","velovi","dynamics","upstream","kb","python","deterministic",{"skillNo":188,"name":189,"nameZh":6,"description":190,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":191,"categories":192,"keywords":193,"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",[],[31,194,195,196,197,198,199,200,178,201,202,203,204,28,170,205,33,206,207,35],"trajectory","spatial trajectory","state","terminal","lineage","diffusion","cellrank","palantir","dpt","pseudotime","probability","default","branch","anndata",{"skillNo":209,"name":210,"nameZh":6,"description":211,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":212,"categories":213,"keywords":214,"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",[],[215,216,31,178,217,218,219,220,221,222,142,223,224,225,226,33,207,227,228,229],"spatial statistics","statistics","nhood-enrichment","co-occurrence","ripley","geary","moran","neighbourhood","ranking","autocorrelation","local","domain","detection","enrichment","stats"]