[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DTEWD7ZGQ1159N6DZR4SSB":3,"skill-same:01M6DTEWD7ZGQ1159N6DZR4SSB":99},{"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":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":50,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":52,"install":53,"resources":66},"01M6DTEWD7ZGQ1159N6DZR4SSB","proteomics-ms-qc",null,"Load when computing protein-table QC — proteins × samples count, missing-value rate, intensity CV (median + mean) — from a MaxQuant \u002F FragPipe \u002F DIA-NN protein-quantification CSV. Skip when raw mzML \u002F RAW spectra are the input (run a search engine first); peptide-level QC is needed (use proteomics-identification).","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\u002Fproteomics\u002Fproteomics-ms-qc\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"proteomics ms qc","ms","proteomics","qc","dia","cv","missing-values","intensity","fragpipe","maxquant","median","missing","spec","proteins","use","engine","first","csv","search","run","2026-11-10 10:12:30",false,"---\nname: proteomics-ms-qc\ndescription: Load when computing protein-table QC — proteins × samples count, missing-value rate, intensity\n  CV (median + mean) — from a MaxQuant \u002F FragPipe \u002F DIA-NN protein-quantification CSV. Skip when raw mzML\n  \u002F RAW spectra are the input (run a search engine first); peptide-level QC is needed (use proteomics-identification).\ntrigger: MS QC, mass spec QC, PTXQC, rawTools\ntags:\n- proteomics\n- qc\n- ms\n- maxquant\n- intensity\n- missing-values\n- cv\n---\n\n# proteomics-ms-qc\n\n## When to use\n\nNumeric columns excluding metadata-like names are samples; if none remain, all numeric columns are used. Zero and NaN count as missing.\nUse existing search-engine tables; this skill does not search raw spectra.\n\n## Use from a step\n\n```python\nfrom skills._sdk.notebook import load_skill, write_output\nlibrary = load_skill('proteomics-ms-qc')\ndata = library.demo_data(random_state=42)\nresult = library.quality_control(data)\nwrite_output(result, 'tables\u002Fqc_metrics.csv')\n```\n\nFor real data, use `read_input` and pass any `read_table` helper as `reader=`.\nThe executable `examples\u002Fexample_step.py` also checks the result and writes a Figure.\n\n## API\n\n\u003C!-- api:begin generated from _api.py; regenerate with run.py api \u003Cskill dir> --write -->\n\n### `quality_control(data: pd.DataFrame) -> pd.DataFrame`\n\nReturn a one-row QC table without changing input intensities.\n\n:param data: Protein rows and numeric intensity columns; metadata-like names are excluded when possible.\n:returns: Scalar QC metrics; per-sample completeness and selected columns are in run_info.\n:raises ValueError: There are no proteins or numeric intensity columns.\n\n### `run_info(table: pd.DataFrame, *, keep: bool=True) -> dict`\n\nRead QC diagnostics.\n\n:param table: Output of quality_control.\n:param keep: True preserves attrs; False removes diagnostics.\n:returns: A separate dictionary with selected sample columns and completeness.\n:raises TypeError: The input is not a DataFrame.\n\n### `completeness_figure(table: pd.DataFrame)`\n\nPlot detected protein percentages per sample.\n\n:param table: QC table retaining run_info attributes.\n:returns: A matplotlib Figure without writing files.\n:raises KeyError: QC diagnostics are absent.\n\n### `demo_data(*, random_state: int=42) -> pd.DataFrame`\n\nGenerate a synthetic protein intensity table.\n\n:param random_state: CLI seed 42; change for another simulation.\n:returns: One hundred proteins and five sample columns.\n:raises ValueError: The seed is invalid.\n\n\u003C!-- api:end -->\n\n## Methods and parameters\n\nNumeric columns excluding metadata-like names are samples; if none remain, all numeric columns are used. Zero and NaN count as missing.\nFunctions return new DataFrames. `run_info(result)` reads diagnostic attrs;\nuse `keep=False` before serialization when those attrs are not needed.\n\n## Gotchas\n\n- quality_control reports per-protein CV across positive intensities. run_info retains the actual sample columns and per-sample completeness.\n- `demo_data` uses seed 42, matching the CLI; every demo is synthetic.\n- `run_info` lives in DataFrame attrs and is not preserved by CSV serialization.\n\n## Inputs and outputs\n\nThe CLI reads CSV tables and writes:\n\n- tables\u002Fqc_metrics.csv\n- report.md\n- result.json\n- `demo_proteomics.csv` is written only with `--demo`.\n\n- `reproducibility\u002Fcommands.sh` records the CLI invocation template.\n\nFunctions return data and Figures without writing files. Steps own their outputs.\nDemo mode also writes its synthetic input when the original CLI used a file.\n\n## CLI\n\n```bash\npython skills\u002Fproteomics\u002Fproteomics-ms-qc\u002Fproteomics_ms_qc.py --demo --output \u002Ftmp\u002Fproteomics_ms_qc\n```\n\nFor real input replace `--demo` with `--input \u003Ctable>`.\n\n\n## See also\n\n- `references\u002Fmethodology.md`\n- `references\u002Fparameters.md`\n- `references\u002Foutput_contract.md`\n- `proteomics-data-import` for protein-table normalization; `proteomics-de` for comparisons.\n\n## Dependencies\n\n`numpy`, `pandas`, `matplotlib`\n","# proteomics-ms-qc\n\n## When to use\n\nNumeric columns excluding metadata-like names are samples; if none remain, all numeric columns are used. Zero and NaN count as missing.\nUse existing search-engine tables; this skill does not search raw spectra.\n\n## Use from a step\n\n```python\nfrom skills._sdk.notebook import load_skill, write_output\nlibrary = load_skill('proteomics-ms-qc')\ndata = library.demo_data(random_state=42)\nresult = library.quality_control(data)\nwrite_output(result, 'tables\u002Fqc_metrics.csv')\n```\n\nFor real data, use `read_input` and pass any `read_table` helper as `reader=`.\nThe executable `examples\u002Fexample_step.py` also checks the result and writes a Figure.\n\n## API\n\n\u003C!-- api:begin generated from _api.py; regenerate with run.py api \u003Cskill dir> --write -->\n\n### `quality_control(data: pd.DataFrame) -> pd.DataFrame`\n\nReturn a one-row QC table without changing input intensities.\n\n:param data: Protein rows and numeric intensity columns; metadata-like names are excluded when possible.\n:returns: Scalar QC metrics; per-sample completeness and selected columns are in run_info.\n:raises ValueError: There are no proteins or numeric intensity columns.\n\n### `run_info(table: pd.DataFrame, *, keep: bool=True) -> dict`\n\nRead QC diagnostics.\n\n:param table: Output of quality_control.\n:param keep: True preserves attrs; False removes diagnostics.\n:returns: A separate dictionary with selected sample columns and completeness.\n:raises TypeError: The input is not a DataFrame.\n\n### `completeness_figure(table: pd.DataFrame)`\n\nPlot detected protein percentages per sample.\n\n:param table: QC table retaining run_info attributes.\n:returns: A matplotlib Figure without writing files.\n:raises KeyError: QC diagnostics are absent.\n\n### `demo_data(*, random_state: int=42) -> pd.DataFrame`\n\nGenerate a synthetic protein intensity table.\n\n:param random_state: CLI seed 42; change for another simulation.\n:returns: One hundred proteins and five sample columns.\n:raises ValueError: The seed is invalid.\n\n\u003C!-- api:end -->\n\n## Methods and parameters\n\nNumeric columns excluding metadata-like names are samples; if none remain, all numeric columns are used. Zero and NaN count as missing.\nFunctions return new DataFrames. `run_info(result)` reads diagnostic attrs;\nuse `keep=False` before serialization when those attrs are not needed.\n\n## Gotchas\n\n- quality_control reports per-protein CV across positive intensities. run_info retains the actual sample columns and per-sample completeness.\n- `demo_data` uses seed 42, matching the CLI; every demo is synthetic.\n- `run_info` lives in DataFrame attrs and is not preserved by CSV serialization.\n\n## Inputs and outputs\n\nThe CLI reads CSV tables and writes:\n\n- tables\u002Fqc_metrics.csv\n- report.md\n- result.json\n- `demo_proteomics.csv` is written only with `--demo`.\n\n- `reproducibility\u002Fcommands.sh` records the CLI invocation template.\n\nFunctions return data and Figures without writing files. Steps own their outputs.\nDemo mode also writes its synthetic input when the original CLI used a file.\n\n## CLI\n\n```bash\npython skills\u002Fproteomics\u002Fproteomics-ms-qc\u002Fproteomics_ms_qc.py --demo --output \u002Ftmp\u002Fproteomics_ms_qc\n```\n\nFor real input replace `--demo` with `--input \u003Ctable>`.\n\n\n## See also\n\n- `references\u002Fmethodology.md`\n- `references\u002Fparameters.md`\n- `references\u002Foutput_contract.md`\n- `proteomics-data-import` for protein-table normalization; `proteomics-de` for comparisons.\n\n## Dependencies\n\n`numpy`, `pandas`, `matplotlib`\n",{"name":5,"tags":43,"trigger":44,"description":7},[20,21,19,27,25,24,23],"MS QC, mass spec QC, PTXQC, rawTools","main","90a3bec3e6549bc33dddbf67e4b23869736c49d1","skills\u002Fproteomics\u002Fproteomics-ms-qc",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":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add TianGzlab\u002FOmicsClaw --skill proteomics-ms-qc",{"tool":59,"command":60},"bunx","bunx skills add TianGzlab\u002FOmicsClaw --skill proteomics-ms-qc",{"tool":62,"command":63},"pnpm","pnpm dlx skills add TianGzlab\u002FOmicsClaw --skill proteomics-ms-qc","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-ms-qc\u002FSKILL.md",true,[67,73,77,81,87,91,95],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"_api.py","SCRIPT","脚本",2276,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-ms-qc\u002F_api.py",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"examples\u002Fexample_step.py",517,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-ms-qc\u002Fexamples\u002Fexample_step.py",{"path":78,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":79,"sourceHtmlUrl":80},"proteomics_ms_qc.py",5206,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-ms-qc\u002Fproteomics_ms_qc.py",{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fmethodology.md","REFERENCE","参考文档",292,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-ms-qc\u002Freferences\u002Fmethodology.md",{"path":88,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Foutput_contract.md",336,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-ms-qc\u002Freferences\u002Foutput_contract.md",{"path":92,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":93,"sourceHtmlUrl":94},"references\u002Fparameters.md",310,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-ms-qc\u002Freferences\u002Fparameters.md",{"path":96,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":97,"sourceHtmlUrl":98},"tests\u002Ftest_api.py",742,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-ms-qc\u002Ftests\u002Ftest_api.py",[100,113,125,141,167,190],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"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",[],[107,108,109,110,111,32,112],"demo skill","demo","tests","fixture","fixture skill","environment",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"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",[],[120,121,122,109,110,123,124],"domains","fake domains","deployment","never","test",{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"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",[],[132,133,134,135,136,137,138,139,140],"me","replace me skill","template","directory","skill template","existing skill","new skill","bootstrap","scaffold",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"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",[],[148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,32,165,166],"velocity","spatial velocity","Spatial","scvelo","input","starsolo","time","deep","RNA","kb-python","via","velocyto","rna-velocity","velovi","dynamics","upstream","kb","python","deterministic",{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":173,"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",[],[150,174,175,176,177,178,179,180,158,181,182,183,184,185,148,186,32,187,188,189],"trajectory","spatial trajectory","state","terminal","lineage","diffusion","cellrank","palantir","dpt","pseudotime","probability","cell","default","branch","anndata","data",{"skillNo":191,"name":192,"nameZh":6,"description":193,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":194,"categories":195,"keywords":196,"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",[],[197,198,150,158,199,200,201,202,203,204,120,205,206,207,208,32,188,209,210,211],"spatial statistics","statistics","nhood-enrichment","co-occurrence","ripley","geary","moran","neighbourhood","ranking","autocorrelation","local","domain","detection","enrichment","stats"]