id.to.rs: Convert from chip ID labels to dbSNP rs-ids

Description Usage Arguments Value Author(s) See Also Examples

View source: R/humarray.R

Description

Most SNPs will have an 'rs-id' from dbSNP/HapMap, and these are often the standard for reporting or annotation lookup. These can differ from the IDs used on the chip. This functions looks at the current snp support (ChipInfo object) and returns rs-ids in place of chip IDs. Currently rs-ids are always from build37.

Usage

1
id.to.rs(ids)

Arguments

ids

character, meant to be a list of chip ids, but if rs-ids are present they will not be altered.

Value

A character vector of SNP rs-ids, where the input was chip ids, rs-ids or a mixture, any text other than this will result in NA values being returned in the character vector output.

Author(s)

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

See Also

rs.to.id, GENE.to.ENS, ENS.to.GENE

Examples

1
id.to.rs(c("imm_11_2138800","rs9467354","vh_1_1108138")) # middle one is already a rs.id

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