Description Usage Arguments Details Value Author(s) See Also
Compare the frequency of matches to a set of motifs within two sets of sequences
1 2 | comparePWMFreqs(refSeq, testSeq, motifs, minScore = "90%",
testCounts = NULL, useFisher = FALSE)
|
refSeq |
the set of reference sequences as an |
testSeq |
the set of test sequences as an |
motifs |
the set of motifs as a |
minScore |
the minimum matching score for the PWM |
testCounts |
if resampling over multiple reference sequences, supply this as
the output from |
useFisher |
|
Used to compare matches to the same set of motifs within two sets of sequences.
If using to bootstrap multiple sets of reference sequences, set useFisher = FALSE
and
use lapply
(or it's relatives) to specify multiple sets of XStringSet
s.
If simply testing two sets of sequences, set iseFisher = TRUE
to add p-values
from Fisher tests to every motif
Returns a tbl_df
with columns motif
, testFreq
, refFreq
& oddsRatio
,
with the additional column p
if useFisher=TRUE
.
If the argument useFisher=TRUE
, the odds ratio will be the conditional MLE estimate as calculated using that function,
whereas otherwise it will be the sample odds ratio.
Steve Pederson
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.