Bioconductor / GenomicRanges

Representation and manipulation of genomic intervals
https://bioconductor.org/packages/GenomicRanges
41 stars 17 forks source link

GRanges gives 'Error in getListElement' when creating objects #51

Open zhezhenwang opened 3 years ago

zhezhenwang commented 3 years ago

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