View source: R/add_cdr3_anchors.R
add_cdr3_anchors | R Documentation |
Construct full TCR junction sequence by adding conservative anchor residues (C and F/W) to CDR3 sequence.
add_cdr3_anchors(sequence_df, chains, species = "human")
sequence_df |
A data.frame containing CDR3 sequences and J genes. Columns must be named cdr3_beta and j_beta and/or cdr3_alpha and j_alpha. |
chains |
Which chains to process. "B" for beta chain only, "A" for alpha, "AB" for both. |
species |
From which species are the sequences. Currently only human and mouse are supported. |
Same data.frame as input with additional columns junction_beta and/or jucntion_alpha
# make example table without anchor residues
df <- example_TCR_df
df$cdr3_beta <- substr(df$junction_beta, 2, nchar(df$junction_beta) - 2)
# generate column with beta chain junction sequence
df <- add_cdr3_anchors(df, "B", species="human")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.