makeBinaryTemplateAndProbabilityTemplate: Make binary template and probability template

Description Usage Arguments Value Examples

Description

Takes in matrix, where columns are samples and rows are pathway genes, outputs the binary and probability templates

Usage

1

Arguments

submat

A matrix where columns are samples and rows are pathway genes

Value

List containing binary template vector and probability template vector

Examples

1
2
3
4
5
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)

GRAPE documentation built on May 8, 2019, 1:03 a.m.