getStructure-IpdDb-method: Get gene structures

Description Usage Arguments Value Examples

Description

Get the gene structures for alleles.

Usage

1
getStructure(x, allele)

Arguments

x

The database connection; an IpdDb object.

allele

The alleles of interest as a character vector.

Value

A GenomicRanges:GRanges object with all gene structures.

Examples

1
2
3
4
5
6
7
8
9
## 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)

ipdDb documentation built on Nov. 8, 2020, 6:07 p.m.