This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Reverse gene lookup from SNP

I've exported my 23andme results, and the resulting spreadsheet contains only the rs# and genotype. I would also like an extra column that lists the genes that these particular SNP's belong to where applicable.

I realize it's easy to find rs#s given a gene, but how do you find a gene that an rs# belongs to, if indeed it does belong to a gene? Is there an automated way to do this? Thanks.

genome snp

1 answer

The R/bioconductor package biomaRt can do this. Look up the associated gene in the hsapiens_snp mart, and then use this in hsapiens_gene_ensembl to get the gene name.

Great, thanks!

Log in to answer this question.