I have a text file that is tab delimited and looks like:
1_0 NP_045689 100.00 279 0 0 18 296 18 296 3e-156 539
1_0 NP_045688 54.83 259 108 6 45 296 17 273 2e-61 224
I need to parse out specific columns such as column 2.
I've tried with the code below:
z = open('output.blast', 'r')
for line in z.readlines():
for col in line:
print col[1]
z.close()
But i get a index out of range error.