individualReferencePeaks: This function looks for reference peaks in each individual...

Description Usage Arguments Value See Also Examples

View source: R/individualReferencePeaks-functions.R

Description

This function looks for reference peaks in each individual sample. In contrast to referencePeaks it returns a list of MassPeaks where all non reference peaks are removed and the mass are not binned. E.g. this is useful to visualise reference peaks in each individual spectrum.

Usage

1
2
  individualReferencePeaks(l, minFrequency = 0.9,
    tolerance = 0.002)

Arguments

l

list of MassPeaks

minFrequency

see referencePeaks

tolerance

see referencePeaks

Value

a list of MassPeaks objects

See Also

binPeaks

Examples

1
2
3
4
l <- list(createMassPeaks(mass=1:5, intensity=1:5),
          createMassPeaks(mass=c(1, 2:4+0.2, 5.01), intensity=1:5),
          createMassPeaks(mass=c(1, 2:4+0.4, 5.02), intensity=1:5))
individualReferencePeaks(l, tolerance=0.02)

sgibb/MALDIquantTools documentation built on Oct. 18, 2019, 8:02 p.m.