Iterate over marker information.

def iter_variants(self):
        """Iterate over marker information."""
        for variant in self._bgen.iter_variant_info():
            yield Variant(
                variant.name,
                CHROM_STR_ENCODE.get(variant.chrom, variant.chrom),
                variant.pos, [variant.a1, variant.a2],
            )