Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
30dbffd3
Commit
30dbffd3
authored
Feb 15, 2013
by
Matthieu Muffato
Browse files
In dataflow rules within the same database, the destination analysis must exist
parent
c40028e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
modules/Bio/EnsEMBL/Hive/PipeConfig/HiveGeneric_conf.pm
modules/Bio/EnsEMBL/Hive/PipeConfig/HiveGeneric_conf.pm
+5
-2
No files found.
modules/Bio/EnsEMBL/Hive/PipeConfig/HiveGeneric_conf.pm
View file @
30dbffd3
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment