knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(scDC)
data("sim") exprsMat <- sim$sim_exprsMat subject <- sim$sim_subject cellTypes <- sim$sim_cellTypes cond <- sim$sim_cond dim(exprsMat) table(subject, cellTypes) table(cond, cellTypes)
Set nboot = 50
for illustration.
res_scDC_noClust <- scDC_noClustering(cellTypes, subject, calCI = TRUE, calCI_method = c("percentile", "BCa", "multinom"), nboot = 50)
barplotCI(res_scDC_noClust, c("cond1","cond1","cond1","cond1", "cond2","cond2","cond2","cond2"))
densityCI(res_scDC_noClust, c("cond1","cond1","cond1","cond1", "cond2","cond2","cond2","cond2"))
res_GLM <- fitGLM(res_scDC_noClust, c("cond1","cond1","cond1","cond1", "cond2","cond2","cond2","cond2"), pairwise = FALSE)
summary(res_GLM$pool_res_fixed)
summary(res_GLM$pool_res_random)
res_scDC_clust = scDC_noClustering(cellTypes, subject, calCI = TRUE, calCI_method = c("percentile", "BCa", "multinom"))
barplotCI(res_scDC_clust, c("cond1","cond1","cond1","cond1", "cond2","cond2","cond2","cond2"))) densityCI(res_scDC_clust, c("cond1","cond1","cond1","cond1", "cond2","cond2","cond2","cond2")))
res_GLM <- fitGLM(res_scDC_noClust, c("cond1","cond1","cond1","cond1", "cond2","cond2","cond2","cond2"), pairwise = FALSE)
summary(res_GLM$pool_res_fixed)
summary(res_GLM$pool_res_random)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.