Skip to content

Commit

Permalink
Fix mode
Browse files Browse the repository at this point in the history
  • Loading branch information
andredsim committed Oct 29, 2024
1 parent 09dcb4d commit c55383d
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions R/bambu.R
Original file line number Diff line number Diff line change
Expand Up @@ -142,23 +142,25 @@ bambu <- function(reads, annotations = NULL, genome = NULL, NDR = NULL,
fusionMode = FALSE, verbose = FALSE, demultiplexed = FALSE, spatial = NULL, quantData = NULL,
sampleNames = NULL, cleanReads = FALSE, dedupUMI = FALSE, clusters = NULL) {
message(paste0("Running Bambu-v", "3.3.0"))
if(mode == "bulk"){
lowMemory = TRUE
}
if(mode == "multiplexed"){
if(is.null(demultiplex)) demultiplex = TRUE
cleanReads = TRUE
opt.em = list(degradationBias = FALSE)
quant = FALSE
}
if(mode == "fusion"){
NDR = 1
fusionMode = TRUE
}
if(mode == "debug"){
verbose = TRUE
trackReads = TRUE
returnDistTable = TRUE
if(!is.null(mode)){
if(mode == "bulk"){
lowMemory = TRUE
}
if(mode == "multiplexed"){
if(is.null(demultiplex)) demultiplex = TRUE
cleanReads = TRUE
opt.em = list(degradationBias = FALSE)
quant = FALSE
}
if(mode == "fusion"){
NDR = 1
fusionMode = TRUE
}
if(mode == "debug"){
verbose = TRUE
trackReads = TRUE
returnDistTable = TRUE
}
}
if(is.null(annotations)) { annotations = GRangesList()
} else annotations <- checkInputs(annotations, reads,
Expand Down

0 comments on commit c55383d

Please sign in to comment.