def __liftover_coordinates_size_match(self, intersecting_region):
<EOL>consensus_match_length = self.consensus_end - self.consensus_start<EOL>assert(consensus_match_length - len(self) == <NUM_LIT:0>)<EOL>if self.consensus_match_strand is '<STR_LIT:+>':<EOL><INDENT>s = max(intersecting_region.start - self.start, <NUM_LIT:0>) +self.consensus_start<EOL>e = min(max(intersecting_region.end - self.start, <NUM_LIT:0>) +<EOL>self.consensus_start, self.consensus_len)<EOL>g = GenomicInterval(self.repeat_name(), s, e, intersecting_region.name,<EOL>intersecting_region.score, self.strand)<EOL>return g<EOL><DEDENT>elif self.consensus_match_strand is '<STR_LIT:->':<EOL><INDENT>e = (self.consensus_end -<EOL>max(intersecting_region.start - self.start, <NUM_LIT:0>))<EOL>s = (self.consensus_end -<EOL>min(max(intersecting_region.end - self.start, <NUM_LIT:0>), len(self)))<EOL>g = GenomicInterval(self.repeat_name(), s, e, intersecting_region.name,<EOL>intersecting_region.score, self.strand)<EOL>return g<EOL><DEDENT>else:<EOL><INDENT>raise RetrotransposonError("<STR_LIT>" +<EOL>"<STR_LIT>" + str(self))<EOL><DEDENT>
Lift a region that overlaps the genomic occurrence of the retrotransposon
to consensus sequence coordinates using just the coordinates (not the full)
alignment, when they have the same length. This is an internal helper
method. The above length constraint must be true, otherwise an assertion
is failed.

:param intersect_region: a region that intersects this occurrence.
:return: GenomicInterval representing the region after lifting to consensus
:note: no checks are made for whether the interval really intersects!!