Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl-hive
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
7
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl-hive
Commits
15940b3a
Commit
15940b3a
authored
19 years ago
by
Abel Ureta-Vidal
Browse files
Options
Downloads
Patches
Plain Diff
Clean up a bit the runnable and output subroutines
parent
00cf9984
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Bio/EnsEMBL/Hive/Process.pm
+16
-43
16 additions, 43 deletions
modules/Bio/EnsEMBL/Hive/Process.pm
with
16 additions
and
43 deletions
modules/Bio/EnsEMBL/Hive/Process.pm
+
16
−
43
View file @
15940b3a
...
...
@@ -427,10 +427,6 @@ sub parameters {
return
$self
->
analysis
->
parameters
;
}
#FIXME kfb 11.01.2006 added runnable method from Pipeline/RunnableDB. Required by
#PairAligner.
=head2 runnable
Title : runnable
...
...
@@ -445,30 +441,20 @@ sub parameters {
sub
runnable
{
my
(
$self
,
$arg
)
=
@_
;
if
(
!
defined
(
$self
->
{'
_
runnable
s
'}))
{
$self
->
{'
_
runnable
s
'}
=
[]
;
if
(
!
defined
(
$self
->
{'
runnable
'}))
{
$self
->
{'
runnable
'}
=
[]
;
}
if
(
defined
(
$arg
))
{
#FIXME kfb 11.01.2006 use Analysis/Runnable object rather than Pipeline/RunnableI
# if ($arg->isa("Bio::EnsEMBL::Pipeline::RunnableI")) {
# push(@{$self->{'_runnables'}},$arg);
# } else {
# &throw("[$arg] is not a Bio::EnsEMBL::Pipeline::RunnableI");
# }
if
(
$arg
->
isa
("
Bio::EnsEMBL::Analysis::Runnable
"))
{
push
(
@
{
$self
->
{'
_runnables
'}},
$arg
);
}
else
{
&throw
("
[
$arg
] is not a Bio::EnsEMBL::Analysis::Runnable
");
}
if
(
$arg
->
isa
("
Bio::EnsEMBL::Analysis::Runnable
"))
{
push
(
@
{
$self
->
{'
runnable
'}},
$arg
);
}
else
{
&throw
("
[
$arg
] is not a Bio::EnsEMBL::Analysis::Runnable
");
}
return
@
{
$self
->
{'
_
runnable
s
'}};
}
return
@
{
$self
->
{'
runnable
'}};
}
#FIXME kfb 11.01.2006 added output method from Pipeline/RunnableDB. Required by
#PairAligner.
=head2 output
Title : output
...
...
@@ -478,32 +464,19 @@ sub runnable {
Args : None
=cut
sub
output
{
my
(
$self
)
=
@_
;
$self
->
{'
_output
'}
=
[]
;
my
@r
=
$self
->
runnable
;
if
(
@r
&&
scalar
(
@r
)){
foreach
my
$r
(
$self
->
runnable
){
#FIXME debug
print
STDERR
"
Process output
"
.
scalar
(
@
{
$r
->
output
})
.
"
\n
";
sub
output
{
my
(
$self
)
=
@_
;
#FIXME kfb 12.01.2006
#push(@{
$self->{'
_
output'}
}, $r->output)
;
push
(
@
{
$self
->
{'
_output
'}},
@
{
$r
->
output
})
;
}
unless
(
defined
$self
->
{'
output
'})
{
$self
->
{'
output
'}
=
[]
;
foreach
my
$r
(
@
{
$self
->
runnable
})
{
push
(
@
{
$self
->
{'
output
'}},
@
{
$r
->
output
});
}
}
#FIXME debug
print
STDERR
"
_output
"
.
scalar
(
@
{
$self
->
{'
_output
'}})
.
"
\n
";
return
@
{
$self
->
{'
_output
'}};
return
@
{
$self
->
{'
output
'}};
}
1
;
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment