Skip to contents

A modified vmatchPattern function that supports indels and mismatches

Usage

vmatchPattern2(
  pattern,
  subject,
  max.mismatch = 0,
  min.mismatch = 0,
  with.indels = FALSE,
  fixed = TRUE,
  algorithm = "auto"
)

Arguments

pattern

String to search for

subject

DNAStringSet to query

max.mismatch

Maximum number of mismatches allowed

min.mismatch

Minimum number of mismatches allowed

with.indels

Boolean for whether to include indels

fixed

Boolean for whether to match character symbols

algorithm

Which search algorithm to use. Defaults to "auto"

Value

A data frame of interval ranges per sequence

Examples

if (FALSE) { # interactive()
print("TBD")
}