Question: How to plot circular genomes with gviz?
gravatar for Christopher.Rands
13 months ago by
Christopher.Rands10 wrote:

I am using Gviz to plot several tracks. I create a GenomeAxisTrack() and then several AnnotationTrack()s that I feed to plotTracks(). This produces a stacked output of tracks with annotated arrows as I want but the displays are linear. In some cases have the complete genomes and I know they are circular (like some bacterial/viral chromosomes), how can I display the plots as circular? 

I tried feeding to AnnotationTrack(); a GRanges() object with a Seqinfo() object specifying the isCircular=TRUE flag, but this didn't change the resulting plot.

Here is minimal code to create a linear plot, I would like a circular one where the first and last arrow join up:



track <- AnnotationTrack(start=c(1,5,7), end=c(2,6,10), strand=c('+','+','-'), stacking="dense", fill=c('red','blue', 'black'))
pdf(file=paste("test","pdf", sep="."))



Thank you!

gviz gviz-package • 415 views
ADD COMMENTlink modified 13 months ago • written 13 months ago by Christopher.Rands10

Apparently this simply isn't possible with Gviz, see here

ADD REPLYlink written 12 months ago by Christopher.Rands10
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 112 users visited in the last hour