greedy: given matrix (columns protein rows peptides), compute minimal...

Description Usage Arguments Value Examples

View source: R/greedy.R

Description

given matrix (columns protein rows peptides), compute minimal protein set using greedy algorithm

Usage

1

Arguments

pepprot

matrix as returned by prepareMatrix

Value

list of peptide protein assignment

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#library(prozor)

data(protpepmetashort)
colnames(protpepmetashort)
dim(unique(protpepmetashort[,4]))
xx = prepareMatrix(protpepmetashort, peptideID = "peptideModSeq")
dim(xx)
stopifnot(dim(xx)[1] == dim(unique(protpepmetashort[,4]))[1])
es = greedy(xx)
stopifnot(length(unique(names(es))) == dim(unique(protpepmetashort[,4]))[1])

prozor documentation built on Dec. 11, 2021, 9:51 a.m.