kipoi / kipoi-veff

Variant effect prediction plugin for Kipoi
https://kipoi.org/veff-docs
MIT License
6 stars 5 forks source link

indel support: dataloader-utility:VcfReader #5

Open krrome opened 6 years ago

krrome commented 6 years ago

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.