HoloNet.plotting.lr_clustering_dendrogram#
- HoloNet.plotting.lr_clustering_dendrogram(model, lr_df, plot_lr_list=None, dflt_col='#000000', colors=None, fname=None)#
Plot dendrogram plot for the hierarchical clustering model.
- Parameters
- model
AgglomerativeClustering Trained hierarchical clustering model.
- lr_df
DataFrame A preprocessed LR-gene dataframe.
- plot_lr_list
List[str] |NoneOptional[List[str]] (default:None) Lr pair on interest, which will be plot in dendrogram plot
- dflt_col
str(default:'#000000') Color of root.
- colors
List[str] |NoneOptional[List[str]] (default:None) Colors of each cluster.
- fname
str|Path|NoneUnion[str,Path,None] (default:None) The output file name. If None, not save the figure.
- model