Skip to content

Commit 7f55cae

Browse files
committed
refactor: remove bambu.spatial wrapper
1 parent 538835a commit 7f55cae

2 files changed

Lines changed: 0 additions & 38 deletions

File tree

NAMESPACE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
export(bambu)
44
export(bambu.singlecell)
5-
export(bambu.spatial)
65
export(plotBambu)
76
export(prepareAnnotations)
87
export(readFromGTF)

R/bambu.R

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -355,40 +355,3 @@ bambu.singlecell <- function(reads, annotations = NULL, genome = NULL, NDR = NUL
355355
quantData = quantData, dedupUMI = dedupUMI, clusters = clusters,
356356
processByChromosome = processByChromosome, processByBam = processByBam)
357357
}
358-
359-
#' Spatial wrapper for bambu
360-
#' @title Spatial isoform reconstruction and quantification
361-
#' @description Wrapper around \code{\link{bambu}} for spatial transcriptomics
362-
#' data. Accepts an \code{opt.spatial} list for spatial specific parameters
363-
#' and passes all other arguments directly to \code{\link{bambu}}.
364-
#' @param opt.spatial A list of spatial specific parameters:
365-
#' \describe{
366-
#' \item{extractBarcodeUMI}{Logical, whether to extract spot barcodes and
367-
#' UMIs from BAM tags or read names. Defaults to FALSE}
368-
#' \item{dedupUMI}{Logical, whether to perform UMI-based deduplication per
369-
#' barcode. Defaults to FALSE}
370-
#' \item{clusters}{A named list mapping cluster names to barcode vectors,
371-
#' used for cluster-level transcript discovery. Defaults to NULL}
372-
#' }
373-
#' @inheritParams bambu
374-
#' @export
375-
bambu.spatial <- function(reads, annotations = NULL, genome = NULL, NDR = NULL,
376-
mode = NULL, opt.discovery = NULL, opt.em = NULL, opt.spatial = NULL,
377-
rcOutDir = NULL, discovery = TRUE, assignDist = TRUE, quant = TRUE,
378-
stranded = FALSE, ncore = 1, yieldSize = NULL, trackReads = FALSE,
379-
returnDistTable = FALSE, lowMemory = FALSE, sampleData = NULL,
380-
fusionMode = FALSE, verbose = FALSE, quantData = NULL,
381-
processByChromosome = FALSE, processByBam = TRUE) {
382-
extractBarcodeUMI <- isTRUE(opt.spatial$extractBarcodeUMI)
383-
dedupUMI <- isTRUE(opt.spatial$dedupUMI)
384-
clusters <- opt.spatial$clusters
385-
bambu(reads = reads, annotations = annotations, genome = genome, NDR = NDR,
386-
mode = mode, opt.discovery = opt.discovery, opt.em = opt.em,
387-
rcOutDir = rcOutDir, discovery = discovery, assignDist = assignDist,
388-
quant = quant, stranded = stranded, ncore = ncore, yieldSize = yieldSize,
389-
trackReads = trackReads, returnDistTable = returnDistTable,
390-
lowMemory = lowMemory, sampleData = sampleData, fusionMode = fusionMode,
391-
verbose = verbose, extractBarcodeUMI = extractBarcodeUMI,
392-
quantData = quantData, dedupUMI = dedupUMI, clusters = clusters,
393-
processByChromosome = processByChromosome, processByBam = processByBam)
394-
}

0 commit comments

Comments
 (0)