Randomly sample sequences to a specified depth and compute diversity metrics. Used within bootstrap iterations for rarefied diversity estimation.
Arguments
- study_table
A tibble of antigen receptor sequences from
readImmunoSeq(). Must contain "junction_aa", "duplicate_count", and "duplicate_frequency" columns. Use productive junction sequences (not aggregated by amino acid) for accurate clonality estimates.- min_count
Target sequencing depth for rarefaction (default 1000). Repertoires with fewer sequences than this will be excluded with a warning.
