File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
singlecell/resources/chunks Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ for (datasetId in names(seuratObjects)) {
2626 return (length(intersect(values , cdr3ForLocus )) != 0 )
2727 })
2828
29- if (sum(matchingCells ) < = thresholdToKeep ) {
30- print(paste0(' Too few cells, skipping: ' , datasetId ))
29+ if (sum(matchingCells ) == 0 ) {
30+ print(paste0(' No matching cells, skipping: ' , datasetId ))
3131 next
3232 }
3333
@@ -41,6 +41,8 @@ for (datasetId in names(seuratObjects)) {
4141
4242 if (all(is.null(cellsToKeep ))) {
4343 print(' There were no matching cells' )
44+ } else if (length(cellsToKeep ) < = thresholdToKeep ) {
45+ print(paste0(' Too few cells, skipping: ' , datasetId ))
4446 } else {
4547 print(paste0(' Total passing cells: ' , length(cellsToKeep )))
4648 seuratObj <- subset(seuratObj , cells = cellsToKeep )
You can’t perform that action at this time.
0 commit comments