def _get_ref_alt(self, var, boundary):
<EOL>if var.posedit.edit.type == "<STR_LIT>" or var.posedit.edit.type == "<STR_LIT>":<EOL><INDENT>ref = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>if var.posedit.edit.ref_s is None or var.posedit.edit.ref == "<STR_LIT>":<EOL><INDENT>ref = self._fetch_bounded_seq(var, var.posedit.pos.start.base - <NUM_LIT:1>,<EOL>var.posedit.pos.end.base, <NUM_LIT:0>, boundary)<EOL><DEDENT>else:<EOL><INDENT>ref = var.posedit.edit.ref<EOL><DEDENT><DEDENT>if var.posedit.edit.type == "<STR_LIT>" or var.posedit.edit.type == "<STR_LIT>" or var.posedit.edit.type == "<STR_LIT>":<EOL><INDENT>alt = var.posedit.edit.alt<EOL><DEDENT>elif var.posedit.edit.type == "<STR_LIT>":<EOL><INDENT>alt = "<STR_LIT>"<EOL><DEDENT>elif var.posedit.edit.type == "<STR_LIT>":<EOL><INDENT>alt = var.posedit.edit.ref or self._fetch_bounded_seq(<EOL>var, var.posedit.pos.start.base - <NUM_LIT:1>, var.posedit.pos.end.base, <NUM_LIT:0>, boundary)<EOL><DEDENT>elif var.posedit.edit.type == "<STR_LIT>":<EOL><INDENT>alt = reverse_complement(ref)<EOL><DEDENT>elif var.posedit.edit.type == "<STR_LIT>":<EOL><INDENT>alt = ref<EOL><DEDENT>return ref, alt<EOL>
Get reference allele and alternative allele of the variant