We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c60126b commit ad655b7Copy full SHA for ad655b7
singlecell/resources/chunks/DimPlots.R
@@ -8,10 +8,10 @@ for (datasetId in names(seuratObjects)) {
8
next
9
}
10
11
- if (length((unique(seuratObj@meta.data))) <= 1) {
+ if (length(unique(na.omit(seuratObj@meta.data[[field]]))) == 0) {
12
13
} else {
14
- print(paste0('Object has one or fewer values, skipping: ', field))
+ print(paste0('Object has no non-NA values, skipping: ', field))
15
16
17
P1 <- Seurat::DimPlot(seuratObj, group.by = field, reduction = 'tsne')
0 commit comments