Hi Julian,

You are right, because autoplot() doesn't support VRanges object yet, it
should not be a hard implementation, I will do this in devel branch this
week.

cheers

Tengfei


On Mon, Feb 3, 2014 at 11:54 AM, Julian Gehring <julian.gehring@embl.de>wrote:

> 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@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel
>



-- 
Tengfei Yin, PhD
Seven Bridges Genomics
sbgenomics.com
625 Mt. Auburn St. Suite #208
Cambridge, MA 02138
(617) 866-0446

	[[alternative HTML version deleted]]

