Downloading Sequences From Ensembl Using Ids
3
1
Entering edit mode
10.8 years ago
jaip217 ▴ 30

Hi Everyone,

Quick question: Does anyone know how to download a batch of sequences from Ensembl using their Ensembl Identifiers? I know I can do this using the Perl API but I would like to avoid doing this. I have .csv file I got from Ensembl but I can't figure out how to download them.

Thanks in advance!

ensembl • 5.4k views
ADD COMMENT
3
Entering edit mode
10.8 years ago
kandoigaurav ▴ 150

Have you tried using the Biomart (http://www.ensembl.org/biomart/martview/6e0b7f8b692454fdd5a5417af2de147c) interface for batch queries?

ADD COMMENT
0
Entering edit mode
ADD REPLY
2
Entering edit mode
2.1 years ago

You can use gget seq:

Terminal:

pip install gget
gget seq ENSG00000034713 ENSG00000104853 ENSG00000170296

Python:

!pip install gget
import gget
gget.seq(["ENSG00000034713", "ENSG00000104853", "ENSG00000170296"])

This returns sequences of the passed genes in FASTA format.

ADD COMMENT
0
Entering edit mode
4.3 years ago
dukecomeback ▴ 40

Biomart restricts on species, for multiple id from different species, check here: https://rest.ensembl.org/documentation/info/sequence_id

ADD COMMENT

Login before adding your answer.

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