runCAMERA: The CAMERA element in the metaMS pipeline

View source: R/runCAMERA.R

runCAMERAR Documentation

The CAMERA element in the metaMS pipeline


Run CAMERA package with settings from the settings list (see FEMsettings). Works both for LC and GC. Not meant to be called directly by the user.


runCAMERA(xset, chrom = c("LC", "GC"), settings, polarity, quick = TRUE)



For LC, an xcmsSet object; for GC, a list of xcmsSet objects.


The type of chromatography. Either "LC" or "GC".


The subset of settigs contained into the "CAMERA" element of the settings list.


The polarity of the injection, used by CAMERA to look for common adducts.


Only relevant for LC data. If TRUE, CAMERA runs only groupFWHM and findIsotopes. If FALSE, correlations between EICs are calculated and used for grouping (which can take some time).


In the case of LC the function is used in data analysis and DB creation. In the first case, it increases the level of the annotation and it it, by default, run with quick = TRUE. For DB creation, the grouping of the features into "pcgroups" (features with similar retention time) is used to choose the features to be included into the database. In this case camera is run with quick = FALSE: quick determines whether or not the correlation among the extracted ion chromatograms should be used to "validate" the pcgroups.

For GC data, only the grouping done by groupFWHM is performed: basically this clusters peaks with a similar retention time.


An annotated xcmsSet object (an object of class CAMERA).


Ron Wehrens and Pietro Franceschi

See Also

annotate, groupFWHM


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

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