From 6dbc82970e2308009dcc9db2c4ea5d05fba0183a Mon Sep 17 00:00:00 2001 From: xuewei cao <36172337+xueweic@users.noreply.github.com> Date: Sat, 19 Apr 2025 07:42:16 -0400 Subject: [PATCH 1/2] Update colocboost_output.R --- R/colocboost_output.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/colocboost_output.R b/R/colocboost_output.R index 144cd8f..a06dc65 100644 --- a/R/colocboost_output.R +++ b/R/colocboost_output.R @@ -116,7 +116,7 @@ get_cos_summary <- function(cb_output, tt <- sapply(interest_outcome, function(tmp) grep(paste0(tmp, "\\b"), cp)) all(sapply(tt, length) != 0) }) - summary_table$interest_outcome <- interest_outcome + summary_table$interest_outcome <- paste0(interest_outcome, collapse = "; ") summary_table <- summary_table[which(if.interest), ] if (sum(if.interest) == 0) { warning("No colocalization with interest outcomes.") From df10c94c4a474a877d2f353442ff92620f4fad80 Mon Sep 17 00:00:00 2001 From: xuewei cao <36172337+xueweic@users.noreply.github.com> Date: Sun, 20 Apr 2025 11:30:13 -0400 Subject: [PATCH 2/2] minor change --- R/colocboost_output.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/R/colocboost_output.R b/R/colocboost_output.R index a06dc65..05b3dd4 100644 --- a/R/colocboost_output.R +++ b/R/colocboost_output.R @@ -204,6 +204,7 @@ get_robust_colocalization <- function(cb_output, if (is.null(pvalue_cutoff)) { message(paste0( "Extracting colocalization results with cos_npc_cutoff = ", cos_npc_cutoff, " and npc_outcome_cutoff = ", npc_outcome_cutoff, ".\n", + "Keep only CoS with cos_npc >= ", cos_npc_cutoff, ". ", "For each CoS, keep the outcomes configurations that the npc_outcome >= ", npc_outcome_cutoff, "." )) } else { @@ -219,6 +220,7 @@ get_robust_colocalization <- function(cb_output, } else { message(paste0( "Extracting colocalization results with pvalue_cutoff = ", pvalue_cutoff, ", cos_npc_cutoff = ", cos_npc_cutoff, ", and npc_outcome_cutoff = ", npc_outcome_cutoff, ".\n", + "Keep only CoS with cos_npc >= ", cos_npc_cutoff, ". ", "For each CoS, keep the outcomes configurations that pvalue of variants for the outcome < ", pvalue_cutoff, " and npc_outcome >", npc_outcome_cutoff, "." )) }