Helper to find layer configuration keys
get_keys.RdThis helper function searches for keys defined in inst/config/seq_layers.yaml.
Keys are matched using a regular-expression pattern.
Arguments
- pattern
characterorNULL; regular-expression pattern used to filter keys. IfNULL, all keys defined in the configuration are returned.- reduce
logical; ifTRUE(default), reduce each matching key.- filepath
characterorNULL; optional override for the path to the YAML configuration file. Mainly used for testing purposes.
Value
A character vector of matching keys.
If reduce = TRUE, the returned keys are the reduced forms.
If pattern = NULL, all configuration keys are returned.
Details
Reduction process
Configuration keys typically follow a three/four-part structure such as
"v.seq.parca.poly" or "r.ortho.irc". When reduce = TRUE, each key is
split on "." and only the third element is returned (s). This provides a
short, semantic identifier for internal use.
If multiple full keys reduce to the same name, the function aborts to prevent ambiguity.