We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef3f51a commit d46d297Copy full SHA for d46d297
singlecell/resources/chunks/DimPlots.R
@@ -4,9 +4,16 @@ for (datasetId in names(seuratObjects)) {
4
5
for (field in fieldNames) {
6
if (!(field %in% names(seuratObj@meta.data))) {
7
+ print(paste0('Field missing, skipping: ', field))
8
next
9
}
10
11
+ if (length((unique(seuratObj@meta.data))) <= 1) {
12
+ next
13
+ } else {
14
+ print(paste0('Object has one or fewer values, skipping: ', field))
15
+ }
16
+
17
P1 <- Seurat::DimPlot(seuratObj, group.by = field, reduction = 'tsne')
18
P2 <- Seurat::DimPlot(seuratObj, group.by = field, reduction = 'umap')
19
0 commit comments