Skip to content
Snippets Groups Projects
Commit 3ec9be10 authored by Dan Bolser's avatar Dan Bolser
Browse files

bringing the example into line with the new 'get_adaptor' method, rather than...

bringing the example into line with the new 'get_adaptor' method, rather than the old 'db adaptor' way
parent 8df70e95
No related branches found
No related tags found
No related merge requests found
......@@ -24,11 +24,20 @@ Bio::EnsEMBL::DBSQL::SimpleFeatureAdaptor
=head1 SYNOPSIS
my $simple_feature_adaptor =
$database_adaptor->get_SimpleFeatureAdaptor();
my $reg = 'Bio::EnsEMBL::Registry';
@simple_features =
@{ $simple_feature_adaptor->fetch_all_by_Slice($slice) };
$reg->
load_registry_from_db( ...
my $sfa =
$reg->get_adaptor('homo sapiens', 'core', 'SimpleFeature');
print ref($sfa), "\n";
my $sf_aref =
$sfa->fetch_all;
print scalar @$sf_aref, "\n";
=head1 DESCRIPTION
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment