hlaCallsToCounts converts HLA calls data frame into a counts table.

hlaCallsToCounts(hla_calls, check_hla_format = TRUE)

Arguments

hla_calls

HLA calls data frame, as returned by readHlaCalls function.

check_hla_format

Logical indicating if hla_calls format should be checked. This is useful if one wants to use hlaCallsToCounts with input not adhering to HLA nomenclature standards. See examples.

Value

HLA allele counts data frame. First column holds samples ID's, further columns, corresponding to specific alleles, give information on the number of their occurrences in each sample.