calcFisher: Apply Fishers exact test

Description Usage Arguments Value Examples

Description

Calculates p values (Fishers exact test) for gain/loss and given group assignment

Usage

1
calcFisher(data, cluster, bin = TRUE)

Arguments

data

previously created CN matrix

cluster

group assignent, same order as data columns

bin

Aggregate Fishers p.values to < 0.001, <0.01, <0.05, <0.1, >0.1

Value

vector with all p-values

Examples

1
2
3
4
5
6
7
8
data <- data.frame(smp1=c(0,1,1,-1,0),
smp2=c(0,1,0,1,1),
smp3=c(1,1,0,0,0))
rownames(data) <- c("chr1:10000", "chr1:50000", 
"chr1:100000", "chr1:150000", "chr1:200000")
group <- c(1,2,2)
calcFisher(data,group,FALSE)
calcFisher(data,group,TRUE)

mknoll/cnAnalysis450k documentation built on May 23, 2019, 2:01 a.m.