prepare.tabulated.fisher: prepare.tabulated.fisher

Description Usage Arguments Details Value

View source: R/tabulated.fisher.R

Description

forms the dataframe (tabulated.fisher) with the tabulted results for all possible Fisshe exact tests with Y and N numbers of cases and controls

Usage

1
prepare.tabulated.fisher(Y, N, folder = ".", load = TRUE, save = TRUE)

Arguments

Y

cases# , e.g. number of cancer samples

N

controls#

folder

(default .)

load

(default TRUE) logical. If TRUE, we try to load file tabulated.fisher.Y.N.dat

save

(default TRUE) logical. If TRUE, we save the tabulated.fisher to file tabulated.fisher.Y.N.dat

Details

each row gives statistics (p-value, etc) for a 4-pole table:

MY MN
Y-MY N-MN

MY is methylated-positive and MN is methylated-negative (normal) we want to represent all the Fishers as a (Y+1) rows * (N+1) cols matrix. MY=0..Y MN=0..N then, we map it to 1..(MY+1)(MN+1), and it is the row index

Value

the tabulated.fisher dataframe


favorov/differential.coverage documentation built on Feb. 18, 2022, 5:50 p.m.