GetDistScore: Internal function to change HLA allele name to correct format

View source: R/GetDistScore.R

GetDistScoreR Documentation

Internal function to change HLA allele name to correct format

Description

Removes leading HLA and addition digits and checks the formatting. Works for some common alternative HLA formats.

Given two HLA alleles and a distance matrix output the distance between the two alleles for the given HLA allele

Usage

FixAllele(allele)

GetDistScore(hla1, hla2, dist.mat)

Arguments

allele

HLA allele for genes HLA-A, HLA-B or HLA-C

hla1

HLA allele for genes HLA-A, HLA-B or HLA-C, in digit format A:01:01

hla2

HLA allele for genes HLA-A, HLA-B or HLA-C, in digit format A:01:01

dist.mat

distance matrix giving distance between HLA alleles

Value

HLA allele in correct format for HLADivR to function

Distance between two HLA alleles


rbentham/HLAdivR documentation built on May 15, 2023, 1:30 p.m.