dilimap.utils.platemap

dilimap.utils.platemap(data, value_key, batch=None)

Generates a plate map for visualization.

Parameters:
  • data (AnnData) – Input data containing observations with plate well information.

  • value_key (str) – Key in obs specifying the values to aggregate (e.g., compound_name).

  • batch (str, optional) – Column in obs specifying batch labels for stratifying the data.

Returns:

A DataFrame where each row corresponds to a well row, each column to a well column, and values are aggregated based on the specified value_key.