View source: R/allele-mism-freq.R
CalAlleleMismFreq | R Documentation |
This function evaluates allele level mismatch between donor and recipient and then presents the most commonly mismatched alleles. This function is most effectively used to study the most common mismatches within a transplant population.
CalAlleleMismFreq(dat_in, nms_don = c(), nms_rcpt = c())
dat_in |
A data frame of clean HLA typing data. |
nms_don |
A vector of column names of donor's alleles, must be length of 2. |
nms_rcpt |
A vector of column names of recipient's alleles, must be length of 2. |
A data frame of donor's mismatched alleles with frequency > 1. No mismatch is calculated if input alleles are NA.
dat <- read.csv(system.file("extdata/example", "HLA_MisMatch_test.csv", package = "hlaR")) don <- c("donor.a1", "donor.a2") rcpt <- c("recipient.a1", "recipient.a2") re <- CalAlleleMismFreq(dat_in = dat, nms_don = don, nms_rcpt = rcpt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.