Description Usage Arguments Value Examples
View source: R/forground_wrapper.R
This function normalizes a PFM and optionally adds pseudo-evidence to each entry of the matrix.
1 | normalizeMotif(pfm, pseudo = 0.01)
|
pfm |
An R matrix that represents a position frequency matrix |
pseudo |
Small numeric pseudo-value that is added to each entry in the PFM in order to ensure strictly positive entries. Default: pseudo = 0.01 |
A normalized PFM
1 2 3 4 5 6 | # Load motif
motiffile = system.file("extdata", "x1.tab", package = "motifcounter")
motif = t(as.matrix(read.table(motiffile)))
# Normalize motif
new_motif = normalizeMotif(motif)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.