This function will run QC steps on a Metabolite object
QC_pipeline(
object,
filter_column_constant = TRUE,
filter_column_missing_rate_threshold = 0.5,
filter_row_missing_rate_threshold = NULL,
replace_outlier_method = NULL,
nSD = 5,
impute_method = "half-min",
verbose = TRUE
)
An object, data.frame, data.table or Metabolite.
A logical value, whether to filter columns (features) with a constant value.
A numeric threshold to filter columns (features) below a missing rate, default: 0.5. Other values: 0.2, 0.8. If NULL, then skip this step.
A numeric threshold to filter rows (samples) below a missing rate. Default: NULL, to skip this step. Other values: 0.5, 0.2, 0.8.
Method to replace outlier value, see replace_outlier
.
Define the N times of the SD as outliers.
Imputation method, the default method is half the minimum value (`half-min`) of the metabolite. Currently support 'half-min', "median", "mean", "zero".
print log information.
A Metabolite object after QC.