Wrapper for iq::maxLFQ to use with QFeatures::aggregateFeatures
maxlfq_wrapper.RdThis function wraps iq::maxLFQ() so it can be passed to
QFeatures::aggregateFeatures() as the fun argument. It expects
a numeric matrix with peptides as rows and samples as columns, and
returns a numeric vector of protein-level intensities.
Value
A numeric vector of length equal to the number of columns in
mat, containing protein-level abundance estimates.
Details
The MaxLFQ algorithm computes protein abundances from peptide
intensities by using peptide ratios across samples and solving a
least-squares system. This wrapper extracts the estimate component
returned by iq::maxLFQ() and coerces it to a numeric vector,
suitable for aggregateFeatures().