BSgenome utilities
Utilities for BSgenome objects.
## S4 method for signature 'BSgenome' vmatchPattern(pattern, subject, max.mismatch=0, min.mismatch=0, with.indels=FALSE, fixed=TRUE, algorithm="auto", exclude="", maskList=logical(0), userMask=IRangesList(), invertUserMask=FALSE) ## S4 method for signature 'BSgenome' vcountPattern(pattern, subject, max.mismatch=0, min.mismatch=0, with.indels=FALSE, fixed=TRUE, algorithm="auto", exclude="", maskList=logical(0), userMask=IRangesList(), invertUserMask=FALSE) ## S4 method for signature 'BSgenome' vmatchPDict(pdict, subject, max.mismatch=0, min.mismatch=0, fixed=TRUE, algorithm="auto", verbose=FALSE, exclude="", maskList=logical(0)) ## S4 method for signature 'BSgenome' vcountPDict(pdict, subject, max.mismatch=0, min.mismatch=0, fixed=TRUE, algorithm="auto", collapse=FALSE, weight=1L, verbose=FALSE, exclude="", maskList=logical(0)) ## S4 method for signature 'BSgenome' matchPWM(pwm, subject, min.score="80%", exclude="", maskList=logical(0)) ## S4 method for signature 'BSgenome' countPWM(pwm, subject, min.score="80%", exclude="", maskList=logical(0))
pattern |
A DNAString object containing the pattern sequence. |
subject |
A BSgenome object containing the subject sequences. |
max.mismatch, min.mismatch |
The maximum and minimum number of mismatching letters allowed (see
|
with.indels |
If |
fixed |
If |
algorithm |
For For |
exclude |
A character vector with strings that will be used to filter out chromosomes whose names match these strings. |
maskList |
A named logical vector of maskStates preferred when used with a BSGenome object. When using the bsapply function, the masks will be set to the states in this vector. |
userMask |
An IntegerRangesList, containing a mask to be applied
to each chromosome. See |
invertUserMask |
Whether the |
collapse, weight |
ignored arguments. |
pdict |
A PDict or DNAStringSet object containing the pattern sequences. |
verbose |
|
pwm |
A numeric matrix with row names A, C, G and T representing a Position Weight Matrix. |
min.score |
The minimum score for counting a match.
Can be given as a character string containing a percentage (e.g.
|
A GRanges object for vmatchPattern
.
A data.frame object for vcountPattern
and countPWM
with three columns: "seqname" (factor), "strand" (factor), and
"count" (integer).
A GRanges object for vmatchPDict
with
one metadata column: "index", which represents a mapping to a
position in the original pattern dictionary.
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.
A GRanges object for matchPWM
with two
metadata columns: "score" (numeric), and "string" (DNAStringSet).
P. Aboyoun
library(BSgenome.Celegans.UCSC.ce2) data(HNF4alpha) pattern <- consensusString(HNF4alpha) vmatchPattern(pattern, Celegans, fixed="subject") vcountPattern(pattern, Celegans, fixed="subject") pdict <- PDict(HNF4alpha) vmatchPDict(pdict, Celegans) vcountPDict(pdict, Celegans) pwm <- PWM(HNF4alpha) matchPWM(pwm, Celegans) countPWM(pwm, Celegans)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.