chrysalis.get_compartment_df

chrysalis.get_compartment_df(adata: AnnData, weights: bool = True)

Get spatially variable gene weights/expression values as a pandas DataFrame.

Parameters:
  • adata – The AnnData data matrix of shape n_obs × n_vars. Rows correspond to cells and columns to genes.:

  • weights – If False, return expression values instead of weights.

Returns:

Pandas DataFrame.