foldseek icon indicating copy to clipboard operation
foldseek copied to clipboard

Error running example

Open git198 opened this issue 3 years ago • 4 comments
trafficstars

Expected Behavior

Run example without error

foldseek createdb example/ targetDB
foldseek createdb example/ queryDB
foldseek search queryDB targetDB aln tmpFolder -a
foldseek aln2tmscore queryDB targetDB aln aln_tmscore
foldseek createtsv queryDB targetDB aln_tmscore aln_tmscore.tsv

Current Behavior

Input database is not compatible with aln2tmscore.

aln2tmscore queryDB targetDB aln aln_tmscore 

MMseqs Version: 188e5299e4d4e47b94614c4e8c67032f78f3ed21
Threads         96
Compressed      0
Verbosity       3

Input database "queryDB" has the wrong type (Aminoacid)
Allowed input:
- Unknown

Steps to Reproduce (for bugs)

Here is bash script that downloads: foldseek binary and git repo ,to get the example data, and runs the provided example generating the error.

#Create working directory
WORK_DIR=./foldseek_linux_avx

if [ -d $WORK_DIR ]; then
     rm -rf $WORK_DIR
fi
mkdir $WORK_DIR
cd $WORK_DIR

#Download binary
wget https://mmseqs.com/foldseek/foldseek-linux-avx2.tar.gz --no-check-certificate
tar xvzf foldseek-linux-avx2.tar.gz
foldseek_bin=./foldseek/bin/foldseek

#Get test data
git clone https://github.com/steineggerlab/foldseek.git ./foldseek_git_src
EXAMPLE_DATA=./foldseek_git_src/example/


#Run foldseek; Generate error
$foldseek_bin createdb $EXAMPLE_DATA targetDB
$foldseek_bin createdb $EXAMPLE_DATA queryDB
$foldseek_bin search queryDB targetDB aln tmpFolder -a
$foldseek_bin aln2tmscore queryDB targetDB aln aln_tmscore
$foldseek_bin createtsv queryDB targetDB aln_tmscore aln_tmscore.tsv

Context

I've also run the example with all 3 available compiled version (avx, sse and conda) and got the same error "Input database "queryDB" has the wrong type". It will be nice to have a function that can check if an input database is compatible with a function or another.

Thank you

git198 avatar Mar 02 '22 19:03 git198

Thank you for reporting this. It should be fixed now. It was a wrong dbtype check.

martin-steinegger avatar Mar 05 '22 10:03 martin-steinegger

@martin-steinegger the conda recipe is still affected from this

phiweger avatar Mar 07 '22 15:03 phiweger

yes, we did not update conda yet. But our statically compiled version should contain the fix.

martin-steinegger avatar Mar 07 '22 15:03 martin-steinegger

yes, that one works :)

phiweger avatar Mar 07 '22 16:03 phiweger