[ensembl-dev] downloading old Ensembl version using Perl API
ianl at ebi.ac.uk
Mon Feb 21 10:45:23 GMT 2011
You should install the 54 version of the database if you want to use
the perl API on release 54 databases. You can have multiple APIs
installed you will just need to set the PERL5LIB path for which ever
one you want to use.
Sometimes you can use different versions of the API and databases but
if there are any schema changes between these versions then the API
may fail, which sounds like the case you have here.
On Mon, Feb 21, 2011 at 8:23 AM, Thomas Juettemann <juettemann at gmail.com> wrote:
> Dear all,
> another newbie question.
> I'd like to use the Perl API to fetch data from Release 54 (NCBI36/hg18).
> I tried to connect with db_version 54 (I read the disclaimer in API docs):
> my $registry = 'Bio::EnsEMBL::Registry';
> -host => 'ensembldb.ensembl.org',
> -user => 'anonymous',
> -port => 5306,
> -db_version => 54
> but fetching a slice fails (2nd line):
> my $slice_adaptor = $registry->get_adaptor( 'Human', 'Core', 'Slice' );
> my $slice = $slice_adaptor->fetch_by_region( 'chromosome', $chr);
> Any help/pointers much appreciated.
> Best wishes,
> Dev mailing list
> Dev at ensembl.org
More information about the Dev