regressionData | R Documentation |
regressionData
orgnize expression data and experiment design into
MultiAssayExperiment object that can be further used in xcore
framework. Additionally, function calculate basal expression level, for
latter use in expression modeling, by averaging base_lvl
samples
expression values.
regressionData(expr_mat, design, base_lvl, drop_base_lvl = TRUE)
expr_mat |
matrix of expression values. |
design |
matrix giving the design matrix for the samples. Columns corresponds to samples groups and rows to samples names. |
base_lvl |
string indicating group in |
drop_base_lvl |
logical flag indicating if |
Note that regressionData
does not apply any normalization or
transformation to the input data! Use prepareCountsForRegression
if you want to start with raw expression counts.
MultiAssayExperiment object with two experiments:
matrix giving expression values averaged over basal level samples
matrix of expression values
design with base_lvl
dropped is stored in metadata and directly
available for modelGeneExpression
.
data("rinderpest_mini")
base_lvl <- "00hr"
design <- matrix(
data = c(1, 0, 0,
1, 0, 0,
1, 0, 0,
0, 1, 0,
0, 1, 0,
0, 1, 0,
0, 0, 1,
0, 0, 1,
0, 0, 1),
ncol = 3,
nrow = 9,
byrow = TRUE,
dimnames = list(colnames(rinderpest_mini), c("00hr", "12hr", "24hr")))
mae <- regressionData(
expr_mat = rinderpest_mini,
design = design,
base_lvl = base_lvl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.