Skip to content

Commit

Permalink
Merge pull request #1051 from jiajic/suite_dev
Browse files Browse the repository at this point in the history
fix: `doHclust()`
  • Loading branch information
jiajic authored Oct 15, 2024
2 parents 0b5d1c1 + 6d1a7e9 commit 1c1e565
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/clustering.R
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,7 @@ doKmeans <- function(gobject,
]
matrix_to_use <- dim_coord[][, dimensions_to_use]
} else {
vmsg(.is_debug = TRUE, "clustering from expression values")
## using original matrix ##
expr_values <- getExpression(
gobject = gobject,
Expand Down Expand Up @@ -1485,6 +1486,9 @@ doHclust <- function(gobject,
)
)
values <- match.arg(expression_values, c("normalized", "scaled", "custom"))
dim_reduction_to_use <- match.arg(
dim_reduction_to_use, c("cells", "pca", "umap", "tsne")
)


## using dimension reduction ##
Expand All @@ -1506,6 +1510,7 @@ doHclust <- function(gobject,
]
matrix_to_use <- dim_coord[, dimensions_to_use]
} else {
vmsg(.is_debug = TRUE, "clustering from expression values")
## using original matrix ##
expr_values <- getExpression(
gobject = gobject,
Expand Down

0 comments on commit 1c1e565

Please sign in to comment.