Skip to content
Snippets Groups Projects
Commit da4c8dbf authored by Studer Gabriel's avatar Studer Gabriel
Browse files

prefer makeblastdb (BLAST+) over formatdb (legacy BLAST)

parent 9b7d8595
No related branches found
No related tags found
No related merge requests found
......@@ -148,12 +148,12 @@ def CreateDB(infasta, dbout, mkdb_cmd=None):
"""
if mkdb_cmd==None:
try:
exe=settings.Locate('formatdb')
args=[exe, '-i', infasta, '-n', dbout]
exe=settings.Locate('makeblastdb')
args=[exe, '-in', infasta, '-out', dbout, '-dbtype', 'prot']
except:
try:
exe=settings.Locate('makeblastdb')
args=[exe, '-in', infasta, '-out', dbout, '-dbtype', 'prot']
exe=settings.Locate('formatdb')
args=[exe, '-i', infasta, '-n', dbout]
except:
raise RuntimeError('could not find makeblastdb/formatdb executable')
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment