<div dir="ltr">Awesome thanks, will give it a try. <div><br></div><div>Are there mirrors of <a href="http://ftp.ensembl.org">ftp.ensembl.org</a>? I'm in Boston and downloads are ~300K/s</div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Tue, Aug 20, 2013 at 12:16 PM, Andy Yates <span dir="ltr"><<a href="mailto:ayates@ebi.ac.uk" target="_blank">ayates@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 Brett,<br>
<br>
You'll need the human variation database IIRC. REST VEP is not compatible with the caches yet<br>
<div class="im HOEnZb"><br>
Andy<br>
<br>
------------<br>
Andrew Yates - Ensembl Core Software Project Leader<br>
European Bioinformatics Institute (EMBL-EBI)<br>
European Molecular Biology Laboratory<br>
Wellcome Trust Genome Campus<br>
Hinxton<br>
Cambridge CB10 1SD<br>
Tel: <a href="tel:%2B44-%280%291223-492538" value="+441223492538">+44-(0)1223-492538</a><br>
Fax: <a href="tel:%2B44-%280%291223-494468" value="+441223494468">+44-(0)1223-494468</a><br>
<a href="http://www.ensembl.org/" target="_blank">http://www.ensembl.org/</a><br>
<br>
</div><div class="HOEnZb"><div class="h5">On 20 Aug 2013, at 17:08, Brett Thomas <<a href="mailto:bthomas@atgu.mgh.harvard.edu">bthomas@atgu.mgh.harvard.edu</a>> wrote:<br>
<br>
> Hey Andy + Emily --<br>
><br>
> First, *thank you* for this fantastic writeup. It worked perfectly and helped isolate the issue. Problem is with my ensembl database, not the rest code.<br>
><br>
> When I use the VEP rest interface with <a href="http://useastdb.ensembl.org" target="_blank">useastdb.ensembl.org</a>, it works. When I use my local database, I get the same error [1]. All the endpoints other than VEP work, for example /feature/id.<br>


><br>
> Does VEP require additional databases? Here's what I have:<br>
><br>
> mysql> show databases;<br>
> +-------------------------+<br>
> | Database                |<br>
> +-------------------------+<br>
> | information_schema      |<br>
> | ensembl_accounts        |<br>
> | ensembl_ontology_72     |<br>
> | ensembl_website_72      |<br>
> | homo_sapiens_core_72_37 |<br>
> | mysql                   |<br>
> | performance_schema      |<br>
> | test                    |<br>
> +-------------------------+<br>
> 8 rows in set (0.00 sec)<br>
><br>
><br>
> Thanks --<br>
> Brett<br>
><br>
> [1] Ensembl log:<br>
><br>
> 2013/08/20 16:02:08 (5200) Catalyst.pm 1988> *** Request 1 (0.167/s) [11059] [Tue Aug 20 16:02:08 2013] ***<br>
> 2013/08/20 16:02:08 (1) Dispatcher.pm 387> Path is "/vep/get_consequences"<br>
> 2013/08/20 16:02:08 (0) Catalyst.pm 2227> "GET" request for "vep/human/1:6524705:6524705/T/consequences" from "10.0.2.2"<br>
> 2013/08/20 16:02:08 (1) Registry.pm 54> Loading the registry model object<br>
> 2013/08/20 16:02:08 (0) Registry.pm 70> Using host settings from the configuration file<br>
> 2013/08/20 16:02:08 (14) Registry.pm 107> Setting up connection policies<br>
> 2013/08/20 16:02:08 (0) Registry.pm 115> Setting all DBAdaptors to reconnect when connections are lost<br>
> 2013/08/20 16:02:08 (0) Registry.pm 120> Stopping caching in all adaptors and clearing out existing caches<br>
> 2013/08/20 16:02:08 (0) Registry.pm 128> Connection sharing turned on<br>
> 2013/08/20 16:02:08 (0) Registry.pm 141> Using reconnect_interval of 600000<br>
> 2013/08/20 16:02:08 (0) Registry.pm 151> New connection being generated for mysql DB at mysqldba@localhost:5306<br>
> 2013/08/20 16:02:08 (1) ReturnError.pm 40> stash takes a hash or hashref at /usr/local/lib/perl/5.14.2/Class/MOP/Method/Wrapped.pm line 162.<br>
> 2013/08/20 16:02:08 (0) REST.pm 485> Status Bad Request: something bad has happened<br>
> 2013/08/20 16:02:08 (10) Serialize.pm 45> Serializing with Catalyst::Action::Serialize::YAML::HTML<br>
> 2013/08/20 16:02:08 (1) Catalyst.pm 2278> Response Code: 400; Content-Type: text/html; Content-Length: 104<br>
> 2013/08/20 16:02:08 (0) Catalyst.pm 1833> Request took 0.033043s (30.264/s)<br>
> .------------------------------------------------------------+-----------.<br>
> | Action                                                     | Time      |<br>
> +------------------------------------------------------------+-----------+<br>
> | /vep/begin                                                 | 0.000121s |<br>
> | /vep/get_species                                           | 0.029161s |<br>
> |  /returnerror/begin                                        | 0.000119s |<br>
> |  /returnerror/from_ensembl                                 | 0.000585s |<br>
> |  -> returnerror/from_ensembl_GET                           | 0.000050s |<br>
> |  /returnerror/end                                          | 0.010666s |<br>
> '------------------------------------------------------------+-----------'<br>
><br>
><br>
><br>
><br>
><br>
> On Mon, Aug 19, 2013 at 5:59 AM, Andy Yates <<a href="mailto:ayates@ebi.ac.uk">ayates@ebi.ac.uk</a>> wrote:<br>
> Hi Brett,<br>
><br>
> As Emily says we can help you out if you send us your error messages. We do not ship a VM with a working rest api for download. However you should be able to take the normal Ensembl VM (<a href="ftp://ftp.ensembl.org/pub/release-72/virtual_machine/Ensembl72VirtualMachine.ova" target="_blank">ftp://ftp.ensembl.org/pub/release-72/virtual_machine/Ensembl72VirtualMachine.ova</a>) and supplement it with the rest server. This does take a little bit of mucking around in the VM because of some odd dependency issues in our VM. This is also an Ubuntu server so hopefully some of the steps will be familiar/directly applicable to your situation:<br>


><br>
> # First we need to add the following repos to the /etc/apt/sources.list (due to missing dependencies)<br>
> deb <a href="http://ca.archive.ubuntu.com/ubuntu/" target="_blank">http://ca.archive.ubuntu.com/ubuntu/</a> precise-updates main restricted<br>
> deb <a href="http://ca.archive.ubuntu.com/ubuntu/" target="_blank">http://ca.archive.ubuntu.com/ubuntu/</a> precise-updates universe<br>
> deb <a href="http://ca.archive.ubuntu.com/ubuntu/" target="_blank">http://ca.archive.ubuntu.com/ubuntu/</a> precise-updates multiverse<br>
><br>
> # Refresh apt<br>
> sudo apt-get update<br>
><br>
> # Bring in cpanminus & Module::Install from apt-get; sudo password is "ensembl"<br>
> sudo apt-get install cpanminus libmodule-install-perl<br>
> sudo apt-get install libxml-libxml-perl libtest-xml-simple-perl<br>
><br>
> # Install Catalyst and its development dependencies<br>
> cpanm --sudo Catalyst Catalyst::Devel<br>
><br>
> # Now install the REST server<br>
> cd ~/ensembl-api-folder<br>
><br>
> cvs -d :pserver:cvsuser@cvs.sanger.ac.uk:/cvsroot/ensembl login<br>
> CVS password: CVSUSER<br>
><br>
> cvs -d :pserver:cvsuser@cvs.sanger.ac.uk:/cvsroot/ensembl co -r branch-ensembl-72 ensembl-rest<br>
><br>
> cd ensembl-rest<br>
><br>
> #Bring in the dependencies for REST; this will take a long time to finish<br>
> cpanm --sudo --installdeps .<br>
><br>
> $EDITOR ensembl_rest.conf<br>
> #Edit the connection settings accordingly<br>
><br>
> perl scripts/<a href="http://ensembl_rest_server.pl" target="_blank">ensembl_rest_server.pl</a><br>
><br>
> This should start up a server on your VM on port 3000. To test the server go to<br>
><br>
> <a href="http://localhost:3000/vep/human/9:22125503-22125502:1/C/consequences?content-type=application/json" target="_blank">http://localhost:3000/vep/human/9:22125503-22125502:1/C/consequences?content-type=application/json</a><br>


><br>
> All the best,<br>
><br>
> Andy<br>
><br>
> ------------<br>
> Andrew Yates - Ensembl Core Software Project Leader<br>
> European Bioinformatics Institute (EMBL-EBI)<br>
> European Molecular Biology Laboratory<br>
> Wellcome Trust Genome Campus<br>
> Hinxton<br>
> Cambridge CB10 1SD<br>
> Tel: <a href="tel:%2B44-%280%291223-492538" value="+441223492538">+44-(0)1223-492538</a><br>
> Fax: <a href="tel:%2B44-%280%291223-494468" value="+441223494468">+44-(0)1223-494468</a><br>
> <a href="http://www.ensembl.org/" target="_blank">http://www.ensembl.org/</a><br>
><br>
> On 18 Aug 2013, at 03:08, Brett Thomas <<a href="mailto:bthomas@atgu.mgh.harvard.edu">bthomas@atgu.mgh.harvard.edu</a>> wrote:<br>
><br>
> > Hey dev -- is there a VM that has the rest API installed out of the box?<br>
> ><br>
> > I'm trying to install on a clean ubuntu VM, and can't get VEP + rest to play nice. All of the other endpoints work great, but the vep ones keep failing with a cryptic Catalyst error: "stash takes a hash or hashref"<br>


> ><br>
> > I've tried a few different library permutations but can't get it working. If anybody has suggestions about the error above I'd love to hear them - but otherwise, I was hoping to inspect a working version to see what's different.<br>


> ><br>
> > Thanks --<br>
> > Brett<br>
> > _______________________________________________<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" target="_blank">http://lists.ensembl.org/mailman/listinfo/dev</a><br>
> > Ensembl Blog: <a href="http://www.ensembl.info/" target="_blank">http://www.ensembl.info/</a><br>
><br>
><br>
> _______________________________________________<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" target="_blank">http://lists.ensembl.org/mailman/listinfo/dev</a><br>
> Ensembl Blog: <a href="http://www.ensembl.info/" target="_blank">http://www.ensembl.info/</a><br>
><br>
><br>
> The information in this e-mail is intended only for the person to whom it is<br>
> addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
> contains patient information, please contact the Partners Compliance HelpLine at<br>
> <a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
> but does not contain patient information, please contact the sender and properly<br>
> dispose of the e-mail.<br>
><br>
><br>
> _______________________________________________<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" target="_blank">http://lists.ensembl.org/mailman/listinfo/dev</a><br>
> Ensembl Blog: <a href="http://www.ensembl.info/" target="_blank">http://www.ensembl.info/</a><br>
<br>
<br>
_______________________________________________<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" target="_blank">http://lists.ensembl.org/mailman/listinfo/dev</a><br>
Ensembl Blog: <a href="http://www.ensembl.info/" target="_blank">http://www.ensembl.info/</a><br>
</div></div></blockquote></div><br></div>