[ensembl-dev] ENSP to transcript

Emily Pritchard emily at ebi.ac.uk
Mon Apr 15 10:38:26 BST 2013


Or indeed fetch_by_translation_stable_id, without the typo.

On 15/04/2013 10:37, Emily Pritchard wrote:
> Hi Jens
>
> It's returning undef because the transcript adaptor expects a 
> transcript ID. To fetch by a protein ID use the method 
> fetch_by_translation_table_id:
> http://www.ensembl.org/info/docs/Doxygen/core-api/classBio_1_1EnsEMBL_1_1DBSQL_1_1TranscriptAdaptor.html#a973cb5603702027d5fab2f639fe26cd0
>
> All the best
>
> Emily
>
> On 15/04/2013 10:32, Jens Christian Nielsen wrote:
>> Hello Ensemblers,
>>
>> I got a list of protein stable id's like
>> ENSP00000291232
>> ENSP00000291232
>> ENSP00000382378
>> ...
>>
>> , and i want to retrieve the corresponding transcripts. I have tried 
>> using:
>>
>> $transcript = $transcript_adaptor->fetch_by_stable_id($stable_id);
>>
>> but it returns undefined for all the stable id's. How can I fetch the 
>> transcripts?
>>
>> Thank  you,
>>
>> Jens
>>
>>
>> _______________________________________________
>> Dev mailing listDev at ensembl.org
>> Posting guidelines and subscribe/unsubscribe info:http://lists.ensembl.org/mailman/listinfo/dev
>> Ensembl Blog:http://www.ensembl.info/
>
> -- 
> Dr Emily Pritchard
> Ensembl Outreach Officer
>
> EMBL - European Bioinformatics Institute
> Wellcome Trust Genome Campus
> Hinxton
> Cambridge
> CB10 1SD
> UK
>
>
> _______________________________________________
> Dev mailing list    Dev at ensembl.org
> Posting guidelines and subscribe/unsubscribe info: http://lists.ensembl.org/mailman/listinfo/dev
> Ensembl Blog: http://www.ensembl.info/

-- 
Dr Emily Pritchard
Ensembl Outreach Officer

EMBL - European Bioinformatics Institute
Wellcome Trust Genome Campus
Hinxton
Cambridge
CB10 1SD
UK

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ensembl.org/pipermail/dev_ensembl.org/attachments/20130415/cfffe1cb/attachment.html>


More information about the Dev mailing list