Skip to content

Commit

Permalink
Create composition_analysis.R
Browse files Browse the repository at this point in the history
  • Loading branch information
mcrewcow authored Dec 5, 2023
1 parent d003ead commit 383ce84
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions composition_analysis.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
library(scDC)
exprsMat <- GetAssayData(object = lydia, assay = "RNA", slot = "data")
cellTypes <- lydia$anno2
subject <- lydia$background
cond <- lydia$background
dim(exprsMat)
table(subject, cellTypes)
table(cond, cellTypes)
res_scDC_noClust <- scDC_noClustering(cellTypes, subject, calCI = TRUE,
calCI_method = c("percentile", "BCa", "multinom"),
nboot = 50)
barplotCI(res_scDC_noClust, c("WT","DFcKO"))
densityCI(res_scDC_noClust, c("WT",'DFcKO'))
res_GLM <- fitGLM(res_scDC_noClust, c("WT",'DFcKO'),
pairwise = T)
summary(res_GLM$pool_res_fixed)
summary(res_GLM$pool_res_random)

0 comments on commit 383ce84

Please sign in to comment.