Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace cluster with addCluster #112

Merged
merged 15 commits into from
Jun 28, 2024
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ Changes in version 1.9.x

Changes in version 1.11.x
+ replace addTaxonomyTree with addHierarchyTree after renaming in mia package
+ replace cluster with addCluster after renaming in mia package
6 changes: 3 additions & 3 deletions R/plotDMN.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#' tse <- peerj13075
#'
#' # Cluster the samples
#' tse <- cluster(tse, DmmParam(k = 1:4), name = "DMM", full = TRUE)
#' tse <- addCluster(tse, DmmParam(k = 1:4), name = "DMM", full = TRUE)
#'
#' # Plot the fit
#' plotDMNFit(tse, name = "DMM", type = "laplace")
Expand All @@ -54,8 +54,8 @@ setMethod("plotDMNFit", signature = c(x = "SummarizedExperiment"),
if (!is.null(metadata(x)[[name]]$dmm)) {
dmn <- metadata(x)[[name]]$dmm
} else {
.Deprecated(old="getDMN", new="cluster",
"Now runDMN and calculateDMN are deprecated. Use cluster with DMMParam parameter and full parameter set as true instead.")
.Deprecated(old="getDMN", new="addCluster",
"Now runDMN and calculateDMN are deprecated. Use addCluster with DMMParam parameter and full parameter set as true instead.")
TuomasBorman marked this conversation as resolved.
Show resolved Hide resolved
dmn <- metadata(x)[[name]]
}
fit_FUN <- mia:::.get_dmn_fit_FUN(type)
Expand Down
2 changes: 1 addition & 1 deletion man/plotDMN.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading