formatIg | R Documentation |
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.
formatIg(df, ig = "Antigen", new_col = "Ig")
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 |
df, with a new column, by default named "Ig", containing the immunoglobulin names formatted to match HGNC symbols.
Helen Lindsay
df <- data.frame("Antigen" = c("IgG", "IgA", "IgG1", "IgG2a"))
formatIg(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.