Skip to contents

Assemble an object of class carmon_cop and one of class carmon_rec into a carmon object

Usage

assemble_carmon_obj(carmon_cop, carmon_rec)

Arguments

carmon_cop

An object of S3 class carmon_cop, resulting from copulize().

carmon_rec

An object of S3 class carmon_rec, resulting from reconstruct().

Value

assemble_carmon_obj() returns an object of S3 class carmon, assembled from the results of the copulize() and the reconstruct() functions. For the details of the composition of this object see carmon(), keeping in mind that the assembled object will resemble the result of a carmon() run setting the argument analysis = FALSE.

Examples

data(multi_omics_micro)
carmon_cop_obj <- copulize(multi_omics_micro, verbose = FALSE)
carmon_rec_obj <- reconstruct(carmon_cop_obj$layers,
    net_method = "correlation",
    cor_quant = 0.5, verbose = FALSE
)
carmon_obj <- assemble_carmon_obj(carmon_cop_obj, carmon_rec_obj)