GLstring_gene_copies_combine: GLstring_gene_copies_combine

View source: R/GLstring_gene_copies_combine.R

GLstring_gene_copies_combineR Documentation

GLstring_gene_copies_combine

Description

A function for combining two columns of typing from the same locus into a single column in the appropriate GL string format.

Usage

GLstring_gene_copies_combine(.data, columns, sample_column = "sample")

Arguments

.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".

Value

A data frame with the specified columns combined into a single column for each locus, in GL string format.

Examples

library(dplyr)
HLA_typing_1 %>%
  mutate(across(A1:B2, ~ HLA_prefix_add(.))) %>%
  GLstring_gene_copies_combine(c(A1:B2), sample_column = patient)


immunogenetr documentation built on Aug. 21, 2025, 5:52 p.m.