getClosestComplete,IpdDb-method {ipdDb} | R Documentation |
Get the sequence of the closest allele which for which a full-length sequence is available.
getClosestComplete(x, allele, locus = NULL)
x |
The database connection; an |
allele |
A single allele as a string. |
locus |
optional parameter used if the allele identifier is not found. |
A Biostrings:DNAStringSet
object with the sequence
of the closest full-length allele.
## Load the database hla <- loadHlaData() ## Get the loci loci <- getLoci(hla) ## Get alleles of a locus alleles <- getAlleles(hla, loci[1]) alleleOfInterest <- alleles[1] ## Get the closest complete sequence seqs <- getClosestComplete(hla, alleleOfInterest, loci[1])