greedy_parsimony | R Documentation |
given matrix (columns protein rows peptides), compute minimal protein set using greedy algorithm
greedy_parsimony(pepprot)
pepprot |
matrix as returned by prepareMatrix |
list of peptide protein assignment
#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_parsimony(xx)
debug(prozor:::.greedy2)
stopifnot(length(unique(names(es))) == dim(unique(protpepmetashort[,4]))[1])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.