View source: R/allele-count-mism.R
CountAlleleMism | R Documentation |
Donor and recipient HLA(Human Leukocyte Antigen) typing data is compared to determine allele level mismatch. The output of EvalAlleleMism is used as input for this function. Allele level mismatch can be calculated for both high and low resolution data. The generated count will return NA if the input alleles are NA.
CountAlleleMism(dat_in, names_in)
dat_in |
A data frame with donor and recipient mismatched alleles. It's a output from EvalAlleleMism function. |
names_in |
A vector of HLA loci name to count mismatch for. |
A tibble of input data (subject id and hla loci) followed by mismatch hla count of each subject.
hla <- read.csv(system.file("extdata/example", "HLA_MisMatch_count_test.csv", package = "hlaR")) classI <- CountAlleleMism(hla, c("mism.a1", "mism.a2", "mism.b1", "mism.b2")) classII <- CountAlleleMism(hla, c("mism.dqa12", "mism.dqb11", "mism.dqb12"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.