flatten_lanl_hla: Flattens the LANL HLA file

Description Usage Arguments Details

View source: R/list_jobs.R

Description

Sometimes the same hla has a number of different names. Hence the hla_genotype column in the lanl file must be processed before the matches can be made.

Usage

1
flatten_lanl_hla(lanl_hla)

Arguments

lanl_hla

The data.frame (of class LANL_HLA_data) that contains the descriptions of the different HLA genotypes

Details

This function takes the LANL HLA file and transforms it so that each row correspond to one and only one hla. This means that row in which the 'hla_genotype' column is unpopulated gets discarded and that rows in which the 'hla_genotype' column contains the names of more than one hla_genotype (assumed to be seperated by commas) will be duplicated and each duplicate will be assigned to one hla_genotype.


philliplab/EpitopeMatcher documentation built on Nov. 17, 2020, 3:28 p.m.