This function returns a moleculeFilt object for use with applyFilt
molecule_filter(ftmsObj)
an object of class 'peakData' or 'compoundData', typically a result of as.peakData
or mapPeaksToCompounds
.
Object of class 'moleculeFilt' that contains the molecule identifier and the number of samples for which the molecule was measured (not 0). This can be used in conjunction with applyFilt
to remove peaks observed in fewer than min_num
samples.