[Bioc-devel] ggbio: Support of object inheriting from 'GRanges'
Julian Gehring
julian.gehring at embl.de
Mon Feb 3 17:54:16 CET 2014
Hi,
while ggbio work well for 'GRanges' objects, it is not able to deal with
objects inheriting from a 'GRanges', e.g. a 'VRanges' object:
library(ggbio)
library(GenomicRanges)
library(VariantAnnotation)
gr = GRanges("1", IRanges(1, 10))
vr = as(gr, "VRanges")
autoplot(gr) ## works
autoplot(vr) ## breaks
The simple workaround would be to convert back to a 'GRanges' first by
hand. But shouldn't ggbio be able to handle these cases? Is this
related to the different defaults of strands between GRanges and VRanges?
Best wishes
Julian
More information about the Bioc-devel
mailing list