A function to generate circlepack plot to visualise the marker for each cluster

DEbubblePlot(de_list)

Arguments

de_list

A list of results from `DE genes ()`

Value

A ggplot to visualise the DE results via bubble plot

Examples

library(S4Vectors)
#> Loading required package: stats4
#> Loading required package: BiocGenerics
#> Loading required package: parallel
#> #> Attaching package: ‘BiocGenerics’
#> The following objects are masked from ‘package:parallel’: #> #> clusterApply, clusterApplyLB, clusterCall, clusterEvalQ, #> clusterExport, clusterMap, parApply, parCapply, parLapply, #> parLapplyLB, parRapply, parSapply, parSapplyLB
#> The following objects are masked from ‘package:stats’: #> #> IQR, mad, sd, var, xtabs
#> The following objects are masked from ‘package:base’: #> #> anyDuplicated, append, as.data.frame, basename, cbind, colnames, #> dirname, do.call, duplicated, eval, evalq, Filter, Find, get, grep, #> grepl, intersect, is.unsorted, lapply, Map, mapply, match, mget, #> order, paste, pmax, pmax.int, pmin, pmin.int, Position, rank, #> rbind, Reduce, rownames, sapply, setdiff, sort, table, tapply, #> union, unique, unsplit, which, which.max, which.min
#> #> Attaching package: ‘S4Vectors’
#> The following object is masked from ‘package:base’: #> #> expand.grid
data(sce_control_subset, package = "CiteFuse") sce_control_subset <- DEgenes(sce_control_subset, altExp_name = "none", group = sce_control_subset$SNF_W_louvain, return_all = TRUE, exprs_pct = 0.5) sce_control_subset <- selectDEgenes(sce_control_subset, altExp_name = "none") sce_control_subset <- DEgenes(sce_control_subset, altExp_name = "ADT", group = sce_control_subset$SNF_W_louvain, return_all = TRUE, exprs_pct = 0.5) sce_control_subset <- selectDEgenes(sce_control_subset, altExp_name = "ADT") rna_DEgenes <- metadata(sce_control_subset)[["DE_res_RNA_filter"]] adt_DEgenes <- metadata(sce_control_subset)[["DE_res_ADT_filter"]] rna_DEgenes <- lapply(rna_DEgenes, function(x){ x$name <- gsub("hg19_", "", x$name) x}) DEbubblePlot(list(RNA = rna_DEgenes, ADT = adt_DEgenes))
#> Non-leaf weights ignored