How To Get Chromosome Position Given Rs Number?
3
0
Entering edit mode
11.0 years ago
chrismas05 • 0

I have a list of a few hundred SNPs given by rs number. I want to get the chromosome and position for each SNP. For example:

input: rs4477212 output: chr1:82154

snp chromosome position • 32k views
ADD COMMENT
0
Entering edit mode

I created an iOS app for this exact purpose, I welcome any feedback.

http://chromioapp.com

ADD REPLY
2
Entering edit mode
11.0 years ago

you can download this information from NCBS dbSNP site. On the other hand, you can also use the SNP-nexus site. Very useful.

ADD COMMENT
0
Entering edit mode
ADD REPLY
0
Entering edit mode

SNP-nexus is quite good. However, when the rs number > 20000, it will become very slow...

ADD REPLY
2
Entering edit mode
11.0 years ago
Emily 24k

BioMart. Help video here.

Use the variation dataset, short variation and indels. Then filter by rsID and choose the position as an attribute.

ADD COMMENT
0
Entering edit mode

Hello Emily,

I have a data file for imputation only with rs numbers and my referecence vcf file has rsnumber:Chro:position:allele1:allele2.

Biomart has the H. sapiens variation in GRCh38 and my ref. file (1KG) is in GRCh37. How could I proceed?

ADD REPLY
0
Entering edit mode

Use the dedicated GRCh37 Ensembl site.

ADD REPLY
0
Entering edit mode
12 months ago

This is my solution: I download the "gwas_catalog_v1.0.2-associations_e110_r2023-10-29.tsv" from https://www.ebi.ac.uk/gwas/download.

awk '{ for(i=1; i<=NF; i++) { if($i ~ /^rs/) print $i } }'  gwas_catalog_v1.0.2-associations_e110_r2023-10-29.tsv |grep -v "-" |sed 's/)//g' |sed 's/;//g'|sed 's/,//g' |sort |uniq >gwas.catalog.20231109.rs.del.unique.txt
274432 gwas.catalog.20231109.rs.del.unique.txt

then download "humandb" database from annovar, and get the "hg38_gwasCatalog.txt" file.

less -NS /path/annovar/humandb_hg38/hg38_gwasCatalog.txt |awk '{print $2,$3,$4,$5}' >humandb.hg38.gwascatalog.txt
344020 humandb.hg38.gwascatalog.txt
for i in `cat gwas.catalog.20231109.rs.del.unique.txt`;do grep "${i}$" humandb.hg38.gwascatalog.txt;done |sort |uniq >gwas.catalog.20231113.filter.unique.txt

194186 gwas.catalog.20231113.filter.unique.txt (get the chr:pos position from rs number)
ADD COMMENT

Login before adding your answer.

Traffic: 1414 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6