get_filt: Get the outcome of pattern matching a string with regex...

View source: R/utilities.R

get_filtR Documentation

Get the outcome of pattern matching a string with regex patterns

Description

Does pattern matching for regex patterns constructed from a character string or vector of such character strings.

Usage

get_filt(
  v,
  m = mdpre,
  filtrel = "|",
  ntfilt = NULL,
  ptfilt = NULL,
  varl = c("gsm_title", "sample_type", "disease_state", "anatomic_location", "misc")
)

Arguments

v

Character string or vector of such strings.

m

Preprocessed metadata used for pattern matching/lookups (data.frame, mdpre).

filtrel

Logical symbol joining each regex pattern (default "|").

ntfilt

Regex pattern corresponding to negative lookup filter (default NULL).

ptfilt

Regex pattern corresponding to positive lookup filter (default NULL).

Value

The result of assessing a regex match on a metadata variable.

See Also

appendvar


metamaden/rmpipeline documentation built on Jan. 12, 2023, 3:20 p.m.