From b96c95802887fe47d7e69b2398cd2c49c41432fc Mon Sep 17 00:00:00 2001 From: Sasha Sherstnev Date: Fri, 4 Oct 2013 15:20:01 +0100 Subject: [PATCH] Fix bug with DB checking in jpred.pl --- binaries/src/jpred/jpred.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/binaries/src/jpred/jpred.pl b/binaries/src/jpred/jpred.pl index a16a96a..436ae63 100755 --- a/binaries/src/jpred/jpred.pl +++ b/binaries/src/jpred/jpred.pl @@ -278,10 +278,12 @@ my $database = { }, }; -my $dp = $database->{$db_entry}{database}; +my $dpf = $database->{$db_entry}{database}.'.pal'; +my $dpu = $database->{$db_entry}{unfiltered}.'.pal'; pod2usage("ERROR! Input file 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; +pod2usage("ERROR! UNIREF filtered database is not available at $dpf Use -dbpath and -dbname for configuring the database") unless -f $dpf; +pod2usage("ERROR! UNIREF unfiltered database is not available at $dpu Use -dbpath and -dbname for configuring the database") unless -f $dpu; ##################################################################################################### # lots of preparation steps -- 1.7.10.2