Description Usage Arguments Value Author(s) Examples
Creates a matrix-representation of a PWM from a set of sequences
1 | getPwmFromAlignment(alignment, alphabet = NULL, pseudoCount = 0)
|
alignment |
a vector or list of sequences each with equal length |
alphabet |
of type Alphabet |
pseudoCount |
the number of pseudo-observations for each character in the alphabet |
PWM as matrix
Hendrik Treutler
1 2 3 4 5 6 | motif_folder= "extdata/alignments"
motif_name = "calamodulin_1"
fileName = paste(motif_folder,"/",motif_name,".txt",sep="")
file = system.file(fileName, package = "DiffLogo")
motif = getPwmFromAlignment(readLines(file), ASN, 1)
seqLogo(pwm = motif, alphabet=ASN)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.