Skip to content

Commit a2849fc

Browse files
committed
Only print message if message=TRUE
1 parent eec9a54 commit a2849fc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

R/runDS.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,10 @@ runDS <- function(SE, tree, option = c("glm", "glmQL"),
129129
ind_cell <- apply(ncell, 1, FUN = function(x) {
130130
sum(x >= min_cells) >= 0.5 * length(x)
131131
})
132-
message(sum(!ind_cell), " nodes are ignored, as they don't contain ",
133-
"at least ", min_cells, " cells in at least half of the samples.")
132+
if (message) {
133+
message(sum(!ind_cell), " nodes are ignored, as they don't contain ",
134+
"at least ", min_cells, " cells in at least half of the samples.")
135+
}
134136
rem_nodes <- alias[!ind_cell]
135137
alias <- alias[ind_cell]
136138

0 commit comments

Comments
 (0)