From c77e76d8abadd2705a6fd12cc8469b81ae8aa0ef Mon Sep 17 00:00:00 2001 From: Glenn Proctor <gp1@sanger.ac.uk> Date: Sat, 24 Mar 2007 11:58:08 +0000 Subject: [PATCH] Wait for human-mouse to finish before running mouse-human. May prevent table contention. --- misc-scripts/xref_projection/submit_projections.pl | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/misc-scripts/xref_projection/submit_projections.pl b/misc-scripts/xref_projection/submit_projections.pl index 17aa56ce4d..725dc513d0 100644 --- a/misc-scripts/xref_projection/submit_projections.pl +++ b/misc-scripts/xref_projection/submit_projections.pl @@ -70,7 +70,7 @@ $e = "$dir/go_drosophila_anopheles.err"; $n = "g_dros_ano"; system "bsub -o $o -e $e -J $n perl project_display_xrefs.pl $opts -from drosophila -to anopheles -go_terms -delete_go_terms"; -# ---------------------------------------------------------------------- +# ---------------------------------------- # GO terms - mouse to human, rat, dog, chicken, cow # Have to use job dependencies since these jobs need to run after the corresponding human-X projections have @@ -79,12 +79,8 @@ foreach my $to ("human", "rat", "dog", "chicken", "cow") { $o = "$dir/go_mouse_$to.out"; $e = "$dir/go_mouse_$to.err"; $n = substr("g_mou_$to", 0, 10); - my $d; - if ($to eq "human") { # don't need to wait for mouse-human - $d = ''; - } else { - my $depend_job_name = substr("g_hum_$to", 0, 10); - $d = "-w 'done($depend_job_name)'"; + my $depend_job_name = substr("g_hum_$to", 0, 10); + my $d = "-w 'done($depend_job_name)'"; } system "bsub -o $o -e $e -J $n $d perl project_display_xrefs.pl $opts -from mouse -to $to -go_terms"; } -- GitLab