clusterExperiment icon indicating copy to clipboard operation
clusterExperiment copied to clipboard

makeDendrogram order samples within a cluster

Open epurdom opened this issue 9 years ago • 3 comments

makeDendrogram should somehow order the samples within a cluster, if it doesn't already. I.e. cluster within each cluster and make that the order, even if dendrogram doesn't change.

epurdom avatar Apr 20 '16 22:04 epurdom

This could probably be done by getting the order within each cluster via hclust within cluster, then concatenating the orders to get a single ordering and using the reorder.dendrogram function on the current dendrogram.

epurdom avatar Apr 27 '16 22:04 epurdom

The order idea doesn't work. At least not well, because only will rotate existing left/right. Have to create method to paste the trees together. Much more annoying... Have started some code with ape package, but very frustrating.

epurdom avatar May 23 '16 23:05 epurdom

Also, now the internal code relies heavily on 0-length edges within a cluster to distinguish cluster nodes and outbranch nodes ... so must be careful not to disrupt that.

epurdom avatar May 26 '17 20:05 epurdom