View source: R/accessoryFunctions.R
validateAllele | R Documentation |
Returns TRUE if an allele name is found in HLAalignments in either the 'allele_name' column of full-length allele names or the 'trimmed_allele' column of two-field allele names in the pertinent genomic alignment. Returns FALSE if the allele name is not properly formed, or if the allele name is not found in HLAalignments.
validateAllele(allele)
allele |
A character string of the colon-delimited HLA allele name. |
A logical identifying if the allele name is present in the alignments (TRUE) or, if it is not in the alignments or is not valid (FALSE).
Messages will be returned to the console if the allele name is malformed, or the locus is invalid; e.g., 'validateAllele("C\*01:01:01:01")' or 'validateAllele("A\*01:01:01:01:01")'.
The locus being evaluated must be included in HLAalignments.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.