[ensembl-dev] downloading old Ensembl version using Perl API
Thomas Juettemann
juettemann at gmail.com
Mon Feb 21 08:23:27 GMT 2011
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):
<code>
my $registry = 'Bio::EnsEMBL::Registry';
$registry->load_registry_from_db(
-host => 'ensembldb.ensembl.org',
-user => 'anonymous',
-port => 5306,
-db_version => 54
);
return($registry)
</code>
but fetching a slice fails (2nd line):
<code>
my $slice_adaptor = $registry->get_adaptor( 'Human', 'Core', 'Slice' );
my $slice = $slice_adaptor->fetch_by_region( 'chromosome', $chr);
</code>
Any help/pointers much appreciated.
Best wishes,
Thomas
More information about the Dev
mailing list