def __getitem__(self, k):
        try:
            return self.data[k]
        except __HOLE__:
            # Not cached yet, extract the exon from transcript data.
            transcripts = self.gRes.ens_transcripts_of_exons_map2[
                self.gRes.ens_exon_stable_id[k]].keys()
            self.data.update(transcripts[0].get_exon_slices())
            # Cache whole transcript interval to speed sequence access
            self.gRes.genome_seq.cacheHint({transcripts[0].id:
                                           (transcripts[0].txStart,
                                            transcripts[0].txEnd)},
                                           transcripts[0])
            return self.data[k]
dataset/ETHPy150Open cjlee112/pygr/pygr/apps/ucsc_ensembl_annot.py/EnsemblExonOnDemandSliceDB.__getitem__