multiLocusValidation {HLAtools} | R Documentation |
Apply validateLocus() to Multiple Loci
Description
Applies validateLocus() to a vector of locus names, validates them against HLAgazeteer$gen, and returns a vector of validated locus names.
Usage
multiLocusValidation(loci, source = "gDNA", verbose = TRUE)
Arguments
loci |
A character vector of locus names found in the current HLAgazeteer. |
source |
A character vector describing the type of alignment 'loci' should be validated against. Allowed options are 'AA' (protein), 'cDNA' (nucleotide) and 'gDNA' (genomic). Only a single value should be provided. The default value is 'gen'. |
verbose |
A logical value. If 'verbose' = TRUE, messages describing invalid 'loci' or 'source' values are generated. If 'verbose' = FALSE, no messages are generated. |
Value
A character vector of locus names that are present in HLAgazeteer$gen.
Note
The results of this check should only be considered valid for the IPD-IMGT/HLA Database release version of the current HLAgazeteer.
Examples
multiLocusValidation(loci = c("DRB1","DPB1","DQB8"))
multiLocusValidation(loci = c("A","B","C","D","Q"))