rollup_pep2prot | R Documentation |
converts a table with peptide-level abundance values to protein-level data by combining data from respective peptides per protein (per sample).
rollup_pep2prot(
tib,
intensity_is_log2 = TRUE,
rollup_algorithm,
return_as_matrix = FALSE
)
tib |
peptide tibble in long-format. missing values should be set NA, not zero. required columns: peptide_id, protein_id, sample_id, intensity |
intensity_is_log2 |
boolean indicating if input peptide intensities are log2 scaled |
rollup_algorithm |
algorithm for combining peptides to proteins. Options: 'maxlfq', 'sum', 'tukey_median'. The former applies the MaxLFQ algorithm, the second employs the 'classic' strategy of summing all peptides per protein (non-log values), the latter uses Tukey's median polish algorithm. Alternatively, one can specify "maxlfq_diann" to use the DIA-NN R package's implementation for MaxLFQ instead of the faster implementation from the iq R package (default when using 'maxlfq') |
return_as_matrix |
instead of long-format tibble, return a protein*sample matrix (missing values set to NA) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.