comparison microsats_alignment_level.py @ 3:df7548445f4e draft

planemo upload commit 00a7926c285bc4a339bd7deebf40b28f39c7d947
author devteam
date Tue, 21 Jul 2015 15:35:46 -0400
parents ad471b193191
children
comparison
equal deleted inserted replaced
2:ad471b193191 3:df7548445f4e
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()
46 cmdline = sputnik_cmd + " " + tmpin.name + " > /dev/null 2>&1 >> " + tmpout.name 45 cmdline = sputnik_cmd + " " + tmpin.name + " > /dev/null 2>&1 >> " + tmpout.name
47 try: 46 try:
48 os.system(cmdline) 47 os.system(cmdline)
49 except Exception: 48 except Exception:
50 continue 49 continue