We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3ffedb commit 35b8849Copy full SHA for 35b8849
singlecell/resources/chunks/CommonFilters.R
@@ -171,7 +171,10 @@ for (datasetId in names(seuratObjects)) {
171
}
172
173
toDrop <- is.na(seuratObj@meta.data$scGateConsensus)
174
- if (sum(toDrop) > 0) {
+ if (sum(toDrop) == ncol(seuratObj)) {
175
+ print(paste0('There were no cells remaining after dropping cells without a scGateConsensus value'))
176
+ seuratObj <- NULL
177
+ } else if (sum(toDrop) > 0) {
178
cells <- colnames(seuratObj)[!is.na(seuratObj@meta.data$scGateConsensus)]
179
seuratObj <- subset(seuratObj, cells = cells)
180
print(paste0('After dropping cells without scGateConsensus: ', length(colnames(x = seuratObj))))
0 commit comments