Learn R Programming

CAMERA (version 1.28.0)

getPeaklist: Generate the annotatad peaklist

Description

Extract all information from an xsAnnotate object. Returns a peaklist with annotated peaks.

Usage

getPeaklist(object, intval="into")

Arguments

object
xsAnnotate object
intval
Choose intensity values. Allowed values are into, maxo, intb

Details

This function extract the peaktable from an xsAnnotate object, containing three additional columns (isotopes, adducts, pseudospectrum) with represents the annotation results. For a grouped xcmsSet it returns the grouped peaktable.

Examples

Run this code
library(CAMERA)
file <- system.file('mzdata/MM14.mzdata', package = "CAMERA")
xs   <- xcmsSet(file, method="centWave", ppm=30, peakwidth=c(5,10))
an   <- xsAnnotate(xs)
an   <- groupFWHM(an)
an   <- findIsotopes(an)
an   <- findAdducts(an,polarity="positive")
peaklist <- getPeaklist(an)

Run the code above in your browser using DataLab