proteomics-ptm
БесплатноБез исполняемых скриптовНе проверенLoad when summarising PTM sites (phosphorylation, acetylation, ubiquitination, etc.) from a per-site CSV — site-class assignment (Olsen et al. Class I/II/III…
от mdbabumiamssm★ 36 звёзд на GitHubОб этом скилле
proteomics-ptm
When to use
The user has a PTM-site CSV (columns include protein and
ptm_type, optionally localization_probability, amino_acid)
and wants per-PTM summary: site-class assignment using
Olsen et al. (2006) thresholds (Class I ≥ --loc-threshold,
Class II ≥ 0.50, Class III < 0.50, Unknown if no probability),
per-PTM-type counts, amino-acid distribution, sites-per-protein.
--loc-threshold controls the Class I cutoff (default 0.75).
For protein-level abundance (no PTM split) use
proteomics-quantification. For DE between conditions use
proteomics-de.
Inputs & Outputs
| Input | Format | Required |
|---|---|---|
| PTM sites | .csv with required columns protein, ptm_type; optional localization_probability, amino_acid |
yes (unless --demo) |
| Class I cutoff | --loc-threshold <float> (default 0.75) |
no |
| Output | Path | Notes |
|---|---|---|
| All PTM sites | tables/ptm_sites.csv |
input copy with added site_class column (Class I / Class II / Class III / Unknown) |
| Class I subset | tables/ptm_class_I_sites.csv |
sites with localization_probability ≥ --loc-threshold |
| Report | report.md + result.json |
per-PTM-type counts, AA distribution, sites-per-protein stats |
Flow
- Load CSV (
--input <ptm_sites.csv>) or generate a demo (--demo). - Validate required columns
protein,ptm_type(proteomics_ptm.py:148-152raisesValueError("Missing required column: '{col}'")). - If
localization_probabilitycolumn exists, classify each site (proteomics_ptm.py:154-161):- Class I: prob ≥
--loc-threshold(default 0.75) - Class II: prob ≥ 0.50
- Class III: < 0.50 (default branch)
- If column missing →
Unknown
- Class I: prob ≥
- Aggregate per-PTM-type counts (
:166), amino-acid distribution (:171, optional), sites-per-protein (:177). - Write
tables/ptm_sites.csv(proteomics_ptm.py:292) +tables/ptm_class_I_sites.csv(:297) +report.md+result.json.
Gotchas
- Required CSV columns are LOWERCASE:
protein,ptm_type.proteomics_ptm.py:149-152raisesValueError("Missing required column: '{col}'")on first missing column. MaxQuantPhospho (STY)Sites.txtusesProteins/Modification; rename to lowercaseprotein/ptm_typefirst. - Without
localization_probability, EVERY site isUnknown.proteomics_ptm.py:163falls back todf["site_class"] = "Unknown". Thetables/ptm_class_I_sites.csvoutput will then be empty (no Class I sites). For unprocessed search-engine output that lacks the localization-probability column, run a localization tool (e.g. PhosphoRS / Andromeda) upstream. --inputREQUIRED unless--demo.proteomics_ptm.py:284raisesValueError("--input required when not using --demo").- Class II cutoff is HARD-CODED at 0.50. Only
--loc-threshold(Class I cutoff) is configurable. The 0.50 boundary atproteomics_ptm.py:158cannot be tuned via CLI. amino_aciddistribution is optional and key-absent when empty. Without theamino_acidcolumn, the script omitssummary["amino_acid_distribution"]entirely (theif aa_counts:guard atproteomics_ptm.py:204skips the assignment). Downstream consumers should check key presence ("amino_acid_distribution" in summary), not just length. Note the actual key name isamino_acid_distribution— NOTaa_counts.ptm_typevalues are case-sensitive.Phosphoandphosphoare counted as distinct PTM types. Pre-normalise casing if your search engine emits mixed values.
Key CLI
# Demo
python omicsclaw.py run proteomics-ptm --demo --output /tmp/ptm_demo
# Real PTM sites with default Class I threshold
python omicsclaw.py run proteomics-ptm \
--input phospho_sites.csv --output results/
# Stricter Class I threshold (0.95)
python omicsclaw.py run proteomics-ptm \
--input phospho_sites.csv --output results/ --loc-threshold 0.95
See also
references/parameters.md— every CLI flagreferences/methodology.md— Olsen et al. site-class definition, per-PTM caveatsreferences/output_contract.md—tables/ptm_sites.csv+ Class I subset schemas- Adjacent skills:
proteomics-data-import(upstream — protein-level table normalisation),proteomics-quantification(parallel — protein-level abundance, no PTM split),proteomics-de(downstream — differential PTM site abundance via two-group test),proteomics-enrichment(downstream — pathway enrichment on PTM-target proteins)
Установить proteomics-ptm в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл proteomics-ptm?
Load when summarising PTM sites (phosphorylation, acetylation, ubiquitination, etc.) from a per-site CSV — site-class assignment (Olsen et al. Class I/II/III by `localization_probability`), per-PTM-type counts, amino-acid distribution, sites-per-protein. Skip when raw spectra are the input or when you only need protein-level abundance (use `proteomics-quantification`).
Как установить скилл proteomics-ptm?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл proteomics-ptm запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic