Commit 30dbffd3 authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

In dataflow rules within the same database, the destination analysis must exist

parent c40028e3
......@@ -519,13 +519,16 @@ sub run {
$heirs = { map { ($_ => undef) } @$heirs } if(ref($heirs) eq 'ARRAY'); # now force it into a hash if it wasn't
while(my ($heir_url, $input_id_template_list) = each %$heirs) {
unless ($heir_url =~ m{^\w*://}) {
my $heir_analysis = $analysis_adaptor->fetch_by_logic_name($heir_url);
die "No analysis named '$heir_url' (dataflow from analysis '".($analysis->logic_name)."')\n" unless defined $heir_analysis;
}
$input_id_template_list = [ $input_id_template_list ] unless(ref($input_id_template_list) eq 'ARRAY'); # allow for more than one template per analysis
foreach my $input_id_template (@$input_id_template_list) {
my $heir_analysis = $analysis_adaptor->fetch_by_logic_name_or_url($heir_url);
my $df_rule = Bio::EnsEMBL::Hive::DataflowRule->new(
-from_analysis => $analysis,
-to_analysis_url => $heir_url,
......
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