HoloNet.plotting.lr_cluster_ce_hotspot_plot#
- HoloNet.plotting.lr_cluster_ce_hotspot_plot(lr_df, cell_cci_centrality, adata, cluster_col='cluster', fname=None, **kwargs)#
Plot the general CE hotspot of each ligand-receptor group. Clustering results need to be provided in ‘cluster_col’ of lr_df.
- Parameters
- lr_df
DataFrame A preprocessed LR-gene dataframe, must contain the columns ‘LR_pair’ and clustering results.
- cell_cci_centrality
Tensor A tensor (LR_num * cell_num) for the centrality of each cell according to each LR pair.
- adata
AnnData Annotated data matrix.
- cluster_col
str(default:'cluster') The columns in lr_df dataframe storing the clustering results of each LR pair.
- fname
str|Path|NoneUnion[str,Path,None] (default:None) The output file name. If None, not save the figure.
- kwargs
Other paramters in ‘feature_plot’ function.
- lr_df