From 763f60bc0715d9fed653d9d64e9aa9982b0c8837 Mon Sep 17 00:00:00 2001 From: jiaying2508 <38696658+jiaying2508@users.noreply.github.com> Date: Mon, 21 Oct 2024 13:57:14 -0400 Subject: [PATCH] Update MCMC-main.R --- R/MCMC-main.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/MCMC-main.R b/R/MCMC-main.R index 6c72c2b..48be7a3 100644 --- a/R/MCMC-main.R +++ b/R/MCMC-main.R @@ -160,7 +160,7 @@ mcmcMain <- function(mutation_file, dev.off() } - if (length(all_spanning_trees[which(scores == max(scores))])) { + if (length(all_spanning_trees[which(scores == max(scores))])>1) { png(paste(outputDir, "tree_ensemble.png", sep="/")) plotEnsembleTree(all_spanning_trees, palette = viridis::viridis) dev.off()