getStructure,IpdDb-method {ipdDb} | R Documentation |
Get the gene structures for alleles.
getStructure(x, allele)
x |
The database connection; an |
allele |
The alleles of interest as a character vector. |
A GenomicRanges:GRanges
object with all gene
structures.
## Load the database hla <- loadHlaData() ## Get the loci loci <- getLoci(hla) ## Get alleles of a locus alleles <- getAlleles(hla, loci[1]) allelesOfInterest <- alleles[1:10] ## Get the structures seqs <- getStructure(hla, allelesOfInterest)