Description Usage Arguments Details Value Examples
Constructor for a <lookup_list> object.
1 | lookup_list(alleles, eag)
|
alleles |
A character vector of alleles. |
eag |
EAG alleles < |
Inherits from <list>.
A list with the elements:
A mapping of rep_allele <-> eag_alllele <-> eag_num for exon 2
A mapping of rep_allele <-> eag_alllele <-> eag_num for exon 2
A table of exon 3 joker alleles
A mapping table with partials
2-field NMDP-code lookup
4-field NMDP-code lookup
G-code lookup
and the attributes:
nextype_basis_id
gene
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
library("HLA")
## get a vector of reported DPB1 alleles
dpb1 <- HLA::HLA("DPB1")
alleles <- HLA::get_table(dpb1)[, .(allele1, allele2)]
alleles <- sort(unique(c(alleles[, allele1], alleles[, allele2])))
alleles <- alleles[-grep("(:XXX|NEW)", alleles)]
## get an EAG table for DPB1 and a NeXtype Basis ID
eag <- eag_table("DPB1", "1267")
lookup <- lookup_list(alleles, eag)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.