Learn R Programming

humarray (version 1.2)

AB: Returns the A and B allele for SNP ids

Description

For a set of chip ids or rs ids, returns a two column matrix containing the A and B allele. For snpStats objects the default is that A,B are coded in alphabetical order, so A,C; A,T; C,T; C,G are possible A,B pairs. Allele codes are specific to each dataset, so you should upload your allele codes into the current ChipInfo object to make the alleles produced by this function meaningful.

Usage

AB(ids)

Arguments

ids

character, a list of chip ids or rs-ids as contained in the current ChipInfo object

Value

Returns a two column matrix containing the A and B allele.

See Also

Chr, Pos, Pos.band, Band, Band.gene, Band.pos, Gene.pos

Examples

Run this code
# NOT RUN {
snp.ids <- c("rs3842724","rs9729550","rs1815606","rs114582555","rs1240708","rs6603785")
AB(snp.ids) 
# }

Run the code above in your browser using DataLab