motifStack: how to make the start of motif logos have the same distance to the center
1
0
Entering edit mode
viyjy • 0
@viyjy-14749
Last seen 6.8 years ago

I tried to follow the instructions in section 3.5 from this link (https://bioconductor.org/packages/release/bioc/vignettes/motifStack/inst/doc/motifStack_HTML.html to plot logo stack with radial style. But I found the distance between the start of motif logos and the center are different, which makes the figure a little bit strange. Any suggestions or hints regarding this issue? Thanks in advance!

The code I used could be found as follows:

motifStack(motifs2, 

           layout="radialPhylog", 

           circle = 1.7,     

           cleaves = 0.2, 

           clabel.leaves = 1, 

           col.bg=rep(color, each=7), col.bg.alpha=0.3, 

           col.leaves=rep(color, each=7),

           col.inner.label.circle=rep(color, each=7), 

           inner.label.circle.width=0.05,

           col.outer.label.circle=rep(color, each=7), 

           outer.label.circle.width=0.02, 

           circle.motif= 1.5,    # The outer circle of motif

           angle=360)
motifStack • 1.0k views
ADD COMMENT
2
Entering edit mode
Ou, Jianhong ★ 1.3k
@ou-jianhong-4539
Last seen 3 days ago
United States

Hi,

Thank you for trying motifStack.

Because the motifStack will automatically try to align the motifs, after alignment, the start position of the motifs will be different. If you do not want automatic alignment, please try to useĀ  plotMotifStackWithRadialPhylog function.

Also, please try to set the circle.motif=NA.

ADD COMMENT
0
Entering edit mode

It works, thanks.

ADD REPLY

Login before adding your answer.

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