As is_decoy, but for contaminant entries (keratin, trypsin,
BSA, ...). Built-in anchored default prefixes unioned with an optional
configured pattern; empty / NULL uses the defaults only.
Usage
is_contaminant(ids, pattern = NULL)
Arguments
- ids
character vector of (prefixed) identifiers
- pattern
optional additional contaminant regex, unioned with defaults
Value
logical vector, TRUE where an id looks like a contaminant
See also
Other utilities:
INTERNAL_FUNCTIONS_BY_FAMILY,
effective_contaminant_pattern(),
effective_decoy_pattern(),
get_uniprot_id_from_fasta_header(),
is_decoy(),
matrix_to_tibble(),
multigroup_volcano(),
names_to_matrix(),
pairs_smooth(),
panel_cor(),
remove_na_rows(),
table_facade()
Examples
is_contaminant(c("zz|Cont00001|X", "sp|P2|X", "CON__ALBU"))
#> [1] TRUE FALSE TRUE