integrate_data: integrate_data

View source: R/integrate_data.R

integrate_dataR Documentation

integrate_data

Description

Integrate different batch datasets together.

Usage

integrate_data(
  object,
  method = c("qc_mean", "qc_median", "subject_mean", "subject_median")
)

Arguments

object

object.

method

Which method do you want to use? subject_mean or qc_mean, default is qc_mean.

Details

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.

Value

Return a mass_dataset which has been integrated.

Author(s)

Xiaotao Shen shenxt1990@outlook.com

Examples

## Not run: 
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")

## End(Not run)

tidymass/masscleaner documentation built on Sept. 4, 2023, 3:21 a.m.