getPeakTable: Extract a peak table from an xcms or CAMERA object

View source: R/getPeakTable.R

getPeakTableR Documentation

Extract a peak table from an xcms or CAMERA object


Extracts the peak table (a data.frame) from an xcms (or CAMERA) object (without compound annotation). The peak table contains the mass and retention time for all the features and their intensities across the samples. This function is not meant to be called directly, but it is internally used by runLC, getAnnotationLC, createSTDdbLC.


getPeakTable(xs, intval = "into")



The xcmsSet (or CAMERA) object


The intensity measure extracted form xs.


The function process an xs object and returns for it a PeakTable which associates intensities to features and samples. The default measure for the intensity is into (the chromatographic peak area for a feature), but in the case of annotation, maxo (value for the intensity of the ion over the chromatographic peak) is used to measure the intensity. For a more detailed description of the possible intensity measures refer to the documentation of xcms].


A data frame with the intensity for each feature (rows) in all the samples (columns). Each feature is identified by its m/z value and retention time (in minutes). If the xs object is of class CAMERA, the results of the camera annotation (isotope, adduct, pcgroup) are included in the table.


Pietro Franceschi


## Example of results
  data(LCresults) ## pre-compiled results

rwehrens/metaMS documentation built on Feb. 27, 2023, 5:13 a.m.