.iterativeNormForKmers | R Documentation |
Here we run '.normForKmers' multiple times to converge to
the final weights that will be used to correct the background
sequences for k-mer composition differences compared to the foreground. We
closely follow HOMER
's normalizeSequence()
function found in
Motif2.cpp
. Note that HOMER
runs the
normalizeSequence()
one last time after going through all iterations
or reaching a low error, which we do not do here.
.iterativeNormForKmers(
df,
maxKmerSize = 3L,
minSeqWgt = 0.001,
maxIter = 160L,
verbose = FALSE
)
df |
a |
maxKmerSize |
Integer scalar giving the maximum k-mer size to
consider. The default is set to 3 (like in |
minSeqWgt |
Numeric scalar greater than zero giving the
minimal weight of a sequence. The default value (0.001) was also used by
|
maxIter |
An integer scalar giving the maximum number if
times to run |
verbose |
A logical scalar. If |
a DataFrame containing:
: a
dataframe
containing the sequence GC content, GC bins they were
assigned to, the weight to correct for GC differences between foreGround
and background sequences, the weight to adjust for kmer composition, and
the the error term
: a DNAStringSet
object containing the raw sequences
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.