I'm using PyVCF python package in order to parse vcf files. This is the command to read a vcf file:
vcf_reader = vcf.Reader(open('file.vcf', 'r'))
Before going downstream, I would like to check that vcf_reader has data, i.e, the file.vcf has records inside. How can I check it?
Sorry, I'm really really new to python and I'm just beginning and I've tried to look for it on google but without success.
Thank you.