msPeakFilter: Peak filtering

Description Usage Arguments Value

Description

Remove peaks fitting some criteria from data set. Criteria are stated by function arguments. If an argument is equal NULL, corresponding filtering criterion is not applied.
Usually each peak in each replicate group considered separately in terms of each criterion. After that this peak/replicate group pair can be marked as "filterable" according to this criterion. If for at least one selecting criterion all replicate groups are marked as "filterable", this peak is removed from data set.

Usage

1
2
3
## S4 method for signature 'MSdata'
msPeakFilter(msdata, blanks = NULL, above.blank = NULL,
  min.int = NULL, min.nonNAnum.repgroup = NULL, min.nonNApercent = 0.4)

Arguments

msdata

MSdata-class object to be filtered

blanks

The vector of blank samples. Either vector of sample numbers or sample names. (check names by command: sampleData(msdata)). These sample will be removed from dataset after filtering.

above.blank

Filter peaks with intensities close to blanks. mean - above.blank*SE for certain peak's intensities in replicate group have to be more than mean + above.blank*SE for this peak's intensities in blank group. (where SE - standard error of the mean.)
Note: if above.blank = 0 then just mean values are compared.

min.int

Filter peaks by total intensity. Mean peak intensity in replicate group have to be higher than min.int value.

min.nonNAnum.repgroup

Filter peaks with too many missing values. nonNAnum.repgroup is minimal number of non-NA values in replicate group.

min.nonNApercent

Filter peaks with too many missing values. min.nonNApercent is minimal allowed quotient of non-NA values for each peak.

Value

MSdata-class object without filtered peaks and blank samples


flajole/MSdata documentation built on May 16, 2019, 1:17 p.m.