AGENT SKILL

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

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

  1. Reject real input and invalid ppm/peak-width settings.
  2. Generate a seeded synthetic peak table using the supplied demo parameters.
  3. Write the CSV, report, result envelope and command record.

Gotchas

  • xcms_preprocess_python uses seed 42 and never reads spectra. The name is historical.
  • --demo --ppm 5 changes tables/peak_table.csv from 1,200 to 240 rows with default peak widths; these are simulated parameter responses.
  • result.json summary 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

Dependencies

numpy, pandas

04 同仓库更多 Skills

TianGzlab
TianGzlab/OmicsClaw

demo-skill

A fixture skill for the skill environment tests. Use it for nothing else.

★ 161
TianGzlab
TianGzlab/OmicsClaw

fake-domains

Test fixture for the golden deployment in tests/entry. Load never; it has no script.

★ 161
TianGzlab
TianGzlab/OmicsClaw

replace-me-skill

Load when copying this directory to bootstrap a new OmicsClaw skill. Skip when an existing skill already covers the request.

★ 161
TianGzlab
TianGzlab/OmicsClaw

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).

★ 161
TianGzlab
TianGzlab/OmicsClaw

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).

★ 161
TianGzlab
TianGzlab/OmicsClaw

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).

★ 161