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
)

Arguments

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

logical If TRUE, the height of each column is proportional to its information content. Otherwise, all columns have the same height.

Value

Draws the motif

Author

Fabian Mueller

Examples

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)
}