Skip to content

Commit

Permalink
update getCounts
Browse files Browse the repository at this point in the history
  • Loading branch information
timydaley committed Feb 10, 2019
1 parent a559e49 commit 51c0c72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/read_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ getCountsMatrix <- function(bamfiles, peaks, PAIRED = FALSE,
VERBOSE = FALSE){
peaks.gr = peaks2GRanges(peaks)
if(byReadGroup){
if(VERBOSE){
message("getting counts by read group\n")
}
bamfile = bamfiles;
stopifnot(length(bamfile) == 1)
counts_mat = getCountsByReadGroup(bamfile, peaks.gr, tag = RGtag,
Expand Down

0 comments on commit 51c0c72

Please sign in to comment.