hmSeqLogo.Rd
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 (from TFBSTools package)
x center coordinate where the motif should be drawn
y center coordinate where the motif should be drawn
drawing width
drawing height
logical
If TRUE, the height of each column is proportional to its information content. Otherwise, all columns have the same height.
Draws the motif
if (FALSE) {
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)
}