Skip to contents

xxx

Usage

select_topn(pepData, X, n = 10, funpept = "Mean")

Arguments

pepData

A matrix containing the peptide intensities.

X

A matrix acting as an adjacency matrix.

n

A numeric(1) specifying the number of peptides to use for each protein.

funpept

A function used for determining a peptide's value. Available functions are Sum, Mean or Median.

Value

An adjacency matrix with only the top n peptides selected.

Author

Manon Gaudin

Examples

if (FALSE) { # \dontrun{
data(Exp1_R25_pept, package="DaparToolshedData")
obj <- Exp1_R25_pept[seq_len(50)]
X <- BuildAdjacencyMatrix(obj[[length(obj)]])
X.topn <- select_topn(assay(obj[[length(obj)]]), X, n = 3)
} # }