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

Testing

parent cea4ee78
No related branches found
No related tags found
No related merge requests found
...@@ -577,13 +577,17 @@ class HHblits: ...@@ -577,13 +577,17 @@ class HHblits:
job = subprocess.Popen(addss_cmd, shell=True, cwd=self.working_dir, job = subprocess.Popen(addss_cmd, shell=True, cwd=self.working_dir,
env=env, stdout=subprocess.PIPE, env=env, stdout=subprocess.PIPE,
stderr=subprocess.PIPE) stderr=subprocess.PIPE)
sout, _ = job.communicate() sout, serr = job.communicate()
lines = sout.splitlines() lines = sout.splitlines()
for line in lines: for line in lines:
if 'error' in line.lower(): if 'error' in line.lower():
ost.LogWarning('Predicting secondary structure for MSA '+ ost.LogWarning('Predicting secondary structure for MSA '+
'(%s) failed, on command: %s' % (a3m_file, line)) '(%s) failed, on command: %s' % (a3m_file, line))
return a3m_file return a3m_file
print "BIENCHEN", line
lines = serr.splitlines()
for line in lines:
print "BIENCHEN", line
return a3m_file return a3m_file
def A3MToProfile(self, a3m_file, hhm_file=None): def A3MToProfile(self, a3m_file, hhm_file=None):
......
...@@ -115,16 +115,6 @@ class TestHHblitsBindings(unittest.TestCase): ...@@ -115,16 +115,6 @@ class TestHHblitsBindings(unittest.TestCase):
'TSKYR') 'TSKYR')
self.hh = hhblits.HHblits(query_seq, self.hhroot) self.hh = hhblits.HHblits(query_seq, self.hhroot)
a3m = self.hh.BuildQueryMSA('testfiles/hhblitsdb/hhblitsdb') a3m = self.hh.BuildQueryMSA('testfiles/hhblitsdb/hhblitsdb')
print "A3M"
with open(a3m) as fh:
for line in fh:
line = line.strip()
print line
print "TESTFILE"
with open("testfiles/testali.a3m") as fh:
for line in fh:
line = line.strip()
print line
self.assertTrue(filecmp.cmp(a3m, "testfiles/testali.a3m")) self.assertTrue(filecmp.cmp(a3m, "testfiles/testali.a3m"))
def testA3mToProfileFileName(self): def testA3mToProfileFileName(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment