Skip to content

feat: heatmap ordering with tree directly#24

Merged
benjaminfurman merged 6 commits into
devfrom
hmtree
Dec 4, 2025
Merged

feat: heatmap ordering with tree directly#24
benjaminfurman merged 6 commits into
devfrom
hmtree

Conversation

@benjaminfurman
Copy link
Copy Markdown
Collaborator

Previous code plotted a tree heat map, a states heatmap, and then combined them. This relied on a bunch of steps for ensuring correct ordering. It also used ggtree for creating part of the tree-heatmap side, but that dependency has been unstable and behaviour changes across versions.

This new code passes a dendrogram directly to ComplexHeatmap for combining the two elements.

...I think it's all working.

Also added is a "tree" construction method I have been working with, with some success.

Heatmap plotting code now mostly just uses ComplexHeatmap directly,
without invoking ggtree to plot the tree portion of the heatmap.

This reduces a bunch of code for figuring out tree plotting order
and aligment, and lets ComplexHeatmap do that directly. The ggtree
install has also been fragile and different versions seems to really
alter success of plotting.
Removing dependency on ggtree and separate heatmap images for tree and
states, and instead uses complexheatmap for all of it.
@benjaminfurman benjaminfurman merged commit c7ddbc7 into dev Dec 4, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant