Skip to content
Prev 13599 / 21312 Next

[Bioc-devel] Problem showing a GRanges with a meta data column of data frame

Hi all,

I recently upgraded R to 3.5 and use the new release of Bioconductor.
The new version of S4Vectors seems to have problem showing a GRanges
with a meta-data column of a data frame. One simplified example is:

gr <- GRanges('chr2', IRanges(1, 11))
gr$df <- data.frame(a = 32)

rep(gr, 11) ## No error

rep(gr, 12) ## Error when printing
# GRanges object with 12 ranges and 1 metadata column:
# Error in .Call2("vector_OR_factor_extract_ranges", x, start, width,
PACKAGE = "S4Vectors") : 
#   'end' must be <= 'length(x)'

Any help would be appreciated!

Best regards,
Jialin