Skip to content

giottoTree records the features it was built from - #1323

Merged
jiajic merged 1 commit into
gsourcefrom
feat/cluster-tree-feats
Oct 1, 2026
Merged

jiajic merged 1 commit into
gsourcefrom
feat/cluster-tree-feats

Conversation

@jiajic

@jiajic jiajic commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

calculateClusterTree() now records the features it correlated as attr(tree, "params")$feats:

  • NULL when every feature was used
  • the features actually present otherwise, after dropping any requested ones that weren't in the data

Before, it recorded only the count (n_feats), so a tree couldn't say which genes built its branches. This is provenance, alongside the other settings the tree already records.

Test: test_03_giotto_tree.R checks that feats is NULL with no restriction, and otherwise records only the features present (a requested feature absent from the data is dropped, and n_feats agrees). All cluster-tree test files pass: 29 tests, 139 expectations.

(A plot(tree, what = "heatmap") method was briefly described here after this PR had merged. It isn't part of this PR; it's in giotto-suite/GiottoVisuals#156.)

🤖 Generated with Claude Code

@jiajic
jiajic merged commit 79aad50 into gsource Oct 1, 2026
@jiajic jiajic changed the title giottoTree records the features it was built from giottoTree: record the features it was built from; plot(tree, what = "heatmap") Oct 1, 2026
@jiajic jiajic changed the title giottoTree: record the features it was built from; plot(tree, what = "heatmap") giottoTree records the features it was built from Oct 1, 2026
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