formatIg: Format immunoglobin antibody names

View source: R/formatIg.R

formatIgR Documentation

Format immunoglobin antibody names

Description

Adds a column to a data.frame containing immunoglobin names re-formatted to match HGNC symbols.

Assumes that Greek symbols have been converted to single letters. Diversity and joining regions are not implemented. The final a/b for e.g. IgG2a is dropped, as the specific modification isn't in protein ontology or HGNC. The lambda light chain will only be matched in HGNC if a gene number is provided.

Usage

formatIg(df, ig = "Antigen", new_col = "Ig")

Arguments

df

A data.frame or tibble

ig

(character(1), default "Antigen") Name of column containing antibody names

new_col

(character(1), default "Ig") Name of column containing re-formatted immunoglobin names to add to df

Value

df, with a new column, by default named "Ig", containing the immunoglobulin names formatted to match HGNC symbols.

Author(s)

Helen Lindsay

Examples

df <- data.frame("Antigen" = c("IgG", "IgA", "IgG1", "IgG2a"))
formatIg(df)

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