sanitize_spectra: Sanitize spectra

View source: R/sanitize_spectra.R

sanitize_spectraR Documentation

Sanitize spectra

Description

This function sanitizes spectra

Usage

sanitize_spectra(spectra, cutoff = 0, dalton = 0.01, polarity = NA, ppm = 10)

Arguments

spectra

Spectra object

cutoff

Absolute minimal intensity

dalton

Dalton tolerance

polarity

Polarity

ppm

PPM tolerance

Value

The sanitized spectra

Examples

data.frame(
  FEATURE_ID = c("FT001", "FT002", "FT003"),
  mz = c(list(123.4567, 234.5678, 345.6789))
) |>
  Spectra::Spectra() |>
  sanitize_spectra()

taxonomicallyinformedannotation/tima-r documentation built on Dec. 20, 2024, 9:32 a.m.