Description Usage Arguments Value Author(s) Examples
the sum of absolute probability differences for the given pair of probability vectors
1 | sumOfAbsProbabilityDifferences(p1, p2)
|
p1 |
probability vector representing the first symbol distribution |
p2 |
probability vector representing the second symbol distribution |
an object consisting of height and ylab
Martin Nettling
1 2 3 4 5 6 7 8 9 10 11 12 13 | motif_folder= "extdata/pwm"
motif_names = c("HepG2","MCF7","HUVEC","ProgFib")
motifs = list()
for (name in motif_names) {
fileName = paste(motif_folder,"/",name,".pwm",sep="")
file = system.file(fileName, package = "DiffLogo")
motifs[[name]] = getPwmFromPwmFile(file)
}
pwm1 = motifs[[motif_names[[1]]]]
pwm2 = motifs[[motif_names[[2]]]]
diffLogoFromPwm(pwm1 = pwm1, pwm2 = pwm2, stackHeight = sumOfAbsProbabilityDifferences)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.