]> git.donarmstrong.com Git - function2gene.git/blobdiff - bin/parse_harvester_results
update search program with options for do_it_all; implement calls to subsideary scripts
[function2gene.git] / bin / parse_harvester_results
index 29d07194a8a4e7c830fe7af55bdaa4d9e873a15d..a35c9b902f5a9ff840d6bb3450862ae0989cd9e1 100755 (executable)
@@ -77,6 +77,7 @@ my %options = (debug    => 0,
               man      => 0,
               dir      => '.',
               keyword  => undef,
+              keywords => 0,
              );
 
 GetOptions(\%options,'keyword|k=s','dir|D=s','debug|d+','help|h|?','man|m');
@@ -99,6 +100,15 @@ use constant {NAME        => 0,
              FILENAME    => 8,
             };
 
+if ($options{keywords}) {
+     if (@ARGV != 1) {
+         pod2usage("If the --keywords option is used, exactly one argument (the keyword) must be passed");
+     }
+     $option{dir} = "$ARGV[0]_results_harvester";
+}
+
+
+
 if (not -d $options{dir}) {
      die "$options{dir} does not exist or is not a directory";
 }