Skip to content
Snippets Groups Projects
Commit f51b0393 authored by Magali Ruffier's avatar Magali Ruffier
Browse files

attrib_type code and statistic name are not always the same

use code directly in get_attrib method
parent 124b9197
No related branches found
No related tags found
No related merge requests found
......@@ -678,9 +678,7 @@ sub get_attrib {
my ($self, $statistic) = @_;
my $db = $self->db();
my $attribute_adaptor = $db->get_adaptor('attribute');
my @results = @{ $self->_get_statistic($statistic) };
my $code = $results[4];
my @attribs = @{ $attribute_adaptor->fetch_by_code($code) };
my @attribs = @{ $attribute_adaptor->fetch_by_code($statistic) };
my $attrib = Bio::EnsEMBL::Attribute->new(
-code => $attribs[1],
-name => $attribs[2],
......
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