Error using clustergram function

3 views (last 30 days)
Mari
Mari on 21 Apr 2017
Answered: Melissa Lemke on 10 Nov 2017
Hi
I get the following error when using the clustergram function: Error using clustergram>computeDendrogram (line 1274) Encountered error while computing hierarchical clusters: Too many input arguments.
However, I make use of the default setting and therefore only send my data through to the function.
I think it may be the software version (R2016b) I'm using as I do not get this error when running my code on "older" software?
Please help
Thank you Mari
  1 Comment
Melissa Lemke
Melissa Lemke on 10 Nov 2017
I am getting the same error, even when using the clustergram example provided by MATLAB:
edit clustergramdemo
I am using MATLAB R2017b (same issues with 2017a as well), and have not had issues with clustergram before. I have checked which for another function called clustergram and as far as I can tell, it is calling the correct function.
which -all clustergram
C:\Program Files\MATLAB\R2017a\toolbox\bioinfo\microarray\@clustergram\clustergram.m % clustergram constructor
Full error message:
Error using clustergram>computeDendrogram (line 1274)
Encountered error while computing hierarchical clusters:
Too many input arguments.
Error in clustergram/computeClusters (line 904)
[Z1, H1, ~, perm1] = computeDendrogram(data,...
Error in clustergram (line 408)
computeClusters(obj);

Sign in to comment.

Accepted Answer

Melissa Lemke
Melissa Lemke on 10 Nov 2017
Solved: I reset the path to the default (home tab>set path>default>save>restart matlab). You will need to make note of any manual changes you have made to the saved path to make them again (i.e. third party toolboxes will have to be reinstalled).
I could not identify the specific folder that was causing the issue for me. If you have made manual changes to the saved path, you may want to make these one by one, restarting matlab and testing the clustergram function with each.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!