Gviz: Flip tracks so 5 prime end always on left hand side.
1
0
Entering edit mode
@stephenwilliams-15198
Last seen 5.6 years ago

I'm plotting a BiomartGeneRegionTrack() and some DataTrack() using Gviz for a bunch of genes. This is going fine and the plots look great. I it would be really nice to have all the 5' ends of the genes of interest begin on the left hand side of the track. Is there a way to simply "flip" this track (or any track for that matter) when potting using plotTracks()?

Any suggestions would be greatly appreciated so I don't have to spend hours in illustrator doing this.  

gviz gviz-package • 900 views
ADD COMMENT
0
Entering edit mode

You want to plot all the genes on the reverse strand as if they are on the forward strand?

ADD REPLY
2
Entering edit mode
Robert Ivanek ▴ 730
@robert-ivanek-5892
Last seen 4 months ago
Switzerland
Hi, I believe you do not need to spend hours with Illustrator but few minutes with vignette :) plotTracks has argument ‘reverseStrand’, by setting it to TRUE will do what you want. Best Robert > On 22 May 2018, at 20:59, stephen.williams [bioc] <noreply@bioconductor.org> wrote: > > Activity on a post you are following on support.bioconductor.org > User stephen.williams wrote Question: Gviz: Flip tracks so 5 prime end always on left hand side.: > > I'm plotting a BiomartGeneRegionTrack() and some DataTrack() using Gviz for a bunch of genes. This is going fine and the plots look great. I it would be really nice to have all the 5' ends of the genes of interest begin on the left hand side of the track. Is there a way to simply "flip" this track (or any track for that matter) when potting using plotTracks()? > > Any suggestions would be greatly appreciated so I don't have to spend hours in illustrator doing this. > > Post tags: gviz, gviz-package > > You may reply via email or visit Gviz: Flip tracks so 5 prime end always on left hand side.
ADD COMMENT
0
Entering edit mode

Hi Robert,

Thanks for the very helpful, albeit very snarky, response. I have spent hours with this vignette but did not remember this section.

For anyone who is interested these display parameters can be found in the settings {Gviz} section of the R documentation

ADD REPLY

Login before adding your answer.

Traffic: 763 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6