filterp,purityD-method {msPurity} | R 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)

[Package msPurity version 1.16.2 Index]