GenomicRanges icon indicating copy to clipboard operation
GenomicRanges copied to clipboard

GRanges gives 'Error in getListElement' when creating objects

Open zhezhenwang opened this issue 4 years ago • 0 comments

Hi, I am using R/3.6.1 and GenomicRanges/1.38.0 and for some reason I am not able to create a GRanges object anymore starting yesterday. I have tried removing the package and reinstall but it still shows the same error.

x1 <- "chr2:56-125" as(x1, "GRanges") GRanges object with 1 range and 0 metadata columns: Error in getListElement(x, i, ...) : IRanges objects don't support [[, as.list(), lapply(), or unlist() at the moment

gr0 <- GRanges(Rle(c("chr2", "chr2", "chr1", "chr3"), c(1, 3, 2, 4)), IRanges(1:10, width=10:1)) gr0 GRanges object with 10 ranges and 0 metadata columns: Error in getListElement(x, i, ...) : IRanges objects don't support [[, as.list(), lapply(), or unlist() at the moment

zhezhenwang avatar Jan 05 '21 22:01 zhezhenwang