Skip to content
Snippets Groups Projects
Commit 753d4ebb authored by BIOPZ-Bertoni Martino's avatar BIOPZ-Bertoni Martino
Browse files

fixed iAlign binding

parent 3b43337a
No related branches found
No related tags found
No related merge requests found
......@@ -11,5 +11,6 @@ naccess.py
blast.py
cadscore.py
kclust.py
ialign.py
)
pymod(NAME bindings PY ${OST_BINDINGS})
......@@ -120,7 +120,9 @@ def _ParseiAlign(lines):
return iAlignResult(rmsd, tf, alignment, is_score, aln_residues, aln_contacts)
def _RuniAlign(ialign, tmp_dir, options={}):
opts = {'a' : 1} # concise output
opts = {'a' : 1, # concise output
'w' : tmp_dir
}
opts.update(options)
cmd_opts = []
for k, v in opts.iteritems():
......@@ -143,6 +145,8 @@ def _RuniAlign(ialign, tmp_dir, options={}):
lines=ps.stdout.readlines()
if (len(lines))<22:
_CleanupFiles(tmp_dir)
#for l in lines:
# print l
raise RuntimeError("iAlign superposition failed")
return _ParseiAlign(lines)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment