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

First search for blastall instead for blastp to make it run on the BC2

environment. The problem is, that wu-blast gets called when calling blastp.
parent cb60b927
No related branches found
No related tags found
No related merge requests found
...@@ -144,12 +144,13 @@ def CreateDB(infasta, dbout, mkdb_cmd=None): ...@@ -144,12 +144,13 @@ def CreateDB(infasta, dbout, mkdb_cmd=None):
""" """
if mkdb_cmd==None: if mkdb_cmd==None:
try: try:
exe=settings.Locate('makeblastdb') exe=settings.Locate('formatdb')
args=[exe, '-in', infasta, ' -max_file_sz 10GB -out', dbout,'-dbtype','prot'] args=[exe, '-i', infasta, '-v',str(10000),'-n',dbout]
except: except:
try: try:
exe=settings.Locate('formatdb') exe=settings.Locate('makeblastdb')
args=[exe, '-i', infasta, '-v',str(10000),'-n',dbout] args=[exe, '-in', infasta, ' -max_file_sz 10GB -out', dbout,'-dbtype','prot']
except: except:
raise RuntimeError('could not find makeblastdb/formatdb executable') raise RuntimeError('could not find makeblastdb/formatdb executable')
else: else:
...@@ -172,10 +173,10 @@ def BlastVersion(blast_location=None): ...@@ -172,10 +173,10 @@ def BlastVersion(blast_location=None):
""" """
try: try:
blast_exe=settings.Locate('blastp',explicit_file_name=blast_location) blast_exe=settings.Locate('blastall',explicit_file_name=blast_location)
except: except:
try: try:
blast_exe=settings.Locate('blastall', explicit_file_name=blast_location) blast_exe=settings.Locate('blastp', explicit_file_name=blast_location)
except: except:
raise RuntimeError('could not find blast executable') raise RuntimeError('could not find blast executable')
...@@ -233,12 +234,12 @@ def Blast(query, database, gap_open=11, gap_ext=1, matrix='BLOSUM62', ...@@ -233,12 +234,12 @@ def Blast(query, database, gap_open=11, gap_ext=1, matrix='BLOSUM62',
if blast_location==None: if blast_location==None:
try: try:
blast_exe=settings.Locate('blastp') blast_exe=settings.Locate('blastall')
except: except:
try: try:
blast_exe=settings.Locate('blastall') blast_exe=settings.Locate('blastp')
except: except:
raise BlastError('could not find blast executable') raise RuntimeError('could not find blast executable')
else: else:
blast_exe=settings.Locate(os.path.basename(blast_location),explicit_file_name=blast_location) blast_exe=settings.Locate(os.path.basename(blast_location),explicit_file_name=blast_location)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment