Skip to content

Commit

Permalink
fix bug about CompressedCharacterList
Browse files Browse the repository at this point in the history
  • Loading branch information
lingminhao committed Feb 5, 2025
1 parent 0156222 commit b122513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/bambu.R
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ bambu <- function(reads, annotations = NULL, genome = NULL, NDR = NULL,
#load in the barcode clustering from file if provided
iter <- seq_len(ncol(metadata(quantData_i)$countMatrix)) # iter is integer
if(!is.null(clusters)){
if(class(clusters)!="CompressedCharacterList"){ # !is.list(clusters) is FALSE for CompressedCharacterList
if(class(clusters[[i]])!="CompressedCharacterList"){ # !is.list(clusters) is FALSE for CompressedCharacterList
clusterMaps <- NULL
for(j in seq_along(metadata(quantData_i)$sampleNames)){ #load in a file per sample name provided
clusterMap <- fread(clusters[[j]], header = FALSE,
Expand Down

1 comment on commit b122513

@lingminhao
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix the bug mentioned at GoekeLab/bambu-singlecell-spatial#6

Please sign in to comment.