met2batch | R Documentation |
This function estimates the effects of a categorical (batch) variable on a matrix of features in univariate linear models.
met2batch(wdata, batch)
wdata |
the numeric data matrix with samples in row, features in columns |
batch |
a single vector containing a vector based batch variable |
a list object of length two with (1) a data frame of summary statistics on (a) the number of tested features ,(b) the mean batch effect across all features ,(c) the mean batch effect across all associated (BH FDR<0.05) features ,(d) the number of associated (BH FDR<0.05) features.
d1 = sapply(1:10, function(x){ rnorm(50, 30, 5) }) d2 = sapply(1:10, function(x){ rnorm(50, 40, 5) }) ex_data = rbind(d1, d2) d3 = sapply(1:10, function(x){ rnorm(100, 40, 5) }) ex_data = cbind(ex_data, d3) lot = c( rep("A",50), rep("B",50) ) ex = met2batch(wdata = ex_data, batch = lot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.