update function2gene to allow uniprot
authorDon Armstrong <don@donarmstrong.com>
Mon, 25 Feb 2008 23:19:23 +0000 (23:19 +0000)
committerDon Armstrong <don@donarmstrong.com>
Mon, 25 Feb 2008 23:19:23 +0000 (23:19 +0000)
git-svn-id: file:///srv/svn/function2gene/trunk@34 a0738b58-4706-0410-8799-fb830574a030

bin/function2gene

index a892072..66b02bb 100755 (executable)
@@ -130,7 +130,7 @@ $ERRORS.="restart-at must be one of get, parse or combine\n" if
 
 $ERRORS.="unknown database(s)" if
      @{$options{databases}} and
-     grep {$_ !~ /^(?:ncbi|genecard|harvester|ensembl)$/i} @{$options{databases}};
+     grep {$_ !~ /^(?:ncbi|genecard|harvester|ensembl|uniprot)$/i} @{$options{databases}};
 
 if (not length $options{results}) {
      $ERRORS.="results directory not specified";
@@ -142,7 +142,7 @@ elsif (not -d $options{results} or not -w $options{results}) {
 pod2usage($ERRORS) if length $ERRORS;
 
 if (not @{$options{databases}}) {
-     $options{databases} = [qw(ncbi genecard harvester ensembl)]
+     $options{databases} = [qw(ncbi genecard harvester ensembl uniprot)]
 }
 
 $DEBUG = $options{debug};