Make a "schema" for defining a T-Cell Receptor
make_tcr_schema.Rd
This is a convenience function that simply returns a vector of column names
that are used by
read_external_paired() to define a unique
T-Cell receptor.
For example, using features = c("v", "cdr3_aa") will group all chains
with the same V-alpha/beta and CDR3-alpha/beta amino acid sequence together, while
using features = c("v", "cdr3_aa", "cdr3_nt") will require that their
nucleotide sequence is also matching.
Usage
make_tcr_schema(
features = c("v", "j", "cdr3_aa", "cdr3_nt"),
second_alpha = FALSE
)See also
Other data_processing:
TIRTL_process(),
add_single_chain_data(),
clean_pairs(),
combine_bulk_and_paired_data(),
filter_duplicate_tcrs(),
filter_mait(),
filter_nonfunctional_TCRs(),
filter_short_cdr3s(),
filter_v_alleles(),
identify_non_functional_seqs(),
identify_paired(),
prep_for_tcrdist(),
read_external_bulk(),
read_external_paired(),
remove_duplicates()
Examples
make_tcr_schema() ## default: v, j, and cdr3 amino acid and nucleotide sequence
#> [1] "va" "ja" "cdr3a" "cdr3b" "vb" "jb"
#> [7] "alpha_nuc" "beta_nuc"
make_tcr_schema(c("v", "j")) ## only v and j segments
#> [1] "va" "ja" "vb" "jb"