PyVCF icon indicating copy to clipboard operation
PyVCF copied to clipboard

file progression

Open dridk opened this issue 6 years ago • 0 comments

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?

dridk avatar May 02 '19 22:05 dridk