Skip to contents

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

Examples

effective_decoy_pattern()
#> [1] "^REV_|^rev_|^DECOY|^decoy_|^XXX_|^reverse_|^##"
effective_decoy_pattern("^shuffled_")
#> [1] "^shuffled_|^REV_|^rev_|^DECOY|^decoy_|^XXX_|^reverse_|^##"