- .data
The data to be processed. Can be data.frame,
data.table, or a list of these objects.
Every object must have columns in the immunarch compatible format immunarch_data_format
- .col
A string that specifies the column name to be processed. The default value is 'CDR3.nt'.
- .method
Character value or user-defined function.
- .group_by
Character vector of column names to group sequence by. The default value is c("V.first", "J.first"). Columns "V.first" and "J.first" containing first genes without allele suffixes are calculated automatically from "V.name" and "J.name" if absent in the data. Pass NA for no grouping options.
- .group_by_seqLength
If TRUE - adds grouping by sequence length of .col argument
- .trim_genes
If TRUE - use only general gene values (e.g. "IGHV1-18") of .group_by columns for clustering; if FALSE - can cause very small clusters in case of high resolution genotyping
- ...
Extra arguments for user-defined function.
The default value is 'hamming'
for Hamming distance which counts the number of character substitutions that turns b into a.
If a and b have different number of characters the distance is Inf.
Other possible values are:
'lv'
for Levenshtein distance which counts the number of deletions, insertions and substitutions necessary to turn b into a.
'lcs'
for longest common substring is defined as the longest string can be obtained by pairing characters from a and b while keeping the order of characters intact.
In case of user-defined function, it should take x and y parameters as input and return dist object.