def _create_variant(self,<EOL>start,<EOL>end,<EOL>ref,<EOL>alt,<EOL>fsext_len=None,<EOL>is_dup=False,<EOL>acc=None,<EOL>is_ambiguous=False,<EOL>is_sub=False,<EOL>is_ext=False,<EOL>is_no_protein=False,<EOL>is_init_met=False):
if is_init_met:<EOL><INDENT>posedit = AARefAlt(ref=ref, alt=alt, init_met=True)<EOL><DEDENT>elif is_ambiguous:<EOL><INDENT>posedit = None<EOL><DEDENT>else:<EOL><INDENT>interval = Interval(start=start, end=end)<EOL>if is_no_protein:<EOL><INDENT>edit = '<STR_LIT:0>'<EOL><DEDENT>elif is_sub:<EOL><INDENT>edit = AASub(ref=ref, alt=alt)<EOL><DEDENT>elif is_ext:<EOL><INDENT>edit = AAExt(ref=ref, alt=alt, aaterm='<STR_LIT:*>', length=fsext_len)<EOL><DEDENT>elif self._is_frameshift:<EOL><INDENT>edit = AAFs(ref=ref, alt=alt, length=fsext_len)<EOL><DEDENT>elif is_dup:<EOL><INDENT>edit = Dup()<EOL><DEDENT>elif ref == alt == '<STR_LIT>':<EOL><INDENT>edit = AARefAlt(ref='<STR_LIT>', alt='<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>edit = AARefAlt(ref=ref, alt=alt)<EOL><DEDENT>posedit = PosEdit(<EOL>pos=interval,<EOL>edit=edit,<EOL>uncertain=hgvs.global_config.mapping.inferred_p_is_uncertain)<EOL><DEDENT>var_p = hgvs.sequencevariant.SequenceVariant(acc, '<STR_LIT:p>', posedit)<EOL>return var_p<EOL>
Creates a SequenceVariant object