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

Tuo Zhang taz2008 at med.cornell.edu
Mon Dec 5 20:22:57 GMT 2016


Hi Andy,

Thank you for the detailed explanation.

As you suggested, it is better to use an older version of API that was
released together with old data. I'm wondering if it's possible to download
an old API version for the data release 67, and if yes where to find it?

Many thanks,

Tuo



On Mon, Dec 5, 2016 at 1:40 PM, Andy Yates <ayates at ebi.ac.uk> wrote:

> Hi
>
> You can force a specific version/release when you initialise the registry
> e.g.
>
> Bio::EnsEMBL::Registry->load_registry_from_db(
>   -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,
>
> Andy
>
> ------------
> 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
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.ebi.
> ac.uk_&d=DgICAg&c=lb62iw4YL4RFalcE2hQUQealT9-RXrryqt9KZX2qu2s&r=
> GeYlYFSDOh6FeJfIpxiQBIGiTmKddcB8p70ifxiQHSw&m=
> GM52UjzGsdEVOzFiR4AJFV8IAcxiroi3Cye_21kOrtI&s=mIOWUgYZPRUzorsWKp_
> giRfsMsA1zZNSY4tPynB7PQ0&e=
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.
> ensembl.org_&d=DgICAg&c=lb62iw4YL4RFalcE2hQUQealT9-RXrryqt9KZX2qu2s&r=
> GeYlYFSDOh6FeJfIpxiQBIGiTmKddcB8p70ifxiQHSw&m=
> GM52UjzGsdEVOzFiR4AJFV8IAcxiroi3Cye_21kOrtI&s=
> ghIe1U8M7zbNKKZfJKe0QVZo2MJPUKRlpoeZ_T2h0-c&e=
>
> > 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:
> https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.
> ensembl.org_mailman_listinfo_dev&d=DgICAg&c=lb62iw4YL4RFalcE2hQUQealT9-
> RXrryqt9KZX2qu2s&r=GeYlYFSDOh6FeJfIpxiQBIGiTmKddcB8p70ifxiQHSw&m=
> GM52UjzGsdEVOzFiR4AJFV8IAcxiroi3Cye_21kOrtI&s=nAPYH58bCo-
> s7VRaPEJRczm0SnRwxpZK1S7PlQVkZ3U&e=
> > Ensembl Blog: https://urldefense.proofpoint.com/v2/url?u=http-3A__www.
> ensembl.info_&d=DgICAg&c=lb62iw4YL4RFalcE2hQUQealT9-RXrryqt9KZX2qu2s&r=
> GeYlYFSDOh6FeJfIpxiQBIGiTmKddcB8p70ifxiQHSw&m=
> GM52UjzGsdEVOzFiR4AJFV8IAcxiroi3Cye_21kOrtI&s=JfDJ-
> kTFzVQumv6ZbXzZZpr1wkQStla66UzCPUuvr8o&e=
>
>
> _______________________________________________
> Dev mailing list    Dev at ensembl.org
> Posting guidelines and subscribe/unsubscribe info:
> https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.
> ensembl.org_mailman_listinfo_dev&d=DgICAg&c=lb62iw4YL4RFalcE2hQUQealT9-
> RXrryqt9KZX2qu2s&r=GeYlYFSDOh6FeJfIpxiQBIGiTmKddcB8p70ifxiQHSw&m=
> GM52UjzGsdEVOzFiR4AJFV8IAcxiroi3Cye_21kOrtI&s=nAPYH58bCo-
> s7VRaPEJRczm0SnRwxpZK1S7PlQVkZ3U&e=
> Ensembl Blog: https://urldefense.proofpoint.com/v2/url?u=http-3A__www.
> ensembl.info_&d=DgICAg&c=lb62iw4YL4RFalcE2hQUQealT9-RXrryqt9KZX2qu2s&r=
> GeYlYFSDOh6FeJfIpxiQBIGiTmKddcB8p70ifxiQHSw&m=
> GM52UjzGsdEVOzFiR4AJFV8IAcxiroi3Cye_21kOrtI&s=JfDJ-
> kTFzVQumv6ZbXzZZpr1wkQStla66UzCPUuvr8o&e=
>



-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ensembl.org/pipermail/dev_ensembl.org/attachments/20161205/5fce9047/attachment.html>


More information about the Dev mailing list