filterp-purityD-method: Filter out peaks based on intensity and RSD criteria

filterp,purityD-methodR Documentation

Filter out peaks based on intensity and RSD criteria

Description

Uses a purityD object remove peaks from either (or both) samples and blanks that are either below an intensity threshold or greater than a Relative Standard Deviation (RSD) threshold

Usage

## S4 method for signature 'purityD'
filterp(Object, thr = 5000, rsd = 20, sampleOnly = TRUE)

Arguments

Object

object; purityD object

thr

numeric; intensity threshold

rsd

numeric; rsd threshold

sampleOnly

boolean; if only the sample (not blanks) should be filtered

Value

purityD object

Examples


datapth <- system.file("extdata", "dims", "mzML", package="msPurityData")
inDF <- Getfiles(datapth, pattern=".mzML", check = FALSE, cStrt = FALSE)

ppDIMS <- purityD(inDF, cores=1)
ppDIMS <- averageSpectra(ppDIMS)
ppDIMS <- filterp(ppDIMS, thr = 5000)

computational-metabolomics/msPurity documentation built on May 13, 2024, 7:36 p.m.