Learn R Programming

DiffLogo (version 1.2.1)

informationContent: information content

Description

the information content for the given probability vector

Usage

informationContent(p)

Arguments

p
probability vector representing the symbol distribution

Value

an object consisting of height a 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 = informationContent)

Run the code above in your browser using DataLab