Update feature mz/rt using peak-intensity weighted means
xcms_get_feature_wmean.RdRecomputes mzmed and rtmed in xcms::featureDefinitions(xcms.xcms)
using peak-level mz/rt weighted by peak maxo (maximum intensity) from
xcms::chromPeaks(xcms.xcms).
Arguments
- xcms.xcms
An
xcms::XCMSnExpobject with feature definitions and chromPeaks.
Value
An updated xcms::XCMSnExp object where featureDefinitions(object)$mzmed
and featureDefinitions(object)$rtmed are replaced by the intensity-weighted means
across each feature's constituent peaks.