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

parse lga output from binary stream

parent 3feccbd5
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,9 @@ def GDT(pdb1, pdb2, chain1='', chain2='', reference_length=None, lga_bin=None):
expanded_cmd=command % params
lga_proc=subprocess.Popen(expanded_cmd, shell=True,
stdout=subprocess.PIPE)
stdout, _ = lga_proc.communicate()
length=reference_length or max(pdb1.residue_count, pdb2.residue_count)
result=_ParseLGAOutput(lga_proc.stdout.readlines(), reference_length)
result=_ParseLGAOutput(stdout.decode().splitlines(), reference_length)
os.system('rm -r %s' % temp_d)
return result
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