formatTCR: Convert T-cell receptor antigen names

View source: R/formatTCR.R

formatTCRR Documentation

Convert T-cell receptor antigen names

Description

Convert T-cell antigen names to long format used in HGNC gene descriptions, e.g. "T cell receptor gamma variable 24. Greek symbols and words should be converted to letters before using this function

Usage

formatTCR(df, tcr = "TCR", new_col = "TCR_long")

Arguments

df

data.frame or tibble

tcr

(character(1)) Name of column in df containing TCR names

new_col

(character(1)) Name of column to

Value

df in long form with one subunit per row and a new column "new_col" containing the TCR gene description query string

df, with an additional column, by default named "TCR_long", giving the TCR name in long format to allow exact matching in the gene_aliases table.

Author(s)

Helen Lindsay

Examples

df <- data.frame(Antigen = c("TCRab", "TCR-ab", "TCRa/b"))
formatTCR(df, tcr = "Antigen")

HelenLindsay/AbNames documentation built on June 6, 2023, 1:18 p.m.