Commit b5bc4739 authored by Jessica Severin's avatar Jessica Severin
Browse files

added stats method to Bio::EnsEMBL::Analysis object which uses the

analysis objects adaptor to fetch the corresponding stats object.
Important to use correct db connection since the analysis objects may be
network distributed across multiple databases
parent 3b4fd34e
......@@ -134,7 +134,17 @@ sub Bio::EnsEMBL::DBSQL::AnalysisAdaptor::fetch_by_url_query
}
}
return undef;
}
sub Bio::EnsEMBL::Analysis::stats
{
my $self = shift;
my $stats = undef;
eval {
$stats = $self->adaptor->db->get_AnalysisStatsAdaptor->fetch_by_analysis_id($self->dbID);
};
return $stats;
}
1;
......
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