Skip to content
Snippets Groups Projects
Commit c663c880 authored by Bienchen's avatar Bienchen
Browse files

SCHWED-4382: Better logging for HHblits

parent eb2a9384
No related branches found
No related tags found
No related merge requests found
......@@ -624,8 +624,17 @@ class HHblits:
return hhm_file
ost.LogVerbose('converting %s to %s' % (a3m_file, hhm_file))
os.putenv('HHLIB', self.hhlib_dir)
if subprocess.call('%s -i %s -o %s' % (hhmake, a3m_file, hhm_file),
shell=True):
job = subprocess.Popen('%s -i %s -o %s' % (hhmake, a3m_file, hhm_file),
shell=True, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
sout, serr = job.communicate()
lines = serr.decode().splitlines()
for line in lines:
ost.LogWarning(line)
lines = sout.decode().splitlines()
for line in lines:
ost.LogVerbose(line)
if job.returncode !=0:
raise IOError('could not convert a3m to hhm file')
return hhm_file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment