Permalink
Browse files

Cope with Debian naming of rpsblast+ binary

  • Loading branch information...
1 parent 90da547 commit 148b681a66061cc03d70f940a2efdede29adc64a @peterjc peterjc committed Aug 2, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 Tests/test_NCBI_BLAST_tools.py
@@ -18,6 +18,7 @@
# TODO - On windows, can we use the ncbi.ini file?
wanted = ["blastx", "blastp", "blastn", "tblastn", "tblastx",
+ "rpsblast+", #For Debian
"rpsblast", "rpstblastn", "psiblast", "blast_formatter"]
exe_names = {}
@@ -61,6 +62,12 @@
# print "Rejecting", exe_name
del exe_name, name
+#To avoid the name clash with legacy BLAST, Debian introduced rpsblast+ alias
+wanted.remove("rpsblast+")
+if "rpsblast+" in exe_names:
+ exe_names["rpsblast"] = exe_names["rpsblast+"]
+ del exe_names["rpsblast+"]
+
#We can cope with blast_formatter being missing, only added in BLAST 2.2.24+
if len(set(exe_names).difference(["blast_formatter"])) < len(wanted)-1 :
raise MissingExternalDependencyError("Install the NCBI BLAST+ command line "

0 comments on commit 148b681

Please sign in to comment.