Skip to content

Commit

Permalink
additional argument before drop to subset
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew Behrens committed Feb 5, 2024
1 parent 4a15970 commit 49f25f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/countRNAseqData.R
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,8 @@ getSplitCountCacheFile <- function(sampleID, settings){
#' @export
countSplitReads <- function(sampleID, fds, NcpuPerSample=1, genome=NULL,
recount=FALSE, keepNonStandardChromosomes=TRUE,
bamfile=bamFile(fds[,sampleID,drop=FALSE]),
pairedend=pairedEnd(fds[,sampleID,drop=FALSE]),
bamfile=bamFile(fds[,sampleID,,drop=FALSE]),
pairedend=pairedEnd(fds[,sampleID,,drop=FALSE]),
strandmode=strandSpecific(fds),
cacheFile=getSplitCountCacheFile(sampleID, fds),
scanbamparam=scanBamParam(fds),
Expand Down Expand Up @@ -856,11 +856,11 @@ countNonSplicedReads <- function(sampleID, splitCountRanges, fds,
}


bamFile <- bamFile(fds[,samples(fds) == sampleID,drop=FALSE])[[1]]
bamFile <- bamFile(fds[,samples(fds) == sampleID,,drop=FALSE])[[1]]

# unstranded case: for counting only non spliced reads we
# skip this information
isPairedEnd <- pairedEnd(fds[,samples(fds) == sampleID,drop=FALSE])[[1]]
isPairedEnd <- pairedEnd(fds[,samples(fds) == sampleID,,drop=FALSE])[[1]]
doAutosort <- isPairedEnd

# check cache if available
Expand Down

0 comments on commit 49f25f9

Please sign in to comment.