This function takes raw messy HLA(Human Leukocyte Antigen) typing data as input. It removes inconsistent formatting and unnecessary symbols. If one of two alleles at a loci is NA, the locus is assumed to be homozygous.
Usage
CleanAllele(var_1, var_2)
Value
A data frame with 4 columns:
- `var_1`: raw messy input hla, identical with first input
- `var_2`: raw messy input hla, identical with second input
- `locus1_clean`: cleaned hla of var_1
- `locus2_clean`: cleaned hla of var_2