Description Usage Arguments Details Examples
View source: R/vmatchPattern2.R
A functions for finding all the occurrences (aka "matches" or "hits") of a given pattern (typically short) in a (typically long) reference sequence or set of reference sequences (aka the subject). This is an updated version of vmatchPattern that take indels into account. Provided by Hervé Pagès on https://support.bioconductor.org/p/58350/
1 2 3 4 5 6 7 8 9 | vmatchPattern2(
pattern,
subject,
max.mismatch = 0,
min.mismatch = 0,
with.indels = FALSE,
fixed = TRUE,
algorithm = "auto"
)
|
pattern |
The pattern string. |
subject |
The String object for matching. |
max.mismatch, min.mismatch |
The minimum and maximum number of mismatching letters allowed. |
with.indels |
If TRUE then indels are allowed. |
fixed |
If TRUE (the default), an IUPAC ambiguity code in the pattern can only match the same code in the subject, and vice versa. |
algorithm |
One of the following: "auto", "naive-exact", "naive-inexact", "boyer-moore", "shift-or" or "indels". |
... |
Additional arguments for methods. |
See vmatchPattern for details.
1 2 3 | x <- DNAString("AAGCGCGATATG")
m1 <- matchPattern("GCNNNAT", x)
m1
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.