hmSeqLogo | R Documentation |
Draw a sequence motif logo in a Complex Heatmap using grid.
adapted from seqLogo::seqLogo()
hmSeqLogo(
pwm,
x = unit(0.5, "npc"),
y = unit(0.5, "npc"),
width = 1,
height = 1,
ic.scale = TRUE
)
pwm |
PWM (from TFBSTools package) |
x |
x center coordinate where the motif should be drawn |
y |
y center coordinate where the motif should be drawn |
width |
drawing width |
height |
drawing height |
ic.scale |
|
Draws the motif
Fabian Mueller
## Not run:
mm <- prepareMotifmatchr("hg38", "jaspar")$motifs[["MA0137.3_STAT1"]]
hmSeqLogo(mm, unit(0.5, "npc"), unit(0.5, "npc"), 0.5, 0.5, ic.scale=TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.