| make_DBscores {universalmotif} | R Documentation |
Generate data used by compare_motifs() for P-value calculations. By default,
compare_motifs() uses an internal database based on the JASPAR2018 core motifs
(Khan et al. 2018). Parameters for distributions are
are estimated for every combination of motif widths.
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, benjamin.tremblay@uwaterloo.ca
Khan A, Fornes O, Stigliani A, Gheorghe M, Castro-Mondragon JA, van der Lee R, Bessy A, Cheneby J, Kulkarni SR, Tan G, Baranasic D, Arenillas DJ, Sandelin A, Vandepoele K, Lenhard B, Ballester B, Wasserman WW, Parcy F, Mathelier A (2018). “JASPAR 2018: update of the open-access database of transcription factor binding profiles and its web framework.” Nucleic Acids Research, 46, D260-D266.
## 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)