Description Usage Arguments Value Author(s) Examples
Draws the classic sequence logo.
1 2 3 | seqLogo(pwm, sparse = FALSE, drawLines = 0.5,
stackHeight = informationContent, baseDistribution = probabilities,
alphabet = DNA, main = NULL)
|
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 |
none (draws sequence logo)
Martin Nettling
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)
seqLogo(pwm = motif)
|
Loading required package: cba
Loading required package: grid
Loading required package: proxy
Attaching package: ‘proxy’
The following objects are masked from ‘package:stats’:
as.dist, dist
The following object is masked from ‘package:base’:
as.matrix
[1] "pwm must be of class matrix or data.frame. Trying to convert"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.