05-bankStat: Newman Banked Statistic

Description Usage Arguments Value Examples

Description

The Newman Banked Statistic is used to compare an individual sample to a cohort of similar samples.

Usage

1
2
bankStat(bankObj, testSet, bankMatrix)
createBank(bankMatrix)

Arguments

bankObj

Compressed representation of the cohort being compared to.

testSet

Matrix containing data from one or more individual samples to be compared to the bank.

bankMatrix

Data for the bank of "normal" or "untreated" or "baseline" control samples.

Value

A list containing two matrices: the nu.statistics and the p.values.

Examples

1
2
3
4
5
6
7
data(GSE6631)
HN <- as.matrix(log2(1 + GSE6631))
bankMatrix <- HN[,seq(1, ncol(HN), 2)] # odd columns are normal
testSet <- HN[, seq(2, 6, 2)]   # evn columns are tumor
bs <- bankStat(testSet = testSet, bankMatrix = bankMatrix)
summary(bs$nu.statistics)
summary(bs$p.values)

NewmanOmics documentation built on April 6, 2020, 3:02 a.m.