"matchPWM"(pwm, subject, min.score = "80%", exclude = "", maskList = logical(0))
"countPWM"(pwm, subject, min.score = "80%", exclude = "", maskList = logical(0))
"vmatchPattern"(pattern, subject, max.mismatch = 0, min.mismatch = 0, with.indels = FALSE, fixed = TRUE, algorithm = "auto", exclude = "", maskList = logical(0), userMask = RangesList(), invertUserMask = FALSE)
"vcountPattern"(pattern, subject, max.mismatch = 0, min.mismatch = 0, with.indels = FALSE, fixed = TRUE, algorithm = "auto", exclude = "", maskList = logical(0), userMask = RangesList(), invertUserMask = FALSE)
"vmatchPDict"(pdict, subject, max.mismatch = 0, min.mismatch = 0, fixed = TRUE, algorithm = "auto", verbose = FALSE, exclude = "", maskList = logical(0))
"vcountPDict"(pdict, subject, max.mismatch = 0, min.mismatch = 0, fixed = TRUE, algorithm = "auto", collapse = FALSE, weight = 1L, verbose = FALSE, exclude = "", maskList = logical(0))
"85%"
) of the highest possible score or as a single number.
?`lowlevel-matching`
for the details).
If non-zero, an inexact matching algorithm is used.
TRUE
then indels are allowed. In that case, min.mismatch
must be 0
and max.mismatch
is interpreted as the maximum
"edit distance" allowed between any pattern and any of its matches
(see ?`matchPattern`
for the details).
FALSE
then IUPAC extended letters are interpreted as ambiguities
(see ?`lowlevel-matching`
for the details).
vmatchPattern
and vcountPattern
one of the following:
"auto"
, "naive-exact"
, "naive-inexact"
,
"boyer-moore"
, "shift-or"
, or "indels"
. For vmatchPDict
and vcountPDict
one of the following:
"auto"
, "naive-exact"
, "naive-inexact"
,
"boyer-moore"
, or "shift-or"
.
TRUE
or FALSE
.
bsapply
.
userMask
should be inverted.
matchPWM
with two
elementMetadata columns: "score" (numeric), and "string" (DNAStringSet).A GRanges object for vmatchPattern
.A GRanges object for vmatchPDict
with
one elementMetadata column: "index", which represents a mapping to a
position in the original pattern dictionary.A data.frame object for countPWM
and vcountPattern
with three columns: "seqname" (factor), "strand" (factor), and
"count" (integer).A DataFrame object for vcountPDict
with four
columns: "seqname" ('factor' Rle), "strand" ('factor' Rle),
"index" (integer) and "count" ('integer' Rle). As with vmatchPDict
the index column represents a mapping to a position in the original
pattern dictionary.
matchPWM
,
matchPattern
,
matchPDict
,
bsapply
library(BSgenome.Celegans.UCSC.ce2)
data(HNF4alpha)
pwm <- PWM(HNF4alpha)
matchPWM(pwm, Celegans)
countPWM(pwm, Celegans)
pattern <- consensusString(HNF4alpha)
vmatchPattern(pattern, Celegans, fixed = "subject")
vcountPattern(pattern, Celegans, fixed = "subject")
vmatchPDict(HNF4alpha[1:10], Celegans)
vcountPDict(HNF4alpha[1:10], Celegans)
Run the code above in your browser using DataLab