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 28 29 30 31 32
| degs.u <- list() degs.d <- list()
degs.u$scRNA <- subset(degs$scRNA, logFC > 0) degs.d$scRNA <- subset(degs$scRNA, logFC < 0)
degs.u$tcga <- subset(degs$tcga, logFC > 0) degs.d$tcga <- subset(degs$tcga, logFC < 0)
degs.u$geo <- subset(degs$geo , logFC > 0) degs.d$geo <- subset(degs$geo , logFC < 0)
degs.fm <- list() degs.ffc <- list()
degs.fm$scRNA <- with(degs$scRNA, mean(m) - 2*sd(m)) degs.fm$tcga <- with(degs$tcga, mean(m)- 3*sd(m)) degs.fm$geo <- with(degs$geo, mean(m)- 4*sd(m))
degs.ffc$scRNA <- with(degs$scRNA, mean(abs(logFC)) + 0*sd(abs(logFC))) degs.ffc$tcga <- with(degs$tcga, mean(abs(logFC)) + 0*sd(abs(logFC))) degs.ffc$geo <- with(degs$geo , mean(abs(logFC)) + 0*sd(abs(logFC))) degs.ffc$lo <- with(degs$lo , mean(abs(logFC)) + 1*sd(abs(logFC)))
degs.lo <- subset(degs$lo, abs(logFC) > degs.ffc$lo & q <0.05) degs.u$scRNA <- subset(degs.u$scRNA , abs(logFC) > degs.ffc$scRNA & q <0.05) degs.d$scRNA <- subset(degs.d$scRNA, abs(logFC) > degs.ffc$scRNA & q <0.05) degs.u$tcga <- subset(degs.u$tcga , abs(logFC) > degs.ffc$tcga & q <0.05) degs.d$tcga <- subset(degs.d$tcga , abs(logFC) > degs.ffc$tcga & q <0.05) degs.u$geo <- subset(degs.u$geo, abs(logFC) > degs.ffc$geo & q <0.05) degs.d$geo <- subset(degs.d$geo, abs(logFC) > degs.ffc$geo & q <0.05)
|