orfs: Find and extract all open reading frames in a dstr object

Description Usage Arguments Examples

Description

Find and extract all open reading frames in a dstr object

Usage

1
2
3
4
5
dstr_locate_orfs(dstrobj, orf_pattern = REGEX_ORF[2])

dstr_extract_orfs(dstrobj, orf_pattern = REGEX_ORF[2])

dstr_find_orfs(dstrobj, orf_pattern = REGEX_ORF[2])

Arguments

dstrobj

dstr class object or character vector

orf_pattern

regular expression pattern of open reading frame

Examples

1
2
3
4
5
6
7
(temp <- dstr_rand_seq(2, 200, seed = 1))
temp %>% dstr_locate_orfs() %>% {bstr_sub_all(temp, .)}
dstr_locate_orfs(c("atgatgtga", "aaa"))

(temp <- dstr_rand_seq(2, 200, seed = 1))
temp %>% dstr_extract_orfs()
# temp %>% dstr_extract_orfs(REGEX_ORF)

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