From 0107ffec7ff6e8ac0f9092ea410736018191e00f Mon Sep 17 00:00:00 2001 From: Maise B Date: Tue, 7 May 2019 17:30:50 +0100 Subject: [PATCH] Update makeBins.R --- R/makeBins.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/makeBins.R b/R/makeBins.R index a63a2be..795f842 100644 --- a/R/makeBins.R +++ b/R/makeBins.R @@ -207,7 +207,7 @@ variableWidthBins <- function(reads, binsizes, stepsizes=NULL, chromosomes=NULL) } else { ptm <- startTimedMessage("Making variable-width windows for bin size ", binsize, " and step size ", stepsizes[i1], " ...") } - if (is(binned.list[[i1]], "GRangesList")) { + if (is(binned.list[[i1]], "CompressedGRangesList")) { binned <- binned.list[[i1]][[1]] } else if (is(binned.list[[i1]], "GRanges")) { binned <- binned.list[[i1]]