Skip to content

Commit 2e0da7d

Browse files
committed
fix cell clustering bug
1 parent 63c1412 commit 2e0da7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/bambu.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ bambu <- function(reads, annotations = NULL, genome = NULL, NDR = NULL,
267267
#load in the barcode clustering from file if provided
268268
iter <- seq_len(ncol(metadata(quantData_i)$countMatrix)) # iter is integer
269269
if(!is.null(clusters)){
270-
if(class(clusters[[i]])!="CompressedCharacterList"){ # !is.list(clusters) is FALSE for CompressedCharacterList
270+
if(class(clusters)!="CompressedCharacterList"&(!is.list(clusters))){
271271
clusterMaps <- NULL
272272
for(j in seq_along(metadata(quantData_i)$sampleNames)){ #load in a file per sample name provided
273273
clusterMap <- fread(clusters[[j]], header = FALSE,
@@ -288,7 +288,7 @@ bambu <- function(reads, annotations = NULL, genome = NULL, NDR = NULL,
288288
if(length(quantData)>1){
289289
iter <- clusters[[i]] #lowMemory mode
290290
}else{
291-
iter <- clusters#do.call(c,clusters)
291+
iter <- do.call(c,clusters) #clusters direct assignment in Multiplex_Major_Patch is throwing error
292292
}
293293
}
294294
}

0 commit comments

Comments
 (0)