
Assemble an object of class carmon_cop and one of class carmon_rec into a carmon object
Source: R/helpers.R
assemble_carmon_obj.RdAssemble an object of class carmon_cop and one of class carmon_rec into a
carmon object
Arguments
- carmon_cop
An object of
S3classcarmon_cop, resulting fromcopulize().- carmon_rec
An object of
S3classcarmon_rec, resulting fromreconstruct().
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)