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
c40028e3
Commit
c40028e3
authored
Feb 15, 2013
by
Matthieu Muffato
Browse files
In control rules within the same database, the condition analysis must exist
parent
ab023be5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
modules/Bio/EnsEMBL/Hive/PipeConfig/HiveGeneric_conf.pm
modules/Bio/EnsEMBL/Hive/PipeConfig/HiveGeneric_conf.pm
+10
-11
No files found.
modules/Bio/EnsEMBL/Hive/PipeConfig/HiveGeneric_conf.pm
View file @
c40028e3
...
...
@@ -469,18 +469,17 @@ sub run {
# create control rules:
foreach
my
$condition_url
(
@$wait_for
)
{
if
(
my
$condition_analysis
=
$analysis_adaptor
->
fetch_by_logic_name_or_url
(
$condition_url
))
{
my
$c_rule
=
Bio::EnsEMBL::Hive::
AnalysisCtrlRule
->
new
(
-
condition_analysis_url
=>
$condition_url
,
-
ctrled_analysis_id
=>
$analysis
->
dbID
,
);
$ctrl_rule_adaptor
->
store
(
$c_rule
,
1
);
warn
$c_rule
->
toString
.
"
\n
";
}
else
{
die
"
Could not fetch analysis '
$condition_url
' to create a control rule
";
unless
(
$condition_url
=~
m{^\w*://}
)
{
my
$condition_analysis
=
$analysis_adaptor
->
fetch_by_logic_name
(
$condition_url
);
die
"
Could not fetch analysis '
$condition_url
' to create a control rule (in '
"
.
(
$analysis
->
logic_name
)
.
"
')
\n
"
unless
defined
$condition_analysis
;
}
my
$c_rule
=
Bio::EnsEMBL::Hive::
AnalysisCtrlRule
->
new
(
-
condition_analysis_url
=>
$condition_url
,
-
ctrled_analysis_id
=>
$analysis
->
dbID
,
);
$ctrl_rule_adaptor
->
store
(
$c_rule
,
1
);
warn
$c_rule
->
toString
.
"
\n
";
}
$flow_into
||=
{};
...
...
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