Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhezhenwang opened this issue Jan 5, 2021 · 0 comments
Open

Comments

@zhezhenwang
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant