<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi G,<br>
<br>
There are no source-specific methods.<br>
<br>
For a given gene, you can use the get_all_DBLinks method, which will
return all the external references linked to that object.<br>
The method can take a source name argument, so you can use
get_all_DBLinks('Uniprot%') to fetch only Uniprot external
references.<br>
<br>
Else, you can fetch all external references then filter on the
dbname argument.<br>
<br>
my $xrefs = $gene->get_all_DBLinks<br>
while (my $xref = shift @$xrefs) {<br>
if ($xref->dbname eq 'Uniprot/SPTREMBL') {<br>
} elsif ($xref->dbname eq 'Uniprot/SWISSPROT') {<br>
}<br>
}<br>
<br>
<br>
Hope that helps,<br>
Magali <br>
<br>
<div class="moz-cite-prefix">On 11/03/2014 13:49, Genomeo Dev wrote:<br>
</div>
<blockquote
cite="mid:CAKry3c0nhL1PLfcghdHm-GTFT3WQc6d_XFdtNyE6vT5nNSWLqA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Hi,</div>
<div><br>
</div>
<div>I would like to pull for all Ensembl gene IDs using Ensembl
API, the following:</div>
<div><br>
</div>
<div>UniProt/TrEMBL Accession<span class=""
style="white-space:pre"> </span><br>
</div>
<div>UniProt/SwissProt Accession</div>
<div><span style="white-space:pre">UniRef Accession</span></div>
<div><span style="white-space:pre">InterPro Accession</span></div>
<div><span style="white-space:pre"><br>
</span></div>
<div><span style="white-space:pre">Looking at the documentation
I have only found interpro_ac() to pull the InterPro
Accession. Are there functions to pull the other accessions?</span><br>
</div>
<br clear="all">
<div>Thanks,</div>
<div><br>
</div>
-- <br>
<div dir="ltr">G.</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Dev mailing list <a class="moz-txt-link-abbreviated" href="mailto:Dev@ensembl.org">Dev@ensembl.org</a>
Posting guidelines and subscribe/unsubscribe info: <a class="moz-txt-link-freetext" href="http://lists.ensembl.org/mailman/listinfo/dev">http://lists.ensembl.org/mailman/listinfo/dev</a>
Ensembl Blog: <a class="moz-txt-link-freetext" href="http://www.ensembl.info/">http://www.ensembl.info/</a>
</pre>
</blockquote>
<br>
</body>
</html>