Skip to content
Snippets Groups Projects
Commit d642eb3c authored by Jessica Severin's avatar Jessica Severin
Browse files

Analysis::stats method will now return a new AnalysisStats ready for storing

if one isn't in the database
parent 2be90ea9
No related branches found
No related tags found
No related merge requests found
......@@ -145,6 +145,10 @@ sub Bio::EnsEMBL::Analysis::stats
eval {
$stats = $self->adaptor->db->get_AnalysisStatsAdaptor->fetch_by_analysis_id($self->dbID);
};
if(!defined($stats)) {
$stats = new Bio::EnsEMBL::Hive::AnalysisStats;
$stats->analysis_id($self->dbID);
}
return $stats;
}
......
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