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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The stringency used to query when populating the cache. -
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheCoexpression
(Long geneId, Collection<CoexpressionValueObject> r) void
void
Remove all elements from the cache.boolean
boolean
int
remove
(Collection<Long> genes) Bulk remove from cache.void
shutdown()
-
Field Details
-
CACHE_QUERY_STRINGENCY
static final int CACHE_QUERY_STRINGENCYThe 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
-
cacheCoexpression
-
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
Bulk remove from cache.- Parameters:
genes
- genes- Returns:
- number of cache entries affected
-
remove
-
shutdown
void shutdown()
-