Skip to content

Commit dbc3416

Browse files
committed
bug fix on filtering microexons
1 parent d0ab95c commit dbc3416

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/prepareDataFromBam.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ prepareDataFromBam <- function(bamFile, yieldSize = NULL, verbose = FALSE,
9595
readGrgList <- readGrgList[[1]]
9696
}
9797
# remove microexons of width 1bp from list
98-
readGrgList <- readGrgList[width(readGrgList) > 1]
98+
readGrgList <- readGrgList <- readGrgList[sum(width(readGrgList)) > 1]
9999
numNoBCs <- sum(is.na(mcols(readGrgList)$BC))
100100
if(numNoBCs > 0){
101101
message("Removing ", numNoBCs, " reads that were not assigned barcodes. If this is unexpected check the barcode map input")

0 commit comments

Comments
 (0)