Skip to content

Commit

Permalink
fix rc assignment bug (multi-sample bambu-sc)
Browse files Browse the repository at this point in the history
  • Loading branch information
lingminhao committed Feb 17, 2025
1 parent 824db18 commit 4725911
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions R/bambu-processReads.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ bambu.processReads <- function(reads, annotations, genomeSequence,

mcols(readGrgList[[i]])$BC <- as.factor(mcols(readGrgList[[i]])$BC)

if(!isFALSE(demultiplexed)){
mcols(readGrgList[[i]])$sampleID <- as.numeric(mcols(readGrgList[[i]])$BC)
} else {
mcols(readGrgList[[i]])$sampleID <- i
}
}
readGrgList <- do.call(c, readGrgList)
mcols(readGrgList)$id <- seq_along(readGrgList)
if(!isFALSE(demultiplexed)){
mcols(readGrgList[[i]])$sampleID <- as.numeric(mcols(readGrgList[[i]])$BC)
} else {
mcols(readGrgList[[i]])$sampleID <- i
}
readClassList <- constructReadClasses(readGrgList, genomeSequence = genomeSequence,annotations = annotations,
stranded = stranded, min.readCount = min.readCount,
fitReadClassModel = fitReadClassModel, min.exonOverlap = min.exonOverlap,
Expand Down

0 comments on commit 4725911

Please sign in to comment.