gen_profile {mstherm} | R Documentation |
Generate protein ratio profile from spectrum quantification matrix.
Description
gen_profile
takes a matrix of spectrum channel
quantification values belonging to a protein and "rolls them up" into a
vector of protein-level relative quantification values.
Usage
gen_profile(x, method = "sum", method.denom = "first")
Arguments
x |
matrix of spectrum quantification values, one row per spectrum and one column per channel |
method |
method to use to "roll up" spectrum values to protein level |
method.denom |
method used to determine ratio denominator, passed as
the "method" argument to |
Details
The following methods for spectrum-to-protein conversion are supported:
- "sum"
use the sum of the Spectrum values for each channel
- "median"
use the median of the spectrum values for each channel
- "ratio.median"
Like "median", but values for each spectrum are first converted to ratios according to "method.denom" channel
- "ratio.mean"
Like "ratio.median" but using mean of ratios
Value
A numeric vector of the same length as the number of matrix columns