]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/list_genomes
removed debug message
[biopieces.git] / bp_bin / list_genomes
index b0e77a648cc045fa2e7be8b883f13c683e95df09..accaffe9ca1e4953d8e3e57caa17a54225aa172f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2007-2009 Martin A. Hansen.
 
@@ -26,7 +26,9 @@
 # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
 
+use warnings;
 use strict;
+use Term::ANSIColor;
 use Maasha::Common;
 use Maasha::Biopieces;
 
@@ -34,7 +36,7 @@ use Maasha::Biopieces;
 # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
 
-my ( $run_time_beg, $run_time_end, $options, @genomes, $genome, @formats, $format, %hash, %found, @row );
+my ( $options, @genomes, $genome, @formats, $format, %hash, %found, @row );
 
 $options = Maasha::Biopieces::parse_options();
 
@@ -70,9 +72,9 @@ foreach $genome ( sort keys %hash )
     foreach $format ( sort keys %found )
     {
         if ( exists $hash{ $genome }{ $format } ) {
-            push @row, "yes";
+            push @row, colored( "yes", "green" );
         } else {
-            push @row, "no";
+            push @row, colored( "no", "red" );
         }
     }
 
@@ -85,16 +87,13 @@ foreach $genome ( sort keys %hash )
 
 BEGIN
 {
-    $run_time_beg = Maasha::Biopieces::run_time();
-
-    Maasha::Biopieces::log_biopiece();
+    Maasha::Biopieces::status_set();
 }
 
+
 END
 {
-    $run_time_end = Maasha::Biopieces::run_time();
-
-    Maasha::Biopieces::run_time_print( $run_time_beg, $run_time_end, $options );
+    Maasha::Biopieces::status_log();
 }
 
 
@@ -102,5 +101,3 @@ END
 
 
 __END__
-
-