View source: R/GLstring_gene_copies_combine.R
GLstring_gene_copies_combine | R Documentation |
A function for combining two columns of typing from the same locus into a single column in the appropriate GL string format.
GLstring_gene_copies_combine(.data, columns, sample_column = "sample")
.data |
A data frame |
columns |
The names of the columns in the data frame that contain typing information to be combined |
sample_column |
The name of the column that identifies samples in the data frame. Default is "sample". |
A data frame with the specified columns combined into a single column for each locus, in GL string format.
library(dplyr)
HLA_typing_1 %>%
mutate(across(A1:B2, ~ HLA_prefix_add(.))) %>%
GLstring_gene_copies_combine(c(A1:B2), sample_column = patient)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.