Commit cbfdda06 authored by Magali Ruffier's avatar Magali Ruffier
Browse files

added get_total method which gives an indication of how many features are expected

parent 35be2fd7
......@@ -22,6 +22,16 @@ sub get_feature_count {
return $count;
}
sub get_total {
my ($self) = @_;
my $variation_adaptor = Bio::EnsEMBL::Registry->get_DBAdaptor($self->param('species'), 'variation');
my $helper = $variation_adaptor->dbc()->sql_helper();
my $sql = q{
SELECT count(*) FROM variation_feature };
my $count = $helper->execute_single_result(-SQL => $sql);
return $count;
}
sub get_attrib_codes {
my ($self) = @_;
......
Markdown is supported
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