def n_to_g(self, n_interval):
frs, fre = n_interval.start.base - <NUM_LIT:1>, n_interval.end.base - <NUM_LIT:1><EOL>start_offset, end_offset = n_interval.start.offset, n_interval.end.offset<EOL>if self.strand == -<NUM_LIT:1>:<EOL><INDENT>fre, frs = self.tgt_len - frs - <NUM_LIT:1>, self.tgt_len - fre - <NUM_LIT:1><EOL>start_offset, end_offset = -end_offset, -start_offset<EOL><DEDENT>grs, _, grs_cigar = self._map(<EOL>from_pos=self.tgt_pos, to_pos=self.ref_pos, pos=frs, base="<STR_LIT:start>")<EOL>gre, _, gre_cigar = self._map(<EOL>from_pos=self.tgt_pos, to_pos=self.ref_pos, pos=fre, base="<STR_LIT:end>")<EOL>grs, gre = grs + self.gc_offset + <NUM_LIT:1>, gre + self.gc_offset + <NUM_LIT:1><EOL>gs, ge = grs + start_offset, gre + end_offset<EOL>return hgvs.location.Interval(<EOL>start=hgvs.location.SimplePosition(gs, uncertain=n_interval.start.uncertain),<EOL>end=hgvs.location.SimplePosition(ge, uncertain=n_interval.end.uncertain),<EOL>uncertain=grs_cigar in '<STR_LIT>' or gre_cigar in '<STR_LIT>')<EOL>
convert a transcript (n.) interval to a genomic (g.) interval