metabolomics-xcms-preprocessing
Load when exercising the CLI and replay pipeline with a synthetic LC-MS peak table. Skip real mzML preprocessing (run XCMS externally); table peak picking belongs to metabolomics-peak-detection.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 161
- Forks
- 27
01 前言 Front Matter
- name
- metabolomics-xcms-preprocessing
- tags
- [ "metabolomics", "demo", "cli-only" ]
- trigger
- xcms demo, synthetic metabolomics peaks
- description
- Load when exercising the CLI and replay pipeline with a synthetic LC-MS peak table. Skip real mzML preprocessing (run XCMS externally); table peak picking belongs to metabolomics-peak-detection.
02 资源文件 6
- 脚本examples/example_step.py474 B
- 脚本metabolomics_xcms_preprocessing.py8.6 KB
- 参考文档references/methodology.md255 B
- 参考文档references/output_contract.md487 B
- 参考文档references/parameters.md296 B
- 脚本tests/test_cli.py982 B
03 SKILL.md 正文
metabolomics-xcms-preprocessing
When to use
This CLI generates synthetic peak tables only. It does not read mzML spectra,
run XCMS, align retention times or perform gap filling. Real --input runs
fail before writing results. Use XCMS externally for raw LC-MS analysis.
The skill remains CLI-only because it has no implemented scientific analysis
that can be exposed as a computational function library.
Inputs & Outputs
--demo needs no input. Outputs are tables/peak_table.csv, report.md,
result.json and reproducibility/commands.sh. The table contains synthetic
m/z bounds, retention-time bounds, integrated/maximum intensities and five
sample columns. There are no Figures or AnnData outputs.
Flow
- Reject real input and invalid ppm/peak-width settings.
- Generate a seeded synthetic peak table using the supplied demo parameters.
- Write the CSV, report, result envelope and command record.
Gotchas
xcms_preprocess_pythonuses seed 42 and never reads spectra. The name is historical.--demo --ppm 5changestables/peak_table.csvfrom 1,200 to 240 rows with default peak widths; these are simulated parameter responses.result.jsonsummary contains n_samples, n_peaks, mz_min, mz_max, rt_min and rt_max. They describe the simulation only.
Key CLI
python skills/metabolomics/metabolomics-xcms-preprocessing/metabolomics_xcms_preprocessing.py --demo --output /tmp/xcms_demo
Steps call run_cli('metabolomics-xcms-preprocessing', '--demo').
examples/example_step.py records and checks the
synthetic peak table through the step runner and fresh replay.
See also
- Parameters
- Methodology
- Output contract
- metabolomics-peak-detection and metabolomics-quantification accept feature tables.
Dependencies
numpy, pandas
04 同仓库更多 Skills
demo-skill
A fixture skill for the skill environment tests. Use it for nothing else.
fake-domains
Test fixture for the golden deployment in tests/entry. Load never; it has no script.
replace-me-skill
Load when copying this directory to bootstrap a new OmicsClaw skill. Skip when an existing skill already covers the request.
spatial-velocity
Load when estimating RNA velocity on a spatial AnnData with `layers["spliced"]` + `layers["unspliced"]` via scVelo (stochastic / deterministic / dynamical) or veloVI (deep generative). Skip when input lacks the spliced/unspliced layers (must be quantified upstream by velocyto / kb-python / STARsolo); non-spatial scRNA velocity (use sc-velocity).
spatial-trajectory
Load when inferring pseudotime / 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/unspliced layers and you want velocity-driven dynamics (use spatial-velocity); non-spatial scRNA pseudotime (use sc-pseudotime).
spatial-statistics
Load when running spatial autocorrelation / hotspot / co-occurrence / neighbourhood-enrichment / 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).