aggregateMean: Compute the intensity of proteins as the mean of the...

View source: R/agregation.R

aggregateMeanR Documentation

Compute the intensity of proteins as the mean of the intensities of their peptides.

Description

#' This function computes the intensity of proteins as the mean of the intensities of their peptides.

Usage

aggregateMean(obj.pep, X)

Arguments

obj.pep

A peptide object of class MSnSet

X

An adjacency matrix in which lines and columns correspond respectively to peptides and proteins.

Value

A matrix of intensities of proteins

Author(s)

Alexia Dorffer

Examples

data(Exp1_R25_pept, package="DaparToolshedData")
obj.pep <- Exp1_R25_pept[seq_len(10)]
obj.pep.imp <- wrapper.impute.detQuant(obj.pep, na.type = c("Missing POV", "Missing MEC"))
protID <- "Protein_group_IDs"
X <- BuildAdjacencyMatrix(obj.pep.imp, protID, FALSE)
ll.agg <- aggregateMean(obj.pep.imp, X)


samWieczorek/DAPAR2 documentation built on Oct. 15, 2023, 1:45 p.m.