comparison blast2html.py @ 98:e780606b7c25

test new command line parameters, fix small bug
author Jan Kanis <jan.code@jankanis.nl>
date Mon, 30 Jun 2014 17:51:56 +0200
parents 02b795b784e1
children 8f02008a5f20
comparison
equal deleted inserted replaced
97:8b3c5d334a84 98:e780606b7c25
384 try: 384 try:
385 f = open(path.join(dir, f)) 385 f = open(path.join(dir, f))
386 for l in f.readlines(): 386 for l in f.readlines():
387 if l.strip().startswith('#'): 387 if l.strip().startswith('#'):
388 continue 388 continue
389 line = l.split('\t') 389 line = l.rstrip('\n').split('\t')
390 try: 390 try:
391 links[line[2]] = line[3] 391 links[line[2]] = line[3]
392 except IndexError: 392 except IndexError:
393 continue 393 continue
394 f.close() 394 f.close()