...
|
...
|
@@ -168,6 +168,7 @@ setMethod("decontX", "SingleCellExperiment", function(x,
|
168
|
168
|
countsBackground <- NULL
|
169
|
169
|
if (!is.null(background)) {
|
170
|
170
|
# Remove cells with the same ID between x and the background matrix
|
|
171
|
+ # Also update bgBatch when background is updated and bgBatch is not null
|
171
|
172
|
temp <- .checkBackground(x = x,
|
172
|
173
|
background = background,
|
173
|
174
|
bgBatch = bgBatch,
|
...
|
...
|
@@ -258,6 +259,7 @@ setMethod("decontX", "ANY", function(x,
|
258
|
259
|
countsBackground <- NULL
|
259
|
260
|
if (!is.null(background)) {
|
260
|
261
|
# Remove cells with the same ID between x and the background matrix
|
|
262
|
+ # Also update bgBatch when background is updated and bgBatch is not null
|
261
|
263
|
temp <- .checkBackground(x = x,
|
262
|
264
|
background = background,
|
263
|
265
|
bgBatch = bgBatch,
|