def row_to_dict(self, row, allele, alternate_alleles):
def _variant_sbid(**kwargs):<EOL><INDENT>"""<STR_LIT>"""<EOL>return '<STR_LIT>'.format(**kwargs).upper()<EOL><DEDENT>if allele == '<STR_LIT:.>':<EOL><INDENT>allele = row.REF or allele<EOL><DEDENT>genomic_coordinates = {<EOL>'<STR_LIT>': self.genome_build,<EOL>'<STR_LIT>': row.CHROM,<EOL>'<STR_LIT:start>': row.POS,<EOL>'<STR_LIT>': row.POS + len(row.REF) - <NUM_LIT:1><EOL>}<EOL>variant_sbid = _variant_sbid(allele=allele,<EOL>**genomic_coordinates)<EOL>return {<EOL>'<STR_LIT>': genomic_coordinates,<EOL>'<STR_LIT>': variant_sbid,<EOL>'<STR_LIT>': allele,<EOL>'<STR_LIT>': row.ID,<EOL>'<STR_LIT>': row.REF,<EOL>'<STR_LIT>': alternate_alleles,<EOL>'<STR_LIT:info>': self._parse_info(row.INFO),<EOL>'<STR_LIT>': row.QUAL,<EOL>'<STR_LIT>': row.FILTER<EOL>}<EOL>
Return a parsed dictionary for JSON.