Skip to content

addCluster: fix documented default of clust.col (#924) - #925

Merged
TuomasBorman merged 1 commit into
microbiome:develfrom
Sadia12345:fix-924-addCluster-default
Dec 2, 2026
Merged

TuomasBorman merged 1 commit into
microbiome:develfrom
Sadia12345:fix-924-addCluster-default

Conversation

@Sadia12345

@Sadia12345 Sadia12345 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Closes #924.

The @param clust.col documentation said the default was "clusters", but
addCluster() uses "cluster":

tse <- addCluster(GlobalPatterns, bluster::KmeansParam(centers = 3), by = "cols")
"cluster"  %in% names(colData(tse))   # TRUE
"clusters" %in% names(colData(tse))   # FALSE

Changes:

  • R/cluster.R: (Default: "clusters") -> (Default: "cluster")
  • man/addCluster.Rd: the same correction in the generated help page

Both addCluster() methods already default to "cluster", so only the
documentation was wrong. The change is limited to those two lines.

Note on tests: no test covered the default, because every existing test passes
clust.col explicitly, which is why the mismatch went unnoticed. I kept this
PR to the documentation only, but can add a regression test for the default if
you would like one.

@TuomasBorman
TuomasBorman merged commit 5627b97 into microbiome:devel Dec 2, 2026
2 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.

addCluster(): documented default of clust.col is wrong

2 participants