<div dir="ltr">Hi Kieron<div><br></div><div>Thx for your feedback.</div><div><br></div><div>As I have only downloaded the mysql dumps for several species, where is the lookup db in my case?</div><div><br></div><div>Is there a easy way to change the lookup in a way that all db's/tables will be searched?</div><div><br></div><div>regards,</div><div>David</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 23, 2016 at 3:00 PM, Kieron Taylor <span dir="ltr"><<a href="mailto:ktaylor@ebi.ac.uk" target="_blank">ktaylor@ebi.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi David,<br>
<br>
The lookup/id endpoint has no species argument to know in which database to look. Our REST servers have access to a database called ensembl_stable_ids which contains all the gene, transcript etc. ids and what species they belong to, which the lookup endpoint searches. Your ID is probably not in this "lookup" database.<br>
<br>
The script we use to populate that database is found here: <a href="https://github.com/Ensembl/ensembl/tree/master/misc-scripts/stable_id_lookup" rel="noreferrer" target="_blank">https://github.com/Ensembl/<wbr>ensembl/tree/master/misc-<wbr>scripts/stable_id_lookup</a><br>
I don't know how well it will work outside of our production environment, but we can try to help.<br>
<br>
The lookup mechanism can be made to search all tables of all databases to find your ID, but this can be terribly slow. If you try the overlap endpoint and specify the coordinates of stable_id 123456, you should be able to see your feature as normal, because you will have had to specify the feature in the URL.<br>
<br>
<br>
<br>
Regards,<br>
<br>
Kieron<br>
<div><div class="h5"><br>
<br>
> On 23 Nov 2016, at 12:38, Herzig, David <<a href="mailto:david.herzig@roche.com">david.herzig@roche.com</a>> wrote:<br>
><br>
> Hi Ensembl Team<br>
><br>
> I set up the ensembl database with several species. I also set up the REST API. Everything works fine.<br>
><br>
> Now I have loaded custom species files into a new database (created the schema, loaded sequences, loaded GFF, ...)<br>
><br>
> If I now go the the REST API on the address: GET info/species I can see my new specie. Also if I connect to the database and check the tables gene, transcript and exon, everything looks fine.<br>
><br>
> Now my issue: I have an entry in the gene table of my custom specie. The gene has the stable_id :123456 (just some ID). If I go now to the REST API and lookup for this id:<br>
><br>
> GET lookup/id/123456<br>
><br>
> I do not retrieve the gene. It seems like I have missed something.<br>
><br>
> Any ideas?<br>
><br>
> regads,<br>
> David<br>
><br>
> --<br>
> David Herzig<br>
> Scientific Application Developer<br>
> SIAD Solution Delivery & Architecture, pRED Informatics<br>
> Roche Pharma Research and Early Development<br>
> Roche Innovation Center Basel<br>
><br>
> F. Hoffmann-La Roche Ltd<br>
> Grenzacherstrasse 124<br>
> 4070 Basel<br>
> Switzerland<br>
> Phone +41 61 687 31 70<br>
> Learn more about pRED Informatics at <a href="http://go.roche.com/pREDi" rel="noreferrer" target="_blank">http://go.roche.com/pREDi</a><br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> Dev mailing list    <a href="mailto:Dev@ensembl.org">Dev@ensembl.org</a><br>
> Posting guidelines and subscribe/unsubscribe info: <a href="http://lists.ensembl.org/mailman/listinfo/dev" rel="noreferrer" target="_blank">http://lists.ensembl.org/<wbr>mailman/listinfo/dev</a><br>
> Ensembl Blog: <a href="http://www.ensembl.info/" rel="noreferrer" target="_blank">http://www.ensembl.info/</a><br>
<br>
<br>
______________________________<wbr>_________________<br>
Dev mailing list    <a href="mailto:Dev@ensembl.org">Dev@ensembl.org</a><br>
Posting guidelines and subscribe/unsubscribe info: <a href="http://lists.ensembl.org/mailman/listinfo/dev" rel="noreferrer" target="_blank">http://lists.ensembl.org/<wbr>mailman/listinfo/dev</a><br>
Ensembl Blog: <a href="http://www.ensembl.info/" rel="noreferrer" target="_blank">http://www.ensembl.info/</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><font face="tahoma, sans-serif">David Herzig</font></div><div dir="ltr"><font face="tahoma, sans-serif">Scientific Application Developer<br>SIAD Solution Delivery & Architecture, pRED Informatics<br>Roche Pharma Research and Early Development<br>Roche Innovation Center Basel<br><br>F. Hoffmann-La Roche Ltd<br>Grenzacherstrasse 124<br>4070 Basel<br>Switzerland<br>Phone +41 61 687 31 70</font><p style="font-family:arial;font-size:small"><span lang="DE" style="font-family:Imago"><span style="font-family:arial,sans-serif;color:black;font-size:10pt"><font face="tahoma, sans-serif">Learn more about pRED Informatics at </font></span><a href="http://go.roche.com/pREDi" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13.3333339691162px" target="_blank"><span style="font-size:12.8000001907349px">http://go.roche.com/</span><b style="font-size:12.8000001907349px">pREDi</b></a><br></span></p></div></div></div></div></div>
</div>