def _parse_genotype(self, vcf_fields):
format_col = vcf_fields[<NUM_LIT:8>].split('<STR_LIT::>')<EOL>genome_data = vcf_fields[<NUM_LIT:9>].split('<STR_LIT::>')<EOL>try:<EOL><INDENT>gt_idx = format_col.index('<STR_LIT>')<EOL><DEDENT>except ValueError:<EOL><INDENT>return []<EOL><DEDENT>return [int(x) for x in re.split(r'<STR_LIT>', genome_data[gt_idx]) if<EOL>x != '<STR_LIT:.>']<EOL>
Parse genotype from VCF line data