From 3cfc9e2d6b16dc67021110ff38fdfd606913453c Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Wed, 27 Dec 2023 18:01:52 +0100 Subject: Pass "-blastdb_version 4" to makeblastdb to work properly on 32 bit systems Forwarded: https://github.com/katholt/Kaptive/issues/20 Gbp-Pq: Name blastdb_4 --- kaptive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kaptive.py b/kaptive.py index 3cf607c..1d40694 100755 --- a/kaptive.py +++ b/kaptive.py @@ -1880,7 +1880,7 @@ def makeblastdb(fasta): gunzip.stdout.close() _, err = makeblastdb_process.communicate() else: # plain text - makeblastdb_command = ['makeblastdb', '-dbtype', 'nucl', '-in', fasta] + makeblastdb_command = ['makeblastdb', '-blastdb_version', '4', '-dbtype', 'nucl', '-in', fasta] makeblastdb_process = subprocess.Popen(makeblastdb_command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) _, err = makeblastdb_process.communicate() -- cgit v1.2.3