Skip to content

Commit

Permalink
Replace print with show.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gene233 committed Mar 26, 2024
1 parent 751531f commit baa33a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions R/select_markers.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ markers_mixmdl <- function(top_markers, column = ".dot",

if (plot == TRUE) {
# # base R plot, easy
# print(plot(mixmdl, which = 2))
# show(plot(mixmdl, which = 2))
# abline(v = mixmdl$mu, col = seq_along(mixmdl$mu) + 1)

## ggplot
p <- plot_mm(mixmdl, dist = dist)
print(p)
show(p)
}
## get order of mu
ord <- order(mixmdl$mu, decreasing = TRUE)
Expand Down Expand Up @@ -128,7 +128,7 @@ markers_mclust <- function(top_markers,
# reset plot par
par(mfrow = c(1, 1))

# print(plot_mm_clust(cl$data, cl$classification))
# show(plot_mm_clust(cl$data, cl$classification))
}
# plot(cbind(s, s), col=alpha(cl$classification, 0.4), pch=20)

Expand Down Expand Up @@ -191,7 +191,7 @@ markers_hdbscan <- function(top_markers,

if (plot == TRUE) {
## plot hist and density with mu
print(plot_mm_clust(s, cl$cluster))
show(plot_mm_clust(s, cl$cluster))
## plot hc with stable clusters
plot(cl, show_flat = TRUE)
}
Expand Down
4 changes: 2 additions & 2 deletions R/tf_idf_iae_wrappers.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ idf_sd <- function(expr, features = NULL, thres = 0) {
#' inverse document frequency using hdbscan cluster as label
#'
#' @details
#' Details as [smartid::idf_prob()].
#' Details as [idf_prob()].
#'
#' @inheritParams idf_rf
#' @param minPts integer, minimum size of clusters, default 2.
Expand Down Expand Up @@ -400,7 +400,7 @@ iae_sd <- function(expr, features = NULL, thres = 0) {
#' inverse average expression using hdbscan cluster as label
#'
#' @details
#' Details as [smartid::iae_prob()].
#' Details as [iae_prob()].
#'
#' @inheritParams idf_rf
#' @param minPts integer, minimum size of clusters, default 2.
Expand Down

0 comments on commit baa33a1

Please sign in to comment.