Match m/z / RT and extract all CN labeling forms for a metabolite
Source:R/nutrition.R
extract_cn_labeling_forms.RdMatch m/z / RT and extract all CN labeling forms for a metabolite
Usage
extract_cn_labeling_forms(
pave_formula,
seed_mz,
seed_rt,
xcms_fdf,
xcms_mat,
xcms_se,
ppm = 3,
rt_tol = 5
)Arguments
- pave_formula
Metabolite CN formula (e.g. `"C10N5"`).
- seed_mz
Seed feature m/z.
- seed_rt
Seed feature RT (seconds).
- xcms_fdf
xcms feature definition data.frame with `mzmed`, `rtmed`.
- xcms_mat
Intensity matrix (features × samples).
- xcms_se
SummarizedExperiment with `sample.name` and `group`.
- ppm
m/z tolerance in ppm.
- rt_tol
RT tolerance in seconds.