height boxes gene models GeneRegionTrack Gviz
0
0
Entering edit mode
wd ▴ 30
@wd-7410
Last seen 4.7 years ago
Germany

Hi

I created two GeneRegionTracks with Gviz, one for genes on the plus strand, and one for genes on the minus strand.

gffTrack_PLUS<- GeneRegionTrack(txdb_PLUS, chromosome=scaffold,from=st, to=en,showId=TRUE,utr3="#FFD58A",utr5="#FFD58A", background.title="transparent",fontcolor.group="#808080",fontface.group=1,lwd=0.7,just.group="above",shape="box",stackHeight=0.75,stacking="squish")
gffTrack_MINUS<- GeneRegionTrack(txdb_MINUS, chromosome=scaffold,from=st, to=en,showId=TRUE,utr3="#FFD58A",utr5="#FFD58A", background.title="transparent",fontcolor.group="#808080",fontface.group=1,lwd=0.7,just.group="above",shape="box",stackHeight=0.75,stacking="squish")

However when genes overlap, the height of the boxes (representing Gene Models) is lower compared to a Gene Region Track where genes do not overlap (see plus vs minus strand in this figure, 2780 (-) vs 2790, 2770 and 2760 (-): https://imgur.com/a/JUu3j). Playing with stackHeight does not help. One could say to change the stacking type, but when using "dense" the boxes do have the same height but then the gene IDs disappear ("teturs") and I would like to keep the gene IDs in the figure.

Any suggestions would be much appreciated!

Regards

Wannes

Gviz stack generegiontrack • 1.2k views
ADD COMMENT

Login before adding your answer.

Traffic: 344 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