Skip to content

Commit

Permalink
Fixing test_NCBI_BLAST_tools.py to run on older BLAST+
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc committed Aug 28, 2010
1 parent 2dcb6ed commit 176c277
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Tests/test_NCBI_BLAST_tools.py
Expand Up @@ -192,6 +192,13 @@ def check(self, exe_name, wrapper) :
#These appear to have been removed in BLAST 2.2.24+
#(which seems a bit odd - TODO - check with NCBI?)
extra = extra.difference(["-num_threads"])
if exe_name in ["tblastn", "tblastx"]:
#These appear to have been removed in BLAST 2.2.24+
extra = extra.difference(["-db_soft_mask"])
#This was added in BLAST 2.2.24+ to most/all the tools, so
#will be seen as an extra argument on older versions:
if "-seqidlist" in extra:
extra.remove("-seqidlist")

if extra or missing:
raise MissingExternalDependencyError("BLAST+ and Biopython out "
Expand Down

0 comments on commit 176c277

Please sign in to comment.