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
1 change: 1 addition & 0 deletions R/colocboost.R
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ colocboost <- function(X = NULL, Y = NULL, # individual data
merging = merging,
tol = tol,
output_level = output_level)
class(cb_output) <- "colocboost"

return(cb_output)
}
Expand Down
4 changes: 2 additions & 2 deletions R/colocboost_assemble.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ colocboost_assemble <- function(cb_obj,
output_level = 1){

if (class(cb_obj) != "colocboost"){
stop("Input must from colocboost function!")}
stop("Input must from colocboost object!")}

# - data information
data_info <- get_data_info(cb_obj)
Expand Down Expand Up @@ -232,7 +232,7 @@ colocboost_assemble <- function(cb_obj,
}
}
}

return(cb_output)

}
3 changes: 3 additions & 0 deletions R/colocboost_plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ colocboost_plot <- function(cb_output, y = "log10p",
...){


if (class(cb_output) != "colocboost"){
stop("Input of colocboost_plot must be a 'colocboost' object!")}

# get cb_plot_input data from colocboost results
cb_plot_input <- get_input_plot(cb_output, plot_cos_idx = plot_cos_idx,
plot_target_only = plot_target_only,
Expand Down
Loading