Set group colors in clustergram dendrogram (programmatically)

2 次查看(过去 30 天)
I am using the clustergram function from Bioinformatics Toolbox.
I would like to create custom group colors as shown in the figure (programmatically):
I know that Clustergram GUI allows changing group colors. However, Is there any way to do this from the command line? I need to automate this inside a function.
I have tried the following:
I have changed the ColumnGroupMarker or Dendrogram properties. However, this does not serve my purpose because I need to label specific leaves of the dendrogram (not by tresholding).
I can achieve what I want using the dendrogram function from statistics and Machine Learning Toolbox. But this doesnt allow me to display the dendrogram with the heatmap as the Clustergram function does.
Thanks in advance,

采纳的回答

Scott Ronquist
Scott Ronquist 2020-10-14
Would clusterGroup fit your use-case (link to example)? This performs what *Right-click* -> "Set Group Color" does, programatically.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Expression Analysis 的更多信息

产品


版本

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by