AB: Returns the A and B allele for SNP ids

Description Usage Arguments Value Author(s) See Also Examples

View source: R/humarray.R

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

1
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.

Author(s)

Nicholas Cooper nick.cooper@cimr.cam.ac.uk

See Also

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

Examples

1
2
snp.ids <- c("rs3842724","rs9729550","rs1815606","rs114582555","rs1240708","rs6603785")
AB(snp.ids) 

humarray documentation built on Nov. 20, 2017, 1:05 a.m.