Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

export(colocboost)
export(colocboost_plot)
export(get_ambiguous_colocalization)
export(get_colocboost_summary)
export(get_cormat)
export(get_cos)
export(get_cos_purity)
Expand Down
9 changes: 6 additions & 3 deletions R/colocboost.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@
#' @param check_null_max The smallest value of change of profile loglikelihood for each outcome.
#' @param weaker_effect If \code{weaker_effect = TRUE}, consider the weaker single effect due to coupling effects
#' @param LD_free When \code{LD_free = FALSE}, objective function doesn't include LD information.
#' @param output_level When \code{output_level = 2}, return the ucos details for the single specific effects.
#' When \code{output_level = 3}, return the entire Colocboost model to diagnostic results (more space).
#' @param output_level When \code{output_level = 1}, return basic cos details for colocalization results
#' When \code{output_level = 2}, return the ucos details for the single specific effects.
#' When \code{output_level = 3}, return the entire Colocboost model to diagnostic results (more space).
#'
#' @return A \code{"colocboost"} object with some or all of the following elements:
#'
Expand All @@ -95,7 +96,9 @@
#' \item{cos_details}{A object with all information for colocalization results.}
#' \item{data_info}{A object with detailed information from input data}
#' \item{model_info}{A object with detailed information for colocboost model}
#'
#' \item{ucos_details}{A object with all information for trait-specific effects when \code{output_level = 2}.}
#' \item{diagnositci_details}{A object with diagnostic details for ColocBoost model when \code{output_level = 3}.}
#'
#' @examples
#' # colocboost example
#' set.seed(1)
Expand Down
1 change: 1 addition & 0 deletions R/colocboost_inference.R
Original file line number Diff line number Diff line change
Expand Up @@ -568,3 +568,4 @@ get_cos_evidence <- function(cb_obj, coloc_out, data_info) {
names(normalization_evidence) <- names(npc) <- names(coloc_out$cos)
return(list(normalization_evidence = normalization_evidence, npc = npc))
}

1,156 changes: 491 additions & 665 deletions R/colocboost_output.R

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions R/colocboost_plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ get_input_plot <- function(cb_output, plot_cos_idx = NULL,
)
plot_input$uncoloc <- uncoloc
}

class(plot_input) <- "colocboost"
return(plot_input)
}
Expand Down
Loading