Description : The method that uses the Hive/EnsEMBL API to actually create all the analyses, jobs, dataflow and control rules and resource descriptions.
my$analysis=Bio::EnsEMBL::Hive->collection('Analysis')->find_one_by('logic_name',$logic_name);# the analysis with this logic_name may have already been stored in the db
if($analysis){
if($analysis_topup){
warn"Skipping creation of already existing analysis '$logic_name'.\n";
next;
}
warn"Skipping creation of already existing analysis '$logic_name'.\n";
next;
}else{
if($job_topup){
die"Could not find local analysis '$logic_name'";
}
warn"Creating analysis '$logic_name'.\n";
$rc_name||='default';
...
...
@@ -614,102 +605,106 @@ sub run {
}
}
unless($job_topup){
# Now, run separately through the already created analyses and link them together:
#
foreachmy$aha(@{$self->pipeline_analyses}){
my($logic_name,$wait_for,$flow_into)
=@{$aha}{qw(-logic_name -wait_for -flow_into)};# slicing a hash reference
# Now, run separately through the already created analyses and link them together:
#
foreachmy$aha(@{$self->pipeline_analyses}){
my($logic_name,$wait_for,$flow_into)
=@{$aha}{qw(-logic_name -wait_for -flow_into)};# slicing a hash reference