Skip to contents

This function automatically selects and applies a deterministic default imputation method by sample count and experiment type. Quality Control (QC) samples are inspected for workflow consistency, but they are not used to benchmark or select the imputation method.

Usage

auto_impute(exp, group_col = "group")

Arguments

exp

A glyexp::GlycomicSE(), glyexp::GlycoproteomicSE(), or SummarizedExperiment::SummarizedExperiment() object.

group_col

The column name in sample_info for groups. Default is "group". Can be NULL when no group information is available.

Value

The imputed input container, with its class preserved.

Details

The automatic strategy uses these defaults:

Other experiment types use the glycoproteomics defaults as a conservative fallback. impute_sample_min() and impute_half_sample_min() remain available for manual use, but they are not selected automatically.

Examples

library(glyexp)
exp_imputed <- auto_impute(real_experiment)
#>  Imputation method: `impute_min_prob()`
#>  Reason: default for "glycoproteomics" with n_samples < 30.