Skip to content

Commit e07fbad

Browse files
committed
fix: keep read names when trackReads is TRUE
1 parent c6b26d5 commit e07fbad

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
@@ -117,7 +117,7 @@ prepareDataFromBam <- function(bamFile, yieldSize = NULL, verbose = FALSE,
117117
df <- data.frame(name = names(readGrgList),
118118
clip5 = mcols(readGrgList)$clip5Prime)
119119
df <- df %>% mutate(id = row_number()) %>% group_by(name) %>% summarise(primary.id = id[which.min(clip5)])
120-
readGrgList <- unname(readGrgList[df$primary.id])
120+
readGrgList <- readGrgList[df$primary.id]
121121
end.ptm <- proc.time()
122122
message("Primary alignment selection time ", round((end.ptm - start.ptm)[3] / 60, 3), " mins.")
123123

0 commit comments

Comments
 (0)