Description Usage Arguments Value Author(s) See Also Examples
These generic functions access and set the qvalue
object in the
deSet
object.
1 2 3 4 5 6 7 8 9 |
object |
|
value |
S3 |
qvalueObj
returns a qvalue
object.
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 25 26 27 | # import data
library(splines)
library(qvalue)
data(kidney)
age <- kidney$age
sex <- kidney$sex
kidexpr <- kidney$kidexpr
cov <- data.frame(sex = sex, age = age)
# create models
null_model <- ~sex
full_model <- ~sex + ns(age, df = 4)
# create deSet object from data
de_obj <- build_models(data = kidexpr, cov = cov, null.model = null_model,
full.model = full_model)
# run the odp method
de_odp <- odp(de_obj, bs.its = 20)
# extract out significance results
qval_obj <- qvalueObj(de_odp)
# run qvalue and assign it to deSet slot
pvals <- qval_obj$pvalues
qval_new <- qvalue(pvals, pfdr = TRUE, fdr.level = 0.1)
qvalueObj(de_odp) <- qval_new
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.