Learn R Programming

DAPAR (version 1.4.7)

pepAgregate: Function agregate peptides to proteins

Description

Method to agregate with a method peptides to proteins on a MSnSet object (peptides)

Usage

pepAgregate(obj.pep, protID, method = "sum", matAdj = NULL, n = NULL)

Arguments

obj.pep
An object (peptides) of class MSnbase.
protID
The name of proteins ID column
method
The method used to aggregate the peptides into proteins. Values are "sum", "mean" or "sum on top n" : do the sum / mean of intensity on all peptides belonging to proteins. Default is "sum"
matAdj
An adjacency matrix
n
The number of peptides considered for the aggregation.

Value

An object of class MSnbase with proteins

Examples

Run this code
data(UPSpep25)
protID <- "Protein.group.IDs"
mat <- BuildAdjacencyMatrix(UPSpep25, protID, TRUE)
pepAgregate(UPSpep25, protID, "sum", mat)

Run the code above in your browser using DataLab