Skip to content

Commit 48c4caf

Browse files
committed
Allow NA values for scGateConsensus
1 parent 470e249 commit 48c4caf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

singlecell/resources/chunks/CheckExpectations.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CheckField <- function(seuratObj, datasetId, fieldName) {
1+
CheckField <- function(seuratObj, datasetId, fieldName, errorOnNA= TRUE) {
22
if (!fieldName %in% names(seuratObj@meta.data)) {
33
addErrorMessage(paste0(paste0('Missing ', fieldName, ' for dataset: ', datasetId)))
44
}
@@ -47,7 +47,7 @@ for (datasetId in names(seuratObjects)) {
4747
}
4848

4949
if (requireScGate) {
50-
CheckField(seuratObj, datasetId, 'scGateConsensus')
50+
CheckField(seuratObj, datasetId, 'scGateConsensus', errorOnNA = FALSE)
5151
}
5252

5353
if (requireRiraImmune) {

0 commit comments

Comments
 (0)