[Bioperl-l] Connecting to EnsEMBL databases help!
Olena Morozova
olenka.m at gmail.com
Wed Oct 5 15:35:33 EDT 2005
I am using the following script to connect to the Ensembl core. I keep
getting the message "unknown database homo_sapiens_core". Anyone knows
a solution to this?
I would really appreciate any help!
Thanks
Olena
#!/bin/perl -w
use lib 'C:/perl/lib/ensembl/modules';
use Bio::EnsEMBL::DBSQL::DBAdaptor;
use Bio::EnsEMBL::DBSQL::SliceAdaptor;
my $host = 'ensembldb.ensembl.org';
my $user = 'anonymous';
my $dbname = 'homo_sapiens_core';
my $db = new Bio::EnsEMBL::DBSQL::DBAdaptor(
-host => $host,
-user => $user,
-dbname => $dbname);
my $slice_adaptor = $db->get_SliceAdaptor();
my $slice = $slice_adaptor->fetch_by_region('chromosome',
'X');
More information about the Bioperl-l
mailing list