makeBinaryTemplateAndProbabilityTemplate {GRAPE} | R Documentation |
Make binary template and probability template
Description
Takes in matrix, where columns are samples and rows are pathway genes, outputs the binary and probability templates
Usage
makeBinaryTemplateAndProbabilityTemplate(submat)
Arguments
submat |
A matrix where columns are samples and rows are pathway genes |
Value
List containing binary template vector and probability template vector
Examples
submat <- cbind(c(1,3,2,1.5),c(2,3,1.5,1.2),c(1.4,4.2,3.5,3.8))
rownames(submat) <- c("gene_A","gene_B","gene_C","gene_D")
temp <- makeBinaryTemplateAndProbabilityTemplate(submat)
bt <- temp$binary_template; pt <- temp$probability_template
cbind(bt,pt)
[Package GRAPE version 0.1.1 Index]