plot_POWSC: plot the result use visualization.

Description Usage Arguments Value Examples

View source: R/runPOWSC.R

Description

plot the result use visualization.

Usage

1
plot_POWSC(POWSCobj, Form = c("I", "II"), Cell_Type = c("PW", "Multi"))

Arguments

POWSCobj

a POWSC object from runPOWSC

Form

choose from "I" or "II".

Cell_Type

choose from "PW" or "Multi"

Value

for multiple comparison cases, return the pheatmap; for the pairwise comparison, return the ggplot object.

Examples

1
2
3
4
5
6
7
8
9
data("es_mef_sce")
sce = es_mef_sce[, colData(es_mef_sce)$cellTypes == "fibro"]
set.seed(12)
rix = sample(1:nrow(sce), 500)
sce = sce[rix, ]
est_Paras = Est2Phase(sce)
sim_size = c(100, 200) # A numeric vector
pow_rslt = runPOWSC(sim_size = sim_size, est_Paras = est_Paras,per_DE=0.05, DE_Method = "MAST", Cell_Type = "PW") # Note, using our previous developed tool SC2P is faster.
plot_POWSC(pow_rslt, Form="II", Cell_Type = "PW") # Alternatively, we can use Form="I")

suke18/POWSC documentation built on April 2, 2021, 4:34 a.m.