[ensembl-dev] how to use Ensembl API to fetch data from an older release?

Andy Yates ayates at ebi.ac.uk
Mon Dec 5 18:40:27 GMT 2016


You can force a specific version/release when you initialise the registry e.g.

  -HOST => 'ensembldb.ensembl.org',
  -USER => 'anonymous',
  -DB_VERSION => '67'

I would urge caution in doing so. We recommend you keep API and data releases in-sync with each other as the schema/APIs may have drifted away from each other in that period. If you do use the current API and old database together then double check any data you get out from it. Should the API throws an error then they are not compatible.

Best regards,


Andrew Yates - Genomics Technology Infrastructure Team Leader
The European Bioinformatics Institute (EMBL-EBI)
Wellcome Genome Campus
Hinxton, Cambridge
CB10 1SD, United Kingdom
Tel: +44-(0)1223-492538
Fax: +44-(0)1223-494468
Skype: andy.yates.ebi

> On 5 Dec 2016, at 18:29, Tuo Zhang <taz2008 at med.cornell.edu> wrote:
> Dear support,
> I was trying to use the most recent Ensembl Perl API to fetch data from an older release 67 (NCBIM37 for mouse). 
> The current API gives me an error message when I used gvf2vcf.pl:
> "MSG: Cannot request a slice whose start (148582227) is greater than 145441459 for 7."
> I guess the error is due to accessing a wrong mouse genome assembly. Is there a way I can force the API on a specific release?
> Thanks a lot,
> Tuo
> -- 
> Tuo Zhang, Ph.D.
> Research Associate
> Genomics Resources Core Facility
> Weill Cornell Medical College
> 1300 York Ave. Rm. A-162
> New York, NY 10021
> Tel. 212-746-5076 (O)
> taz2008 at med.cornell.edu
> _______________________________________________
> 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/

More information about the Dev mailing list