#####################################################################################################
# Key to database information and information for accessing them
+if (defined $jabaws) {
+ $db_path = "/data/UNIREFdb";
+ $db_entry = "cluster";
+}
+
my $database = {
## default database used by Jpred
## cluster-specific path for Jpred
cluster => {
- database => $db_path . "uniref90.filt",
- unfiltered => $db_path . "uniref90",
+ database => $db_path . "/uniref90.filt",
+ unfiltered => $db_path . "/uniref90",
},
## these other DBs are experimental ones used during development.
},
};
-pod2usage(' ERROR! Input file with a sequence should be provided with -sequence/-in') unless $infile;
-pod2usage(' ERROR! Unknown database at ' . $db_path . '. Use -dbpath and -dbname for configuring the database' ) unless exists $database->{$db_entry};
-pod2usage(' ERROR! UNIREF database doesn\'t exist. Use -dbpath and -dbname for configuring the database') unless -f $database->{$db_entry}{database};
+my $dp = $database->{$db_entry}{database};
+pod2usage("ERROR! Input file with a sequence should be provided with -sequence/-in") unless $infile;
+pod2usage("ERROR! Unknown database at $db_path. Use -dbpath and -dbname for configuring the database" ) unless exists $database->{$db_entry};
+pod2usage("ERROR! UNIREF database is not available at $dp. Use -dbpath and -dbname for configuring the database") unless -f $dp;
if ( defined $prefix ) {
unless (defined $outfile) {