Skip to content

Commit d0ab95c

Browse files
author
Sui Yue
authored
Merge pull request #470 from GoekeLab/singleExon_2
remove the lowMemory and update example code for generating rcf
2 parents 43baac1 + d18a51f commit d0ab95c

3 files changed

Lines changed: 2 additions & 7 deletions

File tree

R/bambu-processReads.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,12 @@ bambu.processReads <- function(reads, annotations, genomeSequence,
106106
if (!is.null(readClass.outputDir)) {
107107
for(i in seq_along(readClassList)){
108108
readClassFile <- "combinedSamples"
109-
if(lowMemory){
110-
readClassFile <- metadata(readClassList[[i]])$sampleNames
111-
}
112109
readClassFile <- BiocFileCache::bfcnew(BiocFileCache::BiocFileCache(
113110
readClass.outputDir, ask = FALSE),
114111
paste0(readClassFile,"_readClassSe"), ext = ".rds")
115112
saveRDS(readClassList[[i]], file = readClassFile)
116113
readClassList[[i]] <- readClassFile
117114
}
118-
119115
}
120116
#TODO don't output list, current there because discovery needs it
121117
return(readClassList)

R/bambu.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
bambu <- function(reads, annotations = NULL, genome = NULL, NDR = NULL,
139139
mode = NULL, opt.discovery = NULL, opt.em = NULL, rcOutDir = NULL, discovery = TRUE,
140140
assignDist = TRUE, quant = TRUE, stranded = FALSE, ncore = 1, yieldSize = NULL,
141-
trackReads = FALSE, returnDistTable = FALSE, lowMemory = FALSE,
141+
trackReads = FALSE, returnDistTable = FALSE, lowMemory = FALSE,
142142
fusionMode = FALSE, verbose = FALSE, demultiplexed = FALSE, spatial = NULL, quantData = NULL,
143143
sampleNames = NULL, cleanReads = FALSE, dedupUMI = FALSE, barcodesToFilter = NULL, clusters = NULL,
144144
processByChromosome = FALSE, processByBam = TRUE) {
@@ -167,7 +167,6 @@ bambu <- function(reads, annotations = NULL, genome = NULL, NDR = NULL,
167167
}
168168
if(lowMemory)
169169
message("lowMemory has been deprecated and split into processByChromosome and processByBam. Please see Documentation")
170-
171170
if(is.null(annotations)){
172171
annotations <- GRangesList()
173172
} else {

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ se <- bambu(reads = info$rpath[1], annotations = annotations, genome = fa.file)
352352

353353
This output is also generated when both quant and discovery are set to false in a list form indexed by sample.
354354
```rscript
355-
se <- bambu(reads = test.bam, annotations = annotations, genome = fa.file, discovery = FALSE, quant = FALSE)
355+
se <- bambu(reads = test.bam, annotations = annotations, genome = fa.file, discovery = FALSE, quant = FALSE, assignDist = FALSE)
356356
```
357357

358358
As this is an intermediate object it will not be suitable to use for general use cases. We will document the object below for any potential advanced use cases that may arise.

0 commit comments

Comments
 (0)