Interface CoexpressionCache

All Known Implementing Classes:
CoexpressionCacheImpl

public interface CoexpressionCache
Cache for coexpression results. Useful caching requires that the query be done at a suitably low stringency, defined by CACHE_QUERY_STRINGENCY, against all data sets.
Author:
Paul
See Also:
  • CoexpressionQueryQueue
  • Field Details

    • CACHE_QUERY_STRINGENCY

      static final int CACHE_QUERY_STRINGENCY
      The stringency used to query when populating the cache. This can't be too low or the cache gets gigantic; if someone is querying for data from a single dataset, they would use experiment-first mode.
  • Method Details

    • cacheCoexpression

      void cacheCoexpression(Long geneId, Collection<CoexpressionValueObject> r)
    • cacheCoexpression

      void cacheCoexpression(Map<Long,List<CoexpressionValueObject>> r)
    • clearCache

      void clearCache()
      Remove all elements from the cache.
    • get

      Parameters:
      g - gene id
      Returns:
      results sorted in descending order of support, or null if the gene was not in the cache
    • isEnabled

      boolean isEnabled()
    • remove

      int remove(Collection<Long> genes)
      Bulk remove from cache.
      Parameters:
      genes - genes
      Returns:
      number of cache entries affected
    • remove

      boolean remove(Long id)
    • shutdown

      void shutdown()