dstr_both: Apply function to both forward and reverse-complement...

Description Usage Arguments Examples

Description

Apply function to both forward and reverse-complement sequences.

Usage

1
2
3
4
5

Arguments

dstrobj

dstr class object or character vector

pattern

regex pattern

negate

If TRUE, return non-matching elements.

Examples

1
2
3
4
5
6
temp <- c("aaagggcccc", "aaagggtttcccctttccc", "gggtttccc")
dstr_detect_both(temp, "aaa")
dstr_count_both(temp, "aaa")
dstr_locate_both(temp, "aaa")
dstr_locate_both(temp, "aaa") %>%
  lapply(. %>% bstr_sub_all(temp, .))

t-arae/bstringr documentation built on March 18, 2021, 3:08 a.m.