Skip to content

Commit f259cdd

Browse files
committed
fix bambu.singlecell comments and fix CB column assignment in processreads for bulk mode
1 parent 037f425 commit f259cdd

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

R/bambu-processReads.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ bambu.processReads <- function(reads, annotations, genomeSequence,
7070
if(extractBarcodeUMI){
7171
mcols(readGrgList[[i]])$CB <- paste0(names(reads)[i], '_', mcols(readGrgList[[i]])$CB)
7272
} else{
73-
mcols(readGrgList[[i]])$CB <- i
73+
mcols(readGrgList[[i]])$CB <- names(reads)[i]
7474
}
7575

7676
mcols(readGrgList[[i]])$CB <- as.factor(mcols(readGrgList[[i]])$CB)

R/bambu.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ bambu <- function(reads, annotations = NULL, genome = NULL, NDR = NULL,
335335
#' \item{dedupUMI}{Logical, whether to perform UMI-based deduplication per
336336
#' barcode. Defaults to FALSE}
337337
#' \item{clusters}{A named list mapping cluster names to barcode vectors,
338+
#' or a path to a CSV file with \code{barcode} and \code{cluster} columns,
338339
#' used for cluster-level transcript discovery. Defaults to NULL}
339340
#' }
340341
#' @inheritParams bambu

0 commit comments

Comments
 (0)