convertAlleleToVariable | R Documentation |
convertAlleleToVariable
converts input HLA allele numbers to additional
variables based on the supplied dictionary.
convertAlleleToVariable(allele, dictionary)
allele |
Character vector with HLA allele numbers. |
dictionary |
Path to file containing HLA allele dictionary or a data frame. |
dictionary
file should be a tsv format with header and two columns.
First column should hold allele numbers, second additional variables (eg.
expression level).
Type of the returned vector depends on the type of the additional variable.
Vector containing HLA allele numbers converted to additional
variables according to dictionary
.
dictionary <- system.file("extdata", "Match_allele_HLA_supertype.txt", package = "midasHLA")
convertAlleleToVariable(c("A*01:01", "A*02:01"), dictionary = dictionary)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.