comparison microsats_alignment_level.py @ 2:ad471b193191

Fix blank results when running on NFS.
author Dave Bouvier <dave@bx.psu.edu>
date Fri, 16 Jan 2015 14:51:32 -0500
parents d4368a5a3fc7
children df7548445f4e
comparison
equal deleted inserted replaced
1:7852385470f3 2:ad471b193191
40 for block in input.split('\n\n'): 40 for block in input.split('\n\n'):
41 block_num += 1 41 block_num += 1
42 tmpin = tempfile.NamedTemporaryFile() 42 tmpin = tempfile.NamedTemporaryFile()
43 tmpout = tempfile.NamedTemporaryFile() 43 tmpout = tempfile.NamedTemporaryFile()
44 tmpin.write(block.strip()) 44 tmpin.write(block.strip())
45 tmpin.flush()
45 cmdline = sputnik_cmd + " " + tmpin.name + " > /dev/null 2>&1 >> " + tmpout.name 46 cmdline = sputnik_cmd + " " + tmpin.name + " > /dev/null 2>&1 >> " + tmpout.name
46 try: 47 try:
47 os.system(cmdline) 48 os.system(cmdline)
48 except Exception: 49 except Exception:
49 continue 50 continue