[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DTERC12W65CVMNTVFTR8GE":3,"skill-same:01M6DTERC12W65CVMNTVFTR8GE":100},{"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":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":51,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":53,"install":54,"resources":67},"01M6DTERC12W65CVMNTVFTR8GE","proteomics-identification",null,"Load when summarising peptide identifications (PSM count, unique peptide count, distinct protein count, score \u002F charge distributions) from a peptide-level CSV produced by MaxQuant \u002F FragPipe \u002F DIA-NN. Skip when raw spectra are the input (run a search engine first); working with protein-quantification tables (use proteomics-ms-qc).","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-identification\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"proteomics identification","proteomics","distributions","msgf","peptides","identification","fragpipe","maxquant","qc","input","dia","run","ms","use","engine","PSM","first","csv","search","database","2026-11-10 10:12:30",false,"---\nname: proteomics-identification\ndescription: Load when summarising peptide identifications (PSM count, unique peptide count, distinct\n  protein count, score \u002F charge distributions) from a peptide-level CSV produced by MaxQuant \u002F FragPipe\n  \u002F DIA-NN. Skip when raw spectra are the input (run a search engine first); working with protein-quantification\n  tables (use proteomics-ms-qc).\ntrigger: peptide identification, database search, MaxQuant, MS-GF+, Comet, Mascot\ntags:\n- proteomics\n- identification\n- peptides\n- psm\n- maxquant\n- msgf\n---\n\n# proteomics-identification\n\n## When to use\n\nConfidence filtering uses qvalue, q-value, q_value, PEP, pep or fdr in that order. The default threshold is 0.01.\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-identification')\ndata = library.demo_data(random_state=42)\nresult = library.filter_identifications(data, n_spectra=1000)\nwrite_output(result, 'tables\u002Fpeptides.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### `read_table(path: str | Path) -> pd.DataFrame`\n\nRead peptide CSV\u002FTSV; pass this function as reader= to read_input.\n\n:param path: Peptide table; txt and tsv suffixes select tab separation.\n:returns: Table with common MaxQuant column names normalized.\n:raises OSError: The file cannot be read.\n\n### `filter_identifications(data: pd.DataFrame, *, fdr_threshold: float=0.01, n_spectra: int | None=None) -> pd.DataFrame`\n\nFilter peptide confidence values and return a new table.\n\n:param data: Existing peptide\u002Fprotein rows with optional qvalue, q-value, q_value, PEP, pep or fdr.\n:param fdr_threshold: CLI default 0.01; PEP thresholding is not a global FDR estimate.\n:param n_spectra: Total spectra; CLI default None uses retained PSM count, not an observed identification rate.\n:returns: Filtered rows with the actual confidence column and summary in attrs.\n:raises ValueError: Threshold or spectrum count is invalid.\n\n### `run_info(table: pd.DataFrame, *, keep: bool=True) -> dict`\n\nRead identification diagnostics.\n\n:param table: Filtered peptide table.\n:param keep: True preserves attrs; False removes diagnostics.\n:returns: A separate dictionary with filter provenance and summary.\n:raises TypeError: The input is not a DataFrame.\n\n### `score_figure(table: pd.DataFrame)`\n\nPlot peptide identification scores.\n\n:param table: Peptide table including score.\n:returns: A matplotlib Figure without writing files.\n:raises KeyError: score is absent.\n\n### `demo_data(*, random_state: int=42) -> pd.DataFrame`\n\nSimulate identifications for one thousand spectra.\n\n:param random_state: CLI seed 42; change for another simulation.\n:returns: Synthetic peptide identifications, not a search-engine result.\n:raises ValueError: The seed is invalid.\n\n\u003C!-- api:end -->\n\n## Methods and parameters\n\nConfidence filtering uses qvalue, q-value, q_value, PEP, pep or fdr in that order. The default threshold is 0.01.\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- filter_identifications warns and records an unfiltered result without confidence columns. PEP thresholding is not global FDR control. run_info marks inferred spectrum totals.\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\u002Fpeptides.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-identification\u002Fproteomics_identification.py --demo --output \u002Ftmp\u002Fproteomics_identification\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-identification\n\n## When to use\n\nConfidence filtering uses qvalue, q-value, q_value, PEP, pep or fdr in that order. The default threshold is 0.01.\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-identification')\ndata = library.demo_data(random_state=42)\nresult = library.filter_identifications(data, n_spectra=1000)\nwrite_output(result, 'tables\u002Fpeptides.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### `read_table(path: str | Path) -> pd.DataFrame`\n\nRead peptide CSV\u002FTSV; pass this function as reader= to read_input.\n\n:param path: Peptide table; txt and tsv suffixes select tab separation.\n:returns: Table with common MaxQuant column names normalized.\n:raises OSError: The file cannot be read.\n\n### `filter_identifications(data: pd.DataFrame, *, fdr_threshold: float=0.01, n_spectra: int | None=None) -> pd.DataFrame`\n\nFilter peptide confidence values and return a new table.\n\n:param data: Existing peptide\u002Fprotein rows with optional qvalue, q-value, q_value, PEP, pep or fdr.\n:param fdr_threshold: CLI default 0.01; PEP thresholding is not a global FDR estimate.\n:param n_spectra: Total spectra; CLI default None uses retained PSM count, not an observed identification rate.\n:returns: Filtered rows with the actual confidence column and summary in attrs.\n:raises ValueError: Threshold or spectrum count is invalid.\n\n### `run_info(table: pd.DataFrame, *, keep: bool=True) -> dict`\n\nRead identification diagnostics.\n\n:param table: Filtered peptide table.\n:param keep: True preserves attrs; False removes diagnostics.\n:returns: A separate dictionary with filter provenance and summary.\n:raises TypeError: The input is not a DataFrame.\n\n### `score_figure(table: pd.DataFrame)`\n\nPlot peptide identification scores.\n\n:param table: Peptide table including score.\n:returns: A matplotlib Figure without writing files.\n:raises KeyError: score is absent.\n\n### `demo_data(*, random_state: int=42) -> pd.DataFrame`\n\nSimulate identifications for one thousand spectra.\n\n:param random_state: CLI seed 42; change for another simulation.\n:returns: Synthetic peptide identifications, not a search-engine result.\n:raises ValueError: The seed is invalid.\n\n\u003C!-- api:end -->\n\n## Methods and parameters\n\nConfidence filtering uses qvalue, q-value, q_value, PEP, pep or fdr in that order. The default threshold is 0.01.\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- filter_identifications warns and records an unfiltered result without confidence columns. PEP thresholding is not global FDR control. run_info marks inferred spectrum totals.\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\u002Fpeptides.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-identification\u002Fproteomics_identification.py --demo --output \u002Ftmp\u002Fproteomics_identification\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":45,"description":7},[19,23,22,44,25,21],"psm","peptide identification, database search, MaxQuant, MS-GF+, Comet, Mascot","main","90a3bec3e6549bc33dddbf67e4b23869736c49d1","skills\u002Fproteomics\u002Fproteomics-identification",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":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add TianGzlab\u002FOmicsClaw --skill proteomics-identification",{"tool":60,"command":61},"bunx","bunx skills add TianGzlab\u002FOmicsClaw --skill proteomics-identification",{"tool":63,"command":64},"pnpm","pnpm dlx skills add TianGzlab\u002FOmicsClaw --skill proteomics-identification","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-identification\u002FSKILL.md",true,[68,74,78,82,88,92,96],{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"_api.py","SCRIPT","脚本",3483,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-identification\u002F_api.py",{"path":75,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":76,"sourceHtmlUrl":77},"examples\u002Fexample_step.py",514,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-identification\u002Fexamples\u002Fexample_step.py",{"path":79,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":80,"sourceHtmlUrl":81},"proteomics_identification.py",5159,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-identification\u002Fproteomics_identification.py",{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fmethodology.md","REFERENCE","参考文档",305,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-identification\u002Freferences\u002Fmethodology.md",{"path":89,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Foutput_contract.md",278,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-identification\u002Freferences\u002Foutput_contract.md",{"path":93,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Fparameters.md",288,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-identification\u002Freferences\u002Fparameters.md",{"path":97,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":98,"sourceHtmlUrl":99},"tests\u002Ftest_api.py",1309,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-identification\u002Ftests\u002Ftest_api.py",[101,114,126,142,167,190],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"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",[],[108,109,110,111,112,31,113],"demo skill","demo","tests","fixture","fixture skill","environment",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"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",[],[121,122,123,110,111,124,125],"domains","fake domains","deployment","never","test",{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"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",[],[133,134,135,136,137,138,139,140,141],"me","replace me skill","template","directory","skill template","existing skill","new skill","bootstrap","scaffold",{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"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",[],[149,150,151,152,27,153,154,155,156,157,158,159,160,161,162,163,164,31,165,166],"velocity","spatial velocity","Spatial","scvelo","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",[],[151,174,175,176,177,178,179,180,158,181,182,183,184,185,149,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":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,151,158,199,200,201,202,203,204,121,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"]