The VCF reader class is designed to return variant objects compatible with VariantSeqExtractor.extract. It can either be used as an iterator starting from the beginning of the VCF file or an iterator for variants in a genomic regions defined by overlap. This functionality is all built in cyvcf2 so VcfReader is essentially a wrapper that converts vcf records to instances of our own variant class.
The VCF reader class is designed to return variant objects compatible with
VariantSeqExtractor.extract
. It can either be used as an iterator starting from the beginning of the VCF file or an iterator for variants in a genomic regions defined by overlap. This functionality is all built incyvcf2
so VcfReader is essentially a wrapper that converts vcf records to instances of our own variant class.