
Last chance! 50% off unlimited learning
Sale ends in
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.
id.to.rs(ids)
character, meant to be a list of chip ids, but if rs-ids are present they will not be altered.
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.
# NOT RUN {
id.to.rs(c("imm_11_2138800","rs9467354","vh_1_1108138")) # middle one is already a rs.id
# }
Run the code above in your browser using DataLab