#!/usr/bin/python
import re
print 'protname\tlen\tdomname\tbegin\tend'
for line in open('clotting.tab'):
if not re.search('^\#', line): # avoid all lines beginning
# with the '#' character
col = re.split(' +', line)
domname = col[0]
protname = col[3]
protname = re.sub('.*\|', '', protname)
length = col[5]
evalue = float(col[12])
begin = col[17]
end = col[18]
if evalue < 1e-5:
print protname, '\t', length, '\t', domname,
print '\t', begin, '\t', end