getReference,IpdDb-method {ipdDb}R Documentation

Get reference sequences

Description

Get the reference sequences for alleles.

Usage

getReference(x, allele)

Arguments

x

The database connection; an IpdDb object.

allele

The alleles of interest as a character vector.

Value

A Biostrings:DNAStringSet object with all references.

Examples

## 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 sequences
seqs <- getReference(hla, allelesOfInterest)


[Package ipdDb version 1.2.0 Index]