def _incorporate_delins(self):
seq, cds_start, cds_stop, start, end = self._setup_incorporate()<EOL>ref = self._var_c.posedit.edit.ref<EOL>alt = self._var_c.posedit.edit.alt<EOL>ref_length = end - start if ref is not None else <NUM_LIT:0>    <EOL>alt_length = len(<EOL>self._var_c.posedit.edit.alt) if self._var_c.posedit.edit.alt is not None else <NUM_LIT:0><EOL>net_base_change = alt_length - ref_length<EOL>cds_stop += net_base_change<EOL>is_substitution = False<EOL>if ref is not None and alt is not None:    <EOL><INDENT>seq[start:end] = list(alt)<EOL>if len(ref) == <NUM_LIT:1> and len(alt) == <NUM_LIT:1>:<EOL><INDENT>is_substitution = True<EOL><DEDENT><DEDENT>elif ref is not None:    <EOL><INDENT>del seq[start:end]<EOL><DEDENT>else:    <EOL><INDENT>seq[start + <NUM_LIT:1>:start + <NUM_LIT:1>] = list(alt)    <EOL><DEDENT>if DBG:<EOL><INDENT>print("<STR_LIT>".format(net_base_change))<EOL><DEDENT>is_frameshift = net_base_change % <NUM_LIT:3> != <NUM_LIT:0><EOL>variant_start_aa = max(int(math.ceil((self._var_c.posedit.pos.start.base) / <NUM_LIT>)), <NUM_LIT:1>)<EOL>alt_data = AltTranscriptData(<EOL>seq,<EOL>cds_start,<EOL>cds_stop,<EOL>is_frameshift,<EOL>variant_start_aa,<EOL>self._transcript_data.protein_accession,<EOL>is_substitution=is_substitution,<EOL>is_ambiguous=self._ref_has_multiple_stops)<EOL>return alt_data<EOL>
Incorporate delins