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
[Bioc-devel] ggbio: Support of object inheriting from 'GRanges'
2 messages · Julian Gehring, Tengfei Yin
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/bioc-devel/attachments/20140203/a7c48757/attachment.pl>