code: def iter_variants(self):
          
          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],
              )
docs: Iterate over marker information.