mzdata: Retrieve m/z Values

mzDataR Documentation

Retrieve m/z Values

Description

This retrieves feature m/z values from one or all constituent datasets of a metabCombiner object. Alternatively, the average m/z value can be retrieved.

Usage

mzData(object, data = NULL, value = c("obs", "mean"))

## S4 method for signature 'metabCombiner'
mzData(object, data = NULL, value = c("observed", "mean"))

Arguments

object

metabCombiner object

data

dataset identifier to extract information from; if NULL, extracts data frame information from all datasets

value

Either "obs" (observed - default option) or "mean" value

Value

data frame of m/z values (if NULL) or single vector of m/z values

data(plasma30) data(plasma20)

p30 <- metabData(head(plasma30,500), samples = "CHEAR") p20 <- metabData(head(plasma20,500), samples = "Red") p.comb <- metabCombiner(p30, p20, xid = "p30", yid = "p20")

##retrieve all m/z mzd <- mzData(p.comb, data = NULL)

##retrieve m/z from p30 mzd <- mzData(p.comb, data = "p30")

##retrieve mean m/z mzd <- mzData(p.comb, value = "mean")


hhabra/Combiner documentation built on June 5, 2024, 10:56 a.m.