[ensembl-dev] incorporation of dbSNP 132 into ensembl
Pablo Marin-Garcia
pg4 at sanger.ac.uk
Thu Dec 9 14:47:04 GMT 2010
Hello Andrea,
Ensembl updates more frequently than people updates the API, so I recomend
you to add the last line of this code in your scripts to be sure where you are
connecting.
my $reg = 'Bio::EnsEMBL::Registry';
# load the registry from the db so you will be in sync with your API
$reg->load_registry_from_db(-host => 'ensembldb.ensembl.org', -user=>'anonymous') ;
# get some adaptors
my $sa = $reg->get_adaptor('human','core', 'Slice' );
my $vfa = $reg->get_adaptor('human','variation', 'VariationFeature');
my $va = $reg->get_adaptor('human','variation', 'Variation');
# check the ensembl API and database versions in use
print {*STDERR} "# Ens version". $reg->software_version .". Connected to ".$sa->dbc->dbname . "\n";
-----
Pablo Marin-Garcia
More information about the Dev
mailing list