nmf_models.plotting.view_loadings

view_loadings(nmf_model, modality, clustered=False)[source]

View loadings matrix.

Parameters:
  • nmf_model (intNMF) – joint NMF object. With loadings to plot

  • modality (str, "both" | "rna" | "atac") – choose modality to plot

  • clustered (boolean) – cluster topics and features using seaborn clustermap

Returns:

axes for figure. if modality == ‘both’ list of axes is returned

Return type:

matplotlib axes