[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DTF4S2PGANGZXYT7PAEEKF":3,"skill-same:01M6DTF4S2PGANGZXYT7PAEEKF":101},{"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},"01M6DTF4S2PGANGZXYT7PAEEKF","proteomics-quantification",null,"Load when computing per-protein abundance from a peptide \u002F PSM table via LFQ (intensity summation), iBAQ (intensity \u002F tryptic peptide count), or spectral counting (PSMs per protein). Skip when the input is already protein-level (use proteomics-ms-qc); label-based TMT \u002F iTRAQ workflows (search upstream first).","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-quantification\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"proteomics quantification","quantification","proteomics","dia","spectral-counting","ibaq","lfq","intensity","qc","input","workflows","upstream","ms","use","table","PSM","first","search","2026-11-10 10:12:30",false,"---\nname: proteomics-quantification\ndescription: Load when computing per-protein abundance from a peptide \u002F PSM table via LFQ (intensity summation),\n  iBAQ (intensity \u002F tryptic peptide count), or spectral counting (PSMs per protein). Skip when the input\n  is already protein-level (use proteomics-ms-qc); label-based TMT \u002F iTRAQ workflows (search upstream\n  first).\ntrigger: protein quantification, LFQ, TMT, DIA, DIA-NN, Skyline\ntags:\n- proteomics\n- quantification\n- lfq\n- ibaq\n- spectral-counting\n---\n\n# proteomics-quantification\n\n## When to use\n\nlfq sums intensities; spectral_count counts PSM rows; ibaq divides by supplied theoretical counts or a sequence-derived tryptic count.\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-quantification')\ndata = library.demo_data(random_state=42)\nresult = library.quantify(data)\nwrite_output(result, 'tables\u002Fprotein_abundance.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### `quantify(peptides: pd.DataFrame, *, method: str='lfq') -> pd.DataFrame`\n\nReturn a new protein abundance table without changing the peptides.\n\n:param peptides: PSM rows with protein and method-specific intensity or sequence columns.\n:param method: CLI default lfq sums intensity; spectral_count counts rows; ibaq divides by theoretical peptides.\n:returns: Protein abundances with diagnostics in attrs.\n:raises ValueError: Required columns or positive theoretical counts are missing.\n\n### `run_info(table: pd.DataFrame, *, keep: bool=True) -> dict`\n\nRead the diagnostics attached to a returned table.\n\n:param table: Table returned by quantify.\n:param keep: True preserves attrs; the CLI uses False before serialization.\n:returns: A separate diagnostic dictionary.\n:raises TypeError: The input is not a DataFrame.\n\n### `abundance_figure(table: pd.DataFrame)`\n\nPlot the distribution of protein abundance.\n\n:param table: Output of quantify, including abundance.\n:returns: A matplotlib Figure; no files are written.\n:raises KeyError: The abundance column is absent.\n\n### `demo_data(*, random_state: int=42) -> pd.DataFrame`\n\nGenerate synthetic peptide data in memory.\n\n:param random_state: CLI seed 42; change to generate another simulation.\n:returns: Synthetic peptides with protein sequences for iBAQ.\n:raises ValueError: The seed is invalid.\n\n\u003C!-- api:end -->\n\n## Methods and parameters\n\nlfq sums intensities; spectral_count counts PSM rows; ibaq divides by supplied theoretical counts or a sequence-derived tryptic count.\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- quantify rejects iBAQ without sequence or n_theoretical_peptides. LFQ is intensity summation, not MaxLFQ normalization.\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\u002Fprotein_abundance.csv\n- report.md\n- result.json\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-quantification\u002Fproteomics_quantification.py --demo --output \u002Ftmp\u002Fproteomics_quantification\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-quantification\n\n## When to use\n\nlfq sums intensities; spectral_count counts PSM rows; ibaq divides by supplied theoretical counts or a sequence-derived tryptic count.\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-quantification')\ndata = library.demo_data(random_state=42)\nresult = library.quantify(data)\nwrite_output(result, 'tables\u002Fprotein_abundance.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### `quantify(peptides: pd.DataFrame, *, method: str='lfq') -> pd.DataFrame`\n\nReturn a new protein abundance table without changing the peptides.\n\n:param peptides: PSM rows with protein and method-specific intensity or sequence columns.\n:param method: CLI default lfq sums intensity; spectral_count counts rows; ibaq divides by theoretical peptides.\n:returns: Protein abundances with diagnostics in attrs.\n:raises ValueError: Required columns or positive theoretical counts are missing.\n\n### `run_info(table: pd.DataFrame, *, keep: bool=True) -> dict`\n\nRead the diagnostics attached to a returned table.\n\n:param table: Table returned by quantify.\n:param keep: True preserves attrs; the CLI uses False before serialization.\n:returns: A separate diagnostic dictionary.\n:raises TypeError: The input is not a DataFrame.\n\n### `abundance_figure(table: pd.DataFrame)`\n\nPlot the distribution of protein abundance.\n\n:param table: Output of quantify, including abundance.\n:returns: A matplotlib Figure; no files are written.\n:raises KeyError: The abundance column is absent.\n\n### `demo_data(*, random_state: int=42) -> pd.DataFrame`\n\nGenerate synthetic peptide data in memory.\n\n:param random_state: CLI seed 42; change to generate another simulation.\n:returns: Synthetic peptides with protein sequences for iBAQ.\n:raises ValueError: The seed is invalid.\n\n\u003C!-- api:end -->\n\n## Methods and parameters\n\nlfq sums intensities; spectral_count counts PSM rows; ibaq divides by supplied theoretical counts or a sequence-derived tryptic count.\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- quantify rejects iBAQ without sequence or n_theoretical_peptides. LFQ is intensity summation, not MaxLFQ normalization.\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\u002Fprotein_abundance.csv\n- report.md\n- result.json\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-quantification\u002Fproteomics_quantification.py --demo --output \u002Ftmp\u002Fproteomics_quantification\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":41,"trigger":42,"description":7},[20,19,24,23,22],"protein quantification, LFQ, TMT, DIA, DIA-NN, Skyline","main","90a3bec3e6549bc33dddbf67e4b23869736c49d1","skills\u002Fproteomics\u002Fproteomics-quantification",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 proteomics-quantification",{"tool":57,"command":58},"bunx","bunx skills add TianGzlab\u002FOmicsClaw --skill proteomics-quantification",{"tool":60,"command":61},"pnpm","pnpm dlx skills add TianGzlab\u002FOmicsClaw --skill proteomics-quantification","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-quantification\u002FSKILL.md",true,[65,71,75,79,85,89,93,97],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"_api.py","SCRIPT","脚本",3122,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-quantification\u002F_api.py",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"examples\u002Fexample_step.py",470,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-quantification\u002Fexamples\u002Fexample_step.py",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"proteomics_quantification.py",5556,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-quantification\u002Fproteomics_quantification.py",{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fmethodology.md","REFERENCE","参考文档",271,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-quantification\u002Freferences\u002Fmethodology.md",{"path":86,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Foutput_contract.md",287,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-quantification\u002Freferences\u002Foutput_contract.md",{"path":90,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fparameters.md",309,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-quantification\u002Freferences\u002Fparameters.md",{"path":94,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":95,"sourceHtmlUrl":96},"tests\u002Ftest_api.py",1040,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-quantification\u002Ftests\u002Ftest_api.py",{"path":98,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":99,"sourceHtmlUrl":100},"tests\u002Ftest_interfaces.py",1600,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-quantification\u002Ftests\u002Ftest_interfaces.py",[102,115,127,143,167,190],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"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",[],[109,110,111,112,113,31,114],"demo skill","demo","tests","fixture","fixture skill","environment",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"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",[],[122,123,124,111,112,125,126],"domains","fake domains","deployment","never","test",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"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",[],[134,135,136,137,138,139,140,141,142],"me","replace me skill","template","directory","skill template","existing skill","new skill","bootstrap","scaffold",{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"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",[],[150,151,152,153,27,154,155,156,157,158,159,160,161,162,163,29,164,31,165,166],"velocity","spatial velocity","Spatial","scvelo","starsolo","time","deep","RNA","kb-python","via","velocyto","rna-velocity","velovi","dynamics","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":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",[],[152,174,175,176,177,178,179,180,159,181,182,183,184,185,150,186,31,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":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",[],[197,198,152,159,199,200,201,202,203,204,122,205,206,207,208,31,188,209,210,211],"spatial statistics","statistics","nhood-enrichment","co-occurrence","ripley","geary","moran","neighbourhood","ranking","autocorrelation","local","domain","detection","enrichment","stats"]