hmSeqLogo: hmSeqLogo

View source: R/utils_motifs.R

hmSeqLogoR Documentation

hmSeqLogo

Description

Draw a sequence motif logo in a Complex Heatmap using grid. adapted from seqLogo::seqLogo()

Usage

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(s)

Fabian Mueller

Examples

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

GreenleafLab/ChrAccR documentation built on March 22, 2023, 11:42 p.m.