iblatlas.genomics.merfish

Functions

int2rgb

One liner to convert rgba values stored as integer in dataframes

load

Reads in the Allen gene expression experiments tables

load(folder_cache=None)[source]

Reads in the Allen gene expression experiments tables

Parameters:

folder_cache

Returns:

df_cells: a dataframe of cells (8_879_868, 11), where each record corresponds to a single cell df_classes: a dataframe of classes (35, 3), where each record corresponds to a single class df_subclasses: a dataframe of subclasses (339, 4), where each record corresponds to a single subclass df_supertypes: a dataframe of supertypes (1202, 4), where each record corresponds to a single supertype df_clusters: a dataframe of clusters (5323, 5), where each record corresponds to a single cluster df_genes: a dataframe of genes (1672, 4), where each record corresponds to a single gene df_neurotransmitters: a dataframe of neurotransmitters (9, 2), where each record corresponds to a single

neurotransmitter

int2rgb(array, dtype=None)[source]

One liner to convert rgba values stored as integer in dataframes

Parameters:
  • array – rgba column of a dataframe or slice of the column

  • dtype – optional, if int will return the uint8 view from 0-255 else will return floats from 0-1

Returns: