Returns the regex is_decoy uses (defaults, unioned with a configured
pattern). Expose this instead of a raw configured pattern so callers report
what is actually matched, even when no pattern was configured.
Usage
effective_decoy_pattern(pattern = NULL)
Arguments
- pattern
optional configured decoy regex
Value
a single regex string
See also
Other utilities:
INTERNAL_FUNCTIONS_BY_FAMILY,
effective_contaminant_pattern(),
get_uniprot_id_from_fasta_header(),
is_contaminant(),
is_decoy(),
matrix_to_tibble(),
multigroup_volcano(),
names_to_matrix(),
pairs_smooth(),
panel_cor(),
remove_na_rows(),
table_facade()
Examples
effective_decoy_pattern()
#> [1] "^REV_|^rev_|^DECOY|^decoy_|^XXX_|^reverse_|^##"
effective_decoy_pattern("^shuffled_")
#> [1] "^shuffled_|^REV_|^rev_|^DECOY|^decoy_|^XXX_|^reverse_|^##"