コード例 #1
0
ファイル: CacheManager.py プロジェクト: Tmacme/oncotator
 def retrieve_cached_annotations(self, m):
     """
     :param m: mutation
     :return: list of Annotations, or None, if cache miss.
     """
     cache_key = MutUtils.create_variant_key_by_mutation(m, self.get_db_dir_key())
     return self.get_cache().retrieve_from_cache(cache_key)
コード例 #2
0
ファイル: CacheManager.py プロジェクト: Tmacme/oncotator
    def store_annotations_in_cache(self, m):

        if self.is_read_only():
            return

        cache_key = MutUtils.create_variant_key_by_mutation(m, self.get_db_dir_key())
        annotations = self._determine_annotations_to_cache(m)
        self._store_basic_annotations_in_cache(cache_key, annotations)