For a given expression matrix x and a design matrix factor y the test is applied. The expression matrix probably is obtained as x = exprs(gse) or x = assay(se) where gse is a ExpressionSet and se is a RangedSummarizedExperiment. Differently to rowtest the output is a matrix where each row vector corresponding to the differential expression of the corresponding row of the expression matrix.

rowtest0(x, y, test)

Arguments

x

Matrix expression

y

Design matrix (nrow(y) == ncol(x)). First column y[,1] is the block and second column y[,2] is the element within the block with values 0 (control) and 1 (case)

test

Function with the statistical test (c(proportion.p,oddsratio.p, oddsratio.stats))

Value

A data frame with columns named statistic (statistic of the test), rawp (original p-values), adjp (adjusted p-values) and qval (q-values)