seqLogo: Draw sequence logo

Description Usage Arguments Value Author(s) Examples

Description

Draws the classic sequence logo.

Usage

1
2
3
(pwm, sparse = FALSE, drawLines = 0.5,
  stackHeight = informationContent, baseDistribution = probabilities,
  alphabet = DNA, main = NULL)

Arguments

pwm

representation of a position weight matrix (PWM) of type pwm, data.frame, or matrix

sparse

if TRUE margins are reduced and tickmarks are removed from the logo

drawLines

distance between background lines

stackHeight

function for the height of a stack at position i

baseDistribution

function for the heights of the individual bases

alphabet

of type Alphabet

main

the main title for the plot

Value

none (draws sequence logo)

Author(s)

Martin Nettling

Examples

1
2
3
4
5
6
motif_folder= "extdata/pwm"
motif_name = "HepG2"
fileName = paste(motif_folder,"/",motif_name,".pwm",sep="")
file = system.file(fileName, package = "DiffLogo")
motif = getPwmFromPwmFile(file)
(pwm = motif)

Example output

Loading required package: cba
Loading required package: grid
Loading required package: proxy

Attaching package:proxyThe following objects are masked frompackage:stats:

    as.dist, dist

The following object is masked frompackage:base:

    as.matrix

[1] "pwm must be of class matrix or data.frame. Trying to convert"

DiffLogo documentation built on Nov. 8, 2020, 6:09 p.m.