@staticmethod<EOL><INDENT>def _convert_edit_check_strand(strand, edit_in):<DEDENT>
if isinstance(edit_in, hgvs.edit.NARefAlt):<EOL><INDENT>if strand == <NUM_LIT:1>:<EOL><INDENT>edit_out = copy.deepcopy(edit_in)<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>int(edit_in.ref)<EOL>ref = edit_in.ref<EOL><DEDENT>except (ValueError, TypeError):<EOL><INDENT>ref = reverse_complement(edit_in.ref)<EOL><DEDENT>edit_out = hgvs.edit.NARefAlt(<EOL>ref=ref,<EOL>alt=reverse_complement(edit_in.alt),<EOL>)<EOL><DEDENT><DEDENT>elif isinstance(edit_in, hgvs.edit.Dup):<EOL><INDENT>if strand == <NUM_LIT:1>:<EOL><INDENT>edit_out = copy.deepcopy(edit_in)<EOL><DEDENT>else:<EOL><INDENT>edit_out = hgvs.edit.Dup(ref=reverse_complement(edit_in.ref))<EOL><DEDENT><DEDENT>elif isinstance(edit_in, hgvs.edit.Inv):<EOL><INDENT>if strand == <NUM_LIT:1>:<EOL><INDENT>edit_out = copy.deepcopy(edit_in)<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>int(edit_in.ref)<EOL>ref = edit_in.ref<EOL><DEDENT>except (ValueError, TypeError):<EOL><INDENT>ref = reverse_complement(edit_in.ref)<EOL><DEDENT>edit_out = hgvs.edit.Inv(ref=ref)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise NotImplementedError("<STR_LIT>")<EOL><DEDENT>return edit_out<EOL>
Convert an edit from one type to another, based on the stand and type