Build a seq_options
list for sequence‑based receptor filtering
Source: R/operations_utils.R
make_seq_options.Rd
A convenience wrapper that validates the common arguments for
filter_receptors()
and returns them in the required list form.
Arguments
- query_col
Character(1). Name of the receptor column to compare (e.g.
"cdr3_aa"
).- patterns
Character vector of sequences or regular expressions to search for.
- method
One of
"exact"
,"regex"
,"lev"
(Levenshtein), or"hamm"
(Hamming). Defaults to"exact"
.- max_dist
Numeric distance threshold for
"lev"
/"hamm"
filtering. UseNA
(default) to keep all rows after annotation.- name_type
Passed straight to
annotate_tbl_distance()
; either"index"
(default) or"pattern"
.
Value
A named list suitable for the seq_options
argument of
filter_receptors()
.