Integrate different batch datasets together.
integrate_data(
object,
method = c("qc_mean", "qc_median", "subject_mean", "subject_median")
)
object.
Which method do you want to use? subject_mean or qc_mean, default is qc_mean.
Return a mass_dataset which has been integrated.
Data integration is a necessary step for multiple batch dataset. https://www.readcube.com/library/fe13374b-5bc9-4c61-9b7f-6a354690947e:abe41368-d08d-4806-871f-3aa035d21743Dunn's method has been used in this function.
if (FALSE) {
data("object1", package = "demodata")
data("object2", package = "demodata")
object =
align_batch(x = object1, y = object2, return_index = FALSE)
object = impute_mv(object = object, method = "zero")
get_mv_number(object)
new_object =
integrate_data(object = object, method = "qc_mean")
massdataset::intensity_plot(object = object,
variable_index = 4,
order_by = "injection.order",color_by = "batch")
massdataset::intensity_plot(object = new_object,
variable_index = 2,
order_by = "injection.order",color_by = "batch")
}