how to download a list of snps with all details for a specific gene from Ensembl via python
1
0
Entering edit mode
4.8 years ago
SOS ▴ 10

Hi everyone, I tried to download the details of SNPs for a specific gene from the Ensembl database via Biomart but unfortunately did not get any results.

Could anyone please help me to use python for that?

Thanks a lot

SNP python ensembl gene • 1.2k views
ADD COMMENT
0
Entering edit mode

One question at a time! The essence of computer programming is to break down your question into steps that can be solved. You want to download SNP data, does it have to be from Ensembl? If that's difficult, consult their documentation. Or is Biomart really necessary? maybe they have tutorials at the Biomart side? Why "Via Python" ? is this really a homework question, because I don't know why anyone would choose to use a programming language they're not already good at. If you're trying to learn Python, don't mix that up with biomart and ensembl at the same time!

ADD REPLY
0
Entering edit mode
4.8 years ago
Ben Moore ★ 2.4k

Hi SOS,

You can use BioMart for this query. You will need to use the variation database, using the stable ID of your gene of interest as a filter in GENE ASSOCIATED FILTERS -> Gene Stable ID(s).

If you want to use Python, you can use the Overlap endpoint in the REST API: http://rest.ensembl.org/documentation/info/overlap_id

Best wishes

Ben Ensembl Helpdesk

ADD COMMENT
0
Entering edit mode

can I do this by just putting a gene symbol?

ADD REPLY

Login before adding your answer.

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