Handle filtering by pattern

.filterByPattern(input, col_name, patterns, filter, drop)

Arguments

input

data.table preprocessed by one of the .cleanRaw* functions.

col_name

chr, name of the column with peptide sequences.

filter

lgl, if TRUE, peptides will be actually filtered.

drop

lgl, if TRUE, the column will be dropped.

pattern

chr, regular expression - matching peptides will be removed from the data.

Value

data.table