Minor typos fixes
[htsworkflow.git] / htswanalysis / scripts / SummarizeProject2.pm
index 546dd45af2e5a1aece1f14d38ad0b49d1b3fd8e7..ead12c8c184b90705e883d531a0a458cfd6df323 100755 (executable)
@@ -105,12 +105,11 @@ for my $i (0..scalar(@{$xml->{CompareLibraries}})-1) {
   my $name2 = $xml->{CompareLibraries}->[$i]->{Library}->[1]->{Library};
   my $outfile = "../../Tasks/".$task.'/'.$name1."_".$name2.".compare";
   $libs{$name1} = 0; $libs{$name2} = 0;
-  my $correlation;
+  my $correlation; my $color;
   if( !(-e $outfile) ) { $correlation = "In Progress..."; $color = "#FFBBBB"; } 
   else {
-    if(-e $outfile) { $correlation = `cat $outfile | awk '{print \$8}'`; }
-    my $color; 
-    elsif($correlation > 0.9) { $color = "#BBFFBB"; }
+    $correlation = `cat $outfile | awk '{print \$8}'`; 
+    if($correlation > 0.9) { $color = "#BBFFBB"; }
     elsif($correlation > 0.6) { $color = "#BBBBFF"; }
     else { $color = "#FFBBBB"; }
   }