load_cached_gene#
- brainrender.atlas_specific.allen_brain_atlas.gene_expression.ge_utils.load_cached_gene(cache, metric, grid_size)[source]#
Load a gene’s data from cache.
- Parameters:
cache (
str|Path) – Path to the gene’s cache folder.metric (
str) – Metric name used to filter files (e.g."energy").grid_size (
tuple[int,int,int]) – Shape to use when reshaping the raw data array.
- Returns:
Array of gene expression values, or None if no file is found.
- Return type:
numpy.ndarray or None
- Raises:
NotImplementedError – If more than one matching file is found.