PyVCF icon indicating copy to clipboard operation
PyVCF copied to clipboard

a problem when use vcfReader in loop

Open milkcookie opened this issue 7 years ago • 1 comments

dear all: when I filter file by vcf file,I have a problem,when I use vcf module in loop,after I use i.CHROM,next loop,it doesn't work,I must enter myvcf = vcf.Reader(open(file,'r')) again, it would world work.I install pyvcf with pip install on Linux recent days.Do you know why it happened? Thanks FAFU milkcookie

milkcookie avatar Mar 16 '17 02:03 milkcookie

I have the same problem where if I iterate through records from vcf.Reader, then I lose all the data.

andyjslee avatar Aug 14 '17 10:08 andyjslee