PyVCF
PyVCF copied to clipboard
file progression
Hi,
I m trying to monitor progression when reading file... Something like this :
total = os.path.getsize(filename)
for record in vcf.Reader(open(filename)):
progression = record.bytes_read / total * 100
print(progression)
How can I achieve this ? Is there a way to access the current raw line from reader._reader?