We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7afd88 commit 2c99702Copy full SHA for 2c99702
singlecell/resources/chunks/DimPlots.R
@@ -10,8 +10,14 @@ for (datasetId in names(seuratObjects)) {
10
P1 <- Seurat::DimPlot(seuratObj, group.by = field, reduction = 'tsne')
11
P2 <- Seurat::DimPlot(seuratObj, group.by = field, reduction = 'umap')
12
13
- P1 <- P1 | P2
14
- P1 <- P1 + patchwork::plot_annotation(title = field)
+ if ('wnn.umap' %in% names(seuratObj@reductions)) {
+ P3 <- Seurat::DimPlot(seuratObj, group.by = field, reduction = 'wnn.umap')
15
+ P1 <- P1 | P2 | P3
16
+ } else {
17
+ P1 <- P1 | P2
18
+ }
19
+
20
+ P1 <- P1 + patchwork::plot_annotation(title = field) + patchwork::plot_layout(guides = "collect")
21
}
22
23
# Cleanup
0 commit comments