Skip to contents

lookup_alleles() takes in a set of eplets, and retrieves the corresponding HLA alleles from the Eplet Registry table.

Usage

lookup_alleles(eplet_df, eplets, allele_set = "luminex")

Arguments

eplet_df

Data frame containing the Eplet Registry; from output of load_eplet_registry().

eplets

String or character vector of Eplet names.

allele_set

Whether to return only Luminex alleles ("luminex"; default) or all alleles ("all").

Value

Named list, where each each element is a character vector of alleles for each eplet in the input.

See also

lookup_eplets() for the reverse operation

Examples

if (FALSE) { # \dontrun{
df_eplets <- load_eplet_registry()
lookup_alleles(df_eplets, "9F")
lookup_alleles(df_eplets, "3P", allele_set = "all")
# Also works for vectors:
lookup_alleles(df_eplets, c("9F", "3S"))
} # }