Learn R Programming

DiffLogo (version 1.2.1)

sumProbabilities: sum of probabilities, i.e. 1.0

Description

the sum of probabilities for the given probability vector, i.e. 1.0

Usage

sumProbabilities(p)

Arguments

p
probability vector representing the symbol distribution

Value

an object consisting of height and ylab

Examples

Run this code
motif_folder= "extdata/pwm"
motif_name = "HepG2"
fileName = paste(motif_folder,"/",motif_name,".txt",sep="")
file = system.file(fileName, package = "DiffLogo")
motif = as.matrix(read.delim(file,header=FALSE))
seqLogo(pwm = motif, stackHeight = sumProbabilities)

Run the code above in your browser using DataLab