How to check the type of identifier from ensembl?
3
1
Entering edit mode
8.6 years ago
Joseph Hughes ★ 3.0k

When creating a homology adaptor, the homology members that are returned can either be protein ids or transcript ids. Is there a way of determining what type of ID is returned?

In more general terms, if I have an ensembl ID, is there a way to check whether this ID is for a transcript, gene, protein, genetree etc...

ensembl transcript protein perl api • 2.8k views
ADD COMMENT
5
Entering edit mode
ADD COMMENT
3
Entering edit mode
8.6 years ago
Emily 24k

EagleEye is right, but if you're wanting to code it, you could use the lookup endpoint on the REST API. If you're using the Perl API, the registry has a get_species_and_object_type method.

ADD COMMENT
0
Entering edit mode
8.6 years ago

Here is the direct link to our documentation page which lists the different feature prefixes: http://www.ensembl.org/info/genome/stable_ids/index.html

ADD COMMENT

Login before adding your answer.

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