[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DTF8N0AGKK1PHH14S12FGK":3,"skill-same:01M6DTF8N0AGKK1PHH14S12FGK":103},{"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},"01M6DTF8N0AGKK1PHH14S12FGK","proteomics-structural",null,"Load when summarising cross-linking MS (XL-MS) results — intra\u002Finter-protein link split, optional FDR filtering, distance-constraint validation against a per-crosslinker (DSS \u002F BS3 \u002F EDC \u002F DSSO \u002F DSBU) max distance. Skip when raw spectra are the input (run XlinkX \u002F pLink \u002F xiSEARCH first); no XL-MS experiment was performed.","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-structural\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"proteomics structural","proteomics","structural","link","edc","dsbu","dsso","bs3","dss","crosslinking","xl-ms","input","run","max","ms","experiment","filtering","results","first","validation","2026-11-10 10:12:30",false,"---\nname: proteomics-structural\ndescription: Load when summarising cross-linking MS (XL-MS) results — intra\u002Finter-protein link split,\n  optional FDR filtering, distance-constraint validation against a per-crosslinker (DSS \u002F BS3 \u002F EDC \u002F\n  DSSO \u002F DSBU) max distance. Skip when raw spectra are the input (run XlinkX \u002F pLink \u002F xiSEARCH first);\n  no XL-MS experiment was performed.\ntrigger: structural proteomics, cross-linking MS, XL-MS, XlinkX, pLink, xiSEARCH\ntags:\n- proteomics\n- structural\n- xl-ms\n- crosslinking\n- dss\n- bs3\n- dsso\n- dsbu\n- edc\n---\n\n# proteomics-structural\n\n## When to use\n\nThe CLI defaults are DSS and fdr_threshold=0.05. DSS\u002FBS3\u002FDSSO\u002FDSBU use 30 angstrom; EDC uses 20 angstrom.\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-structural')\ndata = library.demo_data(random_state=42)\nresult = library.analyse_crosslinks(data)\nwrite_output(result, 'tables\u002Fcrosslinks.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### `analyse_crosslinks(data: pd.DataFrame, *, fdr_threshold: float=0.05, crosslinker: str='DSS') -> pd.DataFrame`\n\nReturn filtered crosslinks with protein-pair and optional distance classifications.\n\n:param data: Crosslink rows with protein_a and protein_b, optional fdr and distance_angstrom.\n:param fdr_threshold: CLI default 0.05; filters only when an fdr column is present.\n:param crosslinker: CLI default DSS; BS3, DSSO and DSBU use 30 A, EDC uses 20 A.\n:returns: New crosslink table; absent distance evidence remains unchecked in run_info.\n:raises ValueError: Protein identifiers, crosslinker or confidence threshold are invalid.\n\n### `run_info(table: pd.DataFrame, *, keep: bool=True) -> dict`\n\nRead crosslink analysis diagnostics.\n\n:param table: Output of analyse_crosslinks.\n:param keep: True preserves attrs; False removes diagnostics.\n:returns: A separate dictionary stating which optional checks ran.\n:raises TypeError: The input is not a DataFrame.\n\n### `distance_figure(table: pd.DataFrame)`\n\nPlot measured crosslink distances.\n\n:param table: Crosslinks containing distance_angstrom.\n:returns: A matplotlib Figure without writing files.\n:raises KeyError: distance_angstrom is absent.\n\n### `demo_data(*, random_state: int=42) -> pd.DataFrame`\n\nGenerate synthetic crosslink records in memory.\n\n:param random_state: CLI seed 42; change for another simulation.\n:returns: Two hundred crosslinks with simulated distances and confidence.\n:raises ValueError: The seed is invalid.\n\n\u003C!-- api:end -->\n\n## Methods and parameters\n\nThe CLI defaults are DSS and fdr_threshold=0.05. DSS\u002FBS3\u002FDSSO\u002FDSBU use 30 angstrom; EDC uses 20 angstrom.\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- analyse_crosslinks requires protein_a and protein_b. run_info records missing distance evidence as unchecked with null satisfaction counts, never 100% passed. FDR filtering requires an fdr column.\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\u002Fcrosslinks.csv\n- tables\u002Finter_protein_crosslinks.csv (when link_type exists; can be empty)\n- report.md\n- result.json\n- `demo_crosslinks.csv` is written only with `--demo`.\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-structural\u002Fstruct_proteomics.py --demo --output \u002Ftmp\u002Fproteomics_structural\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-structural\n\n## When to use\n\nThe CLI defaults are DSS and fdr_threshold=0.05. DSS\u002FBS3\u002FDSSO\u002FDSBU use 30 angstrom; EDC uses 20 angstrom.\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-structural')\ndata = library.demo_data(random_state=42)\nresult = library.analyse_crosslinks(data)\nwrite_output(result, 'tables\u002Fcrosslinks.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### `analyse_crosslinks(data: pd.DataFrame, *, fdr_threshold: float=0.05, crosslinker: str='DSS') -> pd.DataFrame`\n\nReturn filtered crosslinks with protein-pair and optional distance classifications.\n\n:param data: Crosslink rows with protein_a and protein_b, optional fdr and distance_angstrom.\n:param fdr_threshold: CLI default 0.05; filters only when an fdr column is present.\n:param crosslinker: CLI default DSS; BS3, DSSO and DSBU use 30 A, EDC uses 20 A.\n:returns: New crosslink table; absent distance evidence remains unchecked in run_info.\n:raises ValueError: Protein identifiers, crosslinker or confidence threshold are invalid.\n\n### `run_info(table: pd.DataFrame, *, keep: bool=True) -> dict`\n\nRead crosslink analysis diagnostics.\n\n:param table: Output of analyse_crosslinks.\n:param keep: True preserves attrs; False removes diagnostics.\n:returns: A separate dictionary stating which optional checks ran.\n:raises TypeError: The input is not a DataFrame.\n\n### `distance_figure(table: pd.DataFrame)`\n\nPlot measured crosslink distances.\n\n:param table: Crosslinks containing distance_angstrom.\n:returns: A matplotlib Figure without writing files.\n:raises KeyError: distance_angstrom is absent.\n\n### `demo_data(*, random_state: int=42) -> pd.DataFrame`\n\nGenerate synthetic crosslink records in memory.\n\n:param random_state: CLI seed 42; change for another simulation.\n:returns: Two hundred crosslinks with simulated distances and confidence.\n:raises ValueError: The seed is invalid.\n\n\u003C!-- api:end -->\n\n## Methods and parameters\n\nThe CLI defaults are DSS and fdr_threshold=0.05. DSS\u002FBS3\u002FDSSO\u002FDSBU use 30 angstrom; EDC uses 20 angstrom.\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- analyse_crosslinks requires protein_a and protein_b. run_info records missing distance evidence as unchecked with null satisfaction counts, never 100% passed. FDR filtering requires an fdr column.\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\u002Fcrosslinks.csv\n- tables\u002Finter_protein_crosslinks.csv (when link_type exists; can be empty)\n- report.md\n- result.json\n- `demo_crosslinks.csv` is written only with `--demo`.\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-structural\u002Fstruct_proteomics.py --demo --output \u002Ftmp\u002Fproteomics_structural\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},[19,20,28,27,26,25,24,23,22],"structural proteomics, cross-linking MS, XL-MS, XlinkX, pLink, xiSEARCH","main","90a3bec3e6549bc33dddbf67e4b23869736c49d1","skills\u002Fproteomics\u002Fproteomics-structural",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-structural",{"tool":59,"command":60},"bunx","bunx skills add TianGzlab\u002FOmicsClaw --skill proteomics-structural",{"tool":62,"command":63},"pnpm","pnpm dlx skills add TianGzlab\u002FOmicsClaw --skill proteomics-structural","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-structural\u002FSKILL.md",true,[67,73,77,83,87,91,95,99],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"_api.py","SCRIPT","脚本",3614,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-structural\u002F_api.py",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"examples\u002Fexample_step.py",533,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-structural\u002Fexamples\u002Fexample_step.py",{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fmethodology.md","REFERENCE","参考文档",553,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-structural\u002Freferences\u002Fmethodology.md",{"path":84,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Foutput_contract.md",342,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-structural\u002Freferences\u002Foutput_contract.md",{"path":88,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Fparameters.md",280,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-structural\u002Freferences\u002Fparameters.md",{"path":92,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":93,"sourceHtmlUrl":94},"struct_proteomics.py",5938,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-structural\u002Fstruct_proteomics.py",{"path":96,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":97,"sourceHtmlUrl":98},"tests\u002Ftest_api.py",2056,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-structural\u002Ftests\u002Ftest_api.py",{"path":100,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":101,"sourceHtmlUrl":102},"tests\u002Ftest_cli.py",1355,"https:\u002F\u002Fgithub.com\u002FTianGzlab\u002FOmicsClaw\u002Fblob\u002Fmain\u002Fskills\u002Fproteomics\u002Fproteomics-structural\u002Ftests\u002Ftest_cli.py",[104,118,130,146,171,194],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"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",[],[111,112,113,114,115,116,117],"demo skill","demo","tests","fixture","fixture skill","use","environment",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"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",[],[125,126,127,113,114,128,129],"domains","fake domains","deployment","never","test",{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"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",[],[137,138,139,140,141,142,143,144,145],"me","replace me skill","template","directory","skill template","existing skill","new skill","bootstrap","scaffold",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"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",[],[153,154,155,156,29,157,158,159,160,161,162,163,164,165,166,167,168,116,169,170],"velocity","spatial velocity","Spatial","scvelo","starsolo","time","deep","RNA","kb-python","via","velocyto","rna-velocity","velovi","dynamics","upstream","kb","python","deterministic",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"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",[],[155,178,179,180,181,182,183,184,162,185,186,187,188,189,153,190,116,191,192,193],"trajectory","spatial trajectory","state","terminal","lineage","diffusion","cellrank","palantir","dpt","pseudotime","probability","cell","default","branch","anndata","data",{"skillNo":195,"name":196,"nameZh":6,"description":197,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":198,"categories":199,"keywords":200,"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",[],[201,202,155,162,203,204,205,206,207,208,125,209,210,211,212,116,192,213,214,215],"spatial statistics","statistics","nhood-enrichment","co-occurrence","ripley","geary","moran","neighbourhood","ranking","autocorrelation","local","domain","detection","enrichment","stats"]