From 7d20050f3e6c45a5dd626f9d5f066d2483ead4eb Mon Sep 17 00:00:00 2001 From: js2264 Date: Mon, 3 Jun 2024 16:54:18 +0200 Subject: [PATCH] fix: https://github.com/js2264/HiCExperiment/issues/6 --- R/compartments.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/compartments.R b/R/compartments.R index 3240cac..1a2c262 100644 --- a/R/compartments.R +++ b/R/compartments.R @@ -39,6 +39,7 @@ getCompartments <- function( message( "Going through preflight checklist..." ) # - Check resolutions and chromosome subset if (is.null(resolution)) resolution <- resolution(x) + resolution <- as.integer(resolution) chrs <- GenomicRanges::seqnames(GenomeInfoDb::seqinfo(x)) names(chrs) <- chrs if (!is.null(chromosomes)) chrs <- chrs[chromosomes]