Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/make_DBscores.R
Generate data used by compare_motifs()
for P-value calculations. By default,
compare_motifs()
uses an internal database based on the JASPAR2018 core motifs
\insertCitejasparuniversalmotif. Parameters for distributions are
are estimated for every combination of motif widths
.
1 2 3 4 5 6 7 | make_DBscores(db.motifs, method = c("PCC", "EUCL", "SW", "KL", "WEUCL",
"ALLR", "BHAT", "HELL", "WPCC", "SEUCL", "MAN", "ALLR_LL"),
shuffle.db = TRUE, shuffle.k = 3, shuffle.method = "linear",
rand.tries = 1000, widths = 5:30, min.position.ic = 0,
normalise.scores = c(FALSE, TRUE), min.overlap = 6, min.mean.ic = 0.25,
progress = TRUE, nthreads = 1, tryRC = TRUE, score.strat = c("sum",
"a.mean", "g.mean", "median", "wa.mean", "wg.mean", "fzt"))
|
db.motifs |
|
method |
|
shuffle.db |
|
shuffle.k |
|
shuffle.method |
|
rand.tries |
|
widths |
|
min.position.ic |
|
normalise.scores |
|
min.overlap |
|
min.mean.ic |
|
progress |
|
nthreads |
|
tryRC |
|
score.strat |
|
See compare_motifs()
for more info on comparison parameters.
To replicate the internal universalmotif DB scores, run
make_DBscores()
with the default settings. Note that this will be
a slow process.
Arguments widths
, method
, normalise.scores
and score.strat
are
vectorized; all combinations will be attempted.
A DataFrame
with score distributions for the
input database. If more than one make_DBscores()
run occurs (i.e. args
method
, normalise.scores
or score.strat
are longer than 1), then
the function args are included in the metadata
slot.
Benjamin Jean-Marie Tremblay, b2tremblay@uwaterloo.ca
jasparuniversalmotif
1 2 3 4 5 6 7 | ## Not run:
library(MotifDb)
motifs <- convert_motifs(MotifDb[1:100])
scores <- make_DBscores(motifs, method = "PCC")
compare_motifs(motifs, 1:100, db.scores = scores)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.