extract genes and functions +/-50kb around a SNP
0
0
Entering edit mode
5.5 years ago
biosol ▴ 170

Hi everyone,

I have a list of SNPs (rs) and I would like to extract all the genes and their functions that are located 50kb up- and downstream of them. I've been trying to generate the links to the corresponding pages of UCSC with Excel (which is more or less automatized). But I would like to find a way to directly obtain a file (.txtor .csv) with the information I need. Can anyone recommend a more automatized method with e.g an R package to obtain this information? Thank you very much in advanced!

SNP gwas • 1.9k views
ADD COMMENT
1
Entering edit mode
ADD REPLY
0
Entering edit mode

Hi Pierre, I'm trying to use the mysql solution you proposed in your other post, but mysql gives me the following error: ERROR 1146 (42S02) at line 2: Table 'hg19.snp130' doesn't exist. Is this because I'm looking at a deprecated table? Is there maybe a more updated one for snp information? Thanks in advance!

ADD REPLY
2
Entering edit mode

Try snp151 which is the current one and be sure to have the corret genome version hg19 <=> hg38.

ADD REPLY
0
Entering edit mode

Great, working! But... where can I find the list of tables from which to choose the information?

ADD REPLY
0
Entering edit mode

which information?

ADD REPLY
0
Entering edit mode

I'd like to find the names of the genes that are 50kb up- and downstream of my list of rs and also their functions, pathways in which they are involved and their disease associations.

ADD REPLY
0
Entering edit mode

Hi Pierre, Would you please update your answer to reflect the current dbSNP version?

ADD REPLY
1
Entering edit mode

Get coordinates or the rs in BED format ( Get Rs Number Based On Chromosome and Position ), then define a 50kb window around these using BEDtools slop and then use BEDtools intersect to intersect these windows with a GTF annotation file to get the respective genes.

ADD REPLY
1
Entering edit mode

Hi, well if you only want genes, then I would suggest downloading complete gff or similar format for your organism, and then do simple selection of rows within desired range. In good gff, there is already some functional annotation present, but with accession number for the gene you certainly will be able to look into your favourite database. Best regards

ADD REPLY
0
Entering edit mode

'with Excel'

enter image description here

ADD REPLY

Login before adding your answer.

Traffic: 1973 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