metabolomics-peak-detection
БесплатноБез исполняемых скриптовНе проверенLoad when running per-sample peak picking on a feature × intensity table via `scipy.signal.find_peaks` — emits per-(sample, feature) detected peaks with…
от mdbabumiamssm★ 36 звёзд на GitHubОб этом скилле
metabolomics-peak-detection
When to use
The user has a feature × sample intensity matrix (output of
metabolomics-xcms-preprocessing or any feature-level table)
and wants per-sample peaks detected via scipy.signal.find_peaks
with configurable prominence / height / distance. Sample columns
are auto-detected by name (sample* or *intensity*); override
with --sample-prefix <prefix>.
For raw LC-MS preprocessing use metabolomics-xcms-preprocessing.
For normalisation use metabolomics-normalization.
Inputs & Outputs
| Input | Format | Required |
|---|---|---|
| Feature × intensity table | .csv with intensity columns starting sample or containing intensity (case-insensitive) |
yes (unless --demo) |
| Sample column override | --sample-prefix <str> |
no |
| Detection params | --prominence <float> (default 1e4), --height <float> (default None), --distance <int> (default 5) |
no |
| Output | Path | Notes |
|---|---|---|
| Detected peaks | tables/detected_peaks.csv |
per-(sample, feature) peak with prominence + width |
| Report | report.md + result.json |
n_samples, mean_prominence |
Flow
- Load CSV (
--input <feature_intensity.csv>) or generate a demo atoutput_dir/*.csv(peak_detect.py:281). - Auto-detect sample columns: if
--sample-prefixis set, usec.startswith(prefix)(peak_detect.py:294); else fall back to"intensity" in c.lower() or c.lower().startswith("sample")(:126). - Per sample column, run
scipy.signal.find_peakswithprominence=,height=,distance=. - Write
tables/detected_peaks.csv(peak_detect.py:306) +report.md+result.json.
Gotchas
- Sample-column auto-detection is CASE-INSENSITIVE substring match.
peak_detect.py:126uses"intensity" in c.lower() or c.lower().startswith("sample"). Columns likeIntensity_1,sample_a,SAMPLE.5all match; columns likesignal_1orabundancedo NOT — pre-rename or use--sample-prefix signal. - No sample columns ⇒
ValueError.peak_detect.py:130raisesValueError("...")when neither auto-detection nor--sample-prefixmatches any column. --inputREQUIRED unless--demo.peak_detect.py:285raisesValueError("--input required when not using --demo").--prominencedefault 1e4 is intensity-unit-dependent. Suitable for raw counts at 1e4-1e6 magnitude; for log-transformed data, set--prominence 0.5or smaller. Wrong threshold silently yields zero peaks.--distanceis in INDEX UNITS (sample order), not seconds.peak_detect.py:270notesdefault=5— meaning at-least-5-row separation between adjacent peaks. If your features are RT-sorted, this corresponds to ~5 RT bins; if shuffled, the constraint is meaningless.- NaN values are silently treated as 0 by
find_peaks. Pre-impute or filter NaN rows if they affect detection.
Key CLI
# Demo
python omicsclaw.py run metabolomics-peak-detection --demo --output /tmp/peak_demo
# Real intensity matrix (auto-detect sample columns)
python omicsclaw.py run metabolomics-peak-detection \
--input feature_intensities.csv --output results/ \
--prominence 1e5 --distance 3
# Custom sample-column prefix
python omicsclaw.py run metabolomics-peak-detection \
--input my_table.csv --output results/ --sample-prefix replicate_
See also
references/parameters.md— every CLI flagreferences/methodology.md—scipy.signal.find_peakssemantics, prominence vs heightreferences/output_contract.md—tables/detected_peaks.csvschema- Adjacent skills:
metabolomics-xcms-preprocessing(upstream — converts raw LC-MS to feature × sample matrix),metabolomics-quantification(parallel — impute + normalise),metabolomics-annotation(downstream — annotate features against databases),metabolomics-normalization(downstream — log / median / quantile)
Установить metabolomics-peak-detection в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл metabolomics-peak-detection?
Load when running per-sample peak picking on a feature × intensity table via `scipy.signal.find_peaks` — emits per-(sample, feature) detected peaks with prominence and width. Skip when working with mz / RT raw scans (use `metabolomics-xcms-preprocessing` upstream) or when only normalising / quantifying (use `metabolomics-quantification`).
Как установить скилл metabolomics-peak-detection?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл metabolomics-peak-detection запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic