Description Usage Arguments Value Examples
Information content for a PWM or PFM
1 2 3 4 5 |
motif |
a matrix of frequencies, or a PWM object |
prior.params |
the prior parameters to use when a matrix is given (ignored if motif is already a PWM) |
bycol |
if to return values separately for each column |
information content in bits (i.e. log2)
1 2 3 4 5 6 7 8 9 10 | if(requireNamespace("PWMEnrich.Dmelanogaster.background")){
data(MotifDb.Dmel, package = "PWMEnrich.Dmelanogaster.background")
data(MotifDb.Dmel.PFM, package = "PWMEnrich.Dmelanogaster.background")
# the nucleotide distribution is taken from the PWM (in this case genomic background)
motifIC(MotifDb.Dmel[["ttk"]])
# information content with default uniform background because the input is a matrix,
# not PWM object
motifIC(MotifDb.Dmel.PFM[["ttk"]])
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.