nmf_models.plotting.correlation_loadings

correlation_loadings(nmf_model, modality='both', clustered=False)[source]

view matrix correlation of intNMF loadings

Parameters:
  • nmf_model (intNMF) – intNMF model with loadings to compare correlations for. (.fit() has been called)

  • modality (str, 'both' | 'rna' | 'atac) – modality to plot loading for. Default both

  • clustered (bool) – heatmap or clustermap

Returns:

Axes for figure. If clustered = False - matplotlib objects used otherwise seaborn objects used. If modality = ‘both’ list of axes is returned if matplotlib and Gridspec if seaborn.

Return type:

matplotlib axes or list of matplotlib axis or seraborn clustergrid or seaborn Gridspec