def _convert_to_sequence_variants(self, variant, acc):
start = variant['<STR_LIT:start>']<EOL>insertion = '<STR_LIT>'.join(variant['<STR_LIT>'])<EOL>deletion = '<STR_LIT>'.join(variant['<STR_LIT>'])<EOL>is_dup = False    <EOL>fsext_len = None    <EOL>is_sub = False<EOL>is_ext = False<EOL>if start == <NUM_LIT:1>:    <EOL><INDENT>aa_start = aa_end = AAPosition(base=start, aa=deletion)<EOL>ref = '<STR_LIT>'<EOL>alt = '<STR_LIT>'<EOL>self._is_init_met = True<EOL>self._is_ambiguous = True    <EOL><DEDENT>if insertion and insertion.find("<STR_LIT:*>") == <NUM_LIT:0>:    <EOL><INDENT>aa_start = aa_end = AAPosition(base=start, aa=deletion[<NUM_LIT:0>])<EOL>ref = '<STR_LIT>'<EOL>alt = '<STR_LIT:*>'<EOL>is_sub = True<EOL><DEDENT>elif start == len(self._ref_seq):    <EOL><INDENT>if self._alt_seq[-<NUM_LIT:1>] == '<STR_LIT:*>':<EOL><INDENT>fsext_len = len(insertion) - len(deletion)    <EOL><DEDENT>else:<EOL><INDENT>fsext_len = '<STR_LIT:?>'<EOL><DEDENT>subst_at_stop_codon = insertion[<NUM_LIT:0>]<EOL>aa_start = aa_end = AAPosition(base=start, aa='<STR_LIT:*>')<EOL>ref = '<STR_LIT>'<EOL>alt = subst_at_stop_codon<EOL>is_ext = True<EOL><DEDENT>elif self._is_frameshift:    <EOL><INDENT>aa_start = aa_end = AAPosition(base=start, aa=deletion[<NUM_LIT:0>])<EOL>ref = '<STR_LIT>'<EOL>try:<EOL><INDENT>fsext_len = str(<EOL>insertion.index("<STR_LIT:*>") + <NUM_LIT:1>)    <EOL><DEDENT>except ValueError:<EOL><INDENT>fsext_len = "<STR_LIT:?>"<EOL><DEDENT>alt = insertion[<NUM_LIT:0>]<EOL><DEDENT>else:    <EOL><INDENT>if insertion == deletion:    <EOL><INDENT>aa_start = aa_end = AAPosition(base=start, aa=deletion)<EOL>ref = alt = '<STR_LIT>'<EOL><DEDENT>elif len(insertion) == len(deletion) == <NUM_LIT:1>:    <EOL><INDENT>aa_start = aa_end = AAPosition(base=start, aa=deletion)<EOL>ref = '<STR_LIT>'<EOL>alt = insertion<EOL>is_sub = True<EOL><DEDENT>elif len(deletion) > <NUM_LIT:0>:    <EOL><INDENT>ref = deletion<EOL>end = start + len(deletion) - <NUM_LIT:1><EOL>if len(insertion) > <NUM_LIT:0>:    <EOL><INDENT>aa_start = AAPosition(base=start, aa=deletion[<NUM_LIT:0>])<EOL>if end > start:<EOL><INDENT>aa_end = AAPosition(base=end, aa=deletion[-<NUM_LIT:1>])<EOL><DEDENT>else:<EOL><INDENT>aa_end = aa_start<EOL><DEDENT>alt = insertion<EOL><DEDENT>else:    <EOL><INDENT>if len(deletion) + start == len(<EOL>self._ref_seq):    <EOL><INDENT>aa_start = AAPosition(base=start, aa=deletion[<NUM_LIT:0>])<EOL>aa_end = AAPosition(base=start, aa=deletion[<NUM_LIT:0>])<EOL>ref = '<STR_LIT>'<EOL>alt = '<STR_LIT:*>'<EOL>is_sub = True<EOL><DEDENT>else:    <EOL><INDENT>aa_start = AAPosition(base=start, aa=deletion[<NUM_LIT:0>])<EOL>if end > start:<EOL><INDENT>aa_end = AAPosition(base=end, aa=deletion[-<NUM_LIT:1>])<EOL><DEDENT>else:<EOL><INDENT>aa_end = aa_start<EOL><DEDENT>alt = None<EOL><DEDENT><DEDENT><DEDENT>elif len(deletion) == <NUM_LIT:0>:    <EOL><INDENT>is_dup, dup_start = self._check_if_ins_is_dup(start, insertion)<EOL>if is_dup:    <EOL><INDENT>dup_end = dup_start + len(insertion) - <NUM_LIT:1><EOL>aa_start = AAPosition(base=dup_start, aa=insertion[<NUM_LIT:0>])<EOL>aa_end = AAPosition(base=dup_end, aa=insertion[-<NUM_LIT:1>])<EOL>ref = alt = None<EOL><DEDENT>else:    <EOL><INDENT>start -= <NUM_LIT:1><EOL>end = start + <NUM_LIT:1><EOL>aa_start = AAPosition(base=start, aa=self._ref_seq[start - <NUM_LIT:1>])<EOL>aa_end = AAPosition(base=end, aa=self._ref_seq[end - <NUM_LIT:1>])<EOL>ref = None<EOL>alt = insertion<EOL><DEDENT><DEDENT>else:    <EOL><INDENT>raise ValueError("<STR_LIT>".format(variant))<EOL><DEDENT><DEDENT>var_p = self._create_variant(<EOL>aa_start,<EOL>aa_end,<EOL>ref,<EOL>alt,<EOL>fsext_len=fsext_len,<EOL>is_dup=is_dup,<EOL>acc=acc,<EOL>is_ambiguous=self._is_ambiguous,<EOL>is_sub=is_sub,<EOL>is_ext=is_ext,<EOL>is_init_met=self._is_init_met<EOL>)<EOL>return var_p<EOL>
Convert AA variant to an hgvs representation

        :param variant: contains start, del, and ins
        :type variant: dict
        :param acc: protein accession
        :type acc: str
        :return hgvs string
        :rtype str