Description Usage Arguments Value Note Author(s) See Also Examples
Creates a deSet
object that extends the
ExpressionSet
object.
1 2 3 4 5 | deSet(object, full.model, null.model, individual = NULL)
## S4 method for signature 'ExpressionSet'
deSet(object, full.model, null.model,
individual = NULL)
|
object |
|
full.model |
|
null.model |
|
individual |
|
deSet
object
It is essential that the null and full models have the same variables as the ExpressionSet phenoType column names.
John Storey, Andrew Bass
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # import data
library(splines)
data(kidney)
age <- kidney$age
sex <- kidney$sex
kidexpr <- kidney$kidexpr
cov <- data.frame(sex = sex, age = age)
pDat <- as(cov, "AnnotatedDataFrame")
exp_set <- ExpressionSet(assayData = kidexpr, phenoData = pDat)
# create models
null_model <- ~sex
full_model <- ~sex + ns(age, df = 4)
# create deSet object from data
de_obj <- deSet(exp_set, null.model = null_model,
full.model = full_model)
# optionally add individuals to experiment, in this case there are 36
# individuals that were sampled twice
indSamples <- as.factor(rep(1:36, each = 2))
de_obj <- deSet(exp_set, null.model = null_model,
full.model = full_model, ind = indSamples)
summary(de_obj)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.