fast-bwa/seed2.py

15 lines
368 B
Python
Executable File

#!/bin/env python3
import sys
import os
back_num = 0
end_num = 0
seed2_file = sys.argv[1]
with open(seed2_file, 'r') as f:
for line in f:
if line.startswith("back"):
back_num += int(line.split(' ')[1])
elif line.startswith("end"):
end_num += int(line.split(' ')[1])
print(back_num, end_num, end_num / back_num)