prepareMatrix: given table of peptide protein assigments generate matrix

Description Usage Arguments Value Examples

View source: R/prepareMatrix.R

Description

given table of peptide protein assigments generate matrix

Usage

1
prepareMatrix(data, weighting = "one", sep = "|")

Arguments

data

generated by annotatePeptides

weighting

weight type to use. Options are "one" , "AA" - amino acids, "coverage" - coverage , "inverse" - inverse peptide frequencies

sep

separator for precursor (rownames)

Value

sparse matrix

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
library(prozor)
data(protpepmetashort)
library(Matrix)
colnames(protpepmetashort)
head(protpepmetashort)
dim(protpepmetashort)
count = prepareMatrix( protpepmetashort)
inverse = prepareMatrix( protpepmetashort, weight = "inverse")
aa = prepareMatrix(protpepmetashort, weight = "AA")
#xx = prepareMatrix(protpepmetashort, weight = "coverage")
image( as.matrix(count) )

corProt = cor( as.matrix(count) )
par(mfrow =c(1,2))
image(corProt)

#penalise peptides matching many proteins
corProtn = cor( as.matrix(aa) )
image(corProtn)

prozor documentation built on May 29, 2017, 9:49 p.m.

Search within the prozor package
Search all R packages, documentation and source code