popari.tl.compute_empirical_correlations

popari.tl.compute_empirical_correlations#

popari.tl.compute_empirical_correlations(trained_model, feature='X', level=0, output='empirical_correlation')[source]#

Compute the empirical spatial correlation for a feature set across all datasets.

Parameters:
  • trained_model (Popari) – the trained Popari model.

  • feature (str) – key in .obsm of feature set for which spatial correlation should be computed.

  • output (str) – key in .uns where output correlation matrices should be stored.