Commit 00c6c382 authored by Leo Gordon's avatar Leo Gordon
Browse files

Merged 'bugfix: die with a meaningful message when accumulator cannot be drawn'

parents e1d460a4 4113e634
......@@ -151,7 +151,7 @@ sub _table_node_name {
sub _midpoint_name {
my ($df_rule) = @_;
if(scalar($df_rule)=~/\((\w+)\)/) { # a unique id of a df_rule assuming dbIDs are not available
if($df_rule and scalar($df_rule)=~/\((\w+)\)/) { # a unique id of a df_rule assuming dbIDs are not available
return 'dfr_'.$1.'_mp';
} else {
die "Wrong argument to _midpoint_name";
......@@ -489,6 +489,7 @@ sub _add_dataflow_rules {
} elsif(UNIVERSAL::isa($target_object, 'Bio::EnsEMBL::Hive::Accumulator')) {
die "Could not find funnel analysis for the accumulator ".$target_object->struct_name.$target_object->signature_template."\n" unless($from_analysis->{'_funnel_dfr'});
$target_node_name = _midpoint_name( $from_analysis->{'_funnel_dfr'} );
} else {
......
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