stri_detect_fixed_in_collapsed: Detect fixed patterns in collapsed strings

stri_detect_fixed_in_collapsedR Documentation

Detect fixed patterns in collapsed strings

Description

Detect fixed patterns in collapsed strings

Usage

stri_detect_fixed_in_collapsed(x, patterns, sep)

Arguments

x

vector with collapsed strings

patterns

vector with fixed patterns (strings)

sep

collapse separator (string) or NULL (if uncollapsed)

Value

boolean vector

Examples

file <- system.file('extdata/fukuda20.proteingroups.txt', package = 'autonomics')
object <- read_maxquant_proteingroups(file)
x <- fdt(object)$uniprot
patterns <- c('A0A0R4IKT8', 'Q7T3G6')
table(stri_detect_fixed_in_collapsed(x = x, patterns = patterns, sep = ';'))

bhagwataditya/autonomics documentation built on Nov. 1, 2024, 5:47 a.m.