We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc22aa5 commit 058d732Copy full SHA for 058d732
singlecell/resources/chunks/SubsetSeurat.R
@@ -12,8 +12,13 @@ for (datasetId in names(seuratObjects)) {
12
<SUBSET_CODE>
13
14
if (!is.null(seuratObj)) {
15
- saveData(seuratObj, datasetId)
16
- totalPassed <- totalPassed + 1
+ if (ncol(seuratObj) <= 1) {
+ # NOTE: Seurat v5 assays do not perform well with one cell
17
+ print(paste0('There is only one cell remaining, skipping'))
18
+ } else {
19
+ saveData(seuratObj, datasetId)
20
+ totalPassed <- totalPassed + 1
21
+ }
22
}
23
24
# Cleanup
0 commit comments