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