get_contrast: Compute fold changes given Contrasts

View source: R/tidyMS_missigness.R

get_contrastR Documentation

Compute fold changes given Contrasts

Description

Compute fold changes given Contrasts

Usage

get_contrast(data, hierarchy_keys, contrasts)

Arguments

data

hierarchy_keys of Analysis Configuration

contrasts

list of contrasts to compute

See Also

Other imputation: UpSet_interaction_missing_stats(), UpSet_missing_stats(), missigness_histogram(), missingness_per_condition(), missingness_per_condition_cumsum()

Examples



istar <- sim_lfq_data_peptide_config()
config <- istar$config
analysis <- istar$data
data <- complete_cases(analysis, config)

Contrasts <- c("dilution.b-a" = "group_A - group_B", "dilution.c-e" = "group_A - group_Ctrl")

var = summarize_stats(data, config)
var <- prolfqua::make_interaction_column(var, columns = config$table$factor_keys_depth())

imp <- var |> tidyr::pivot_wider(id_cols = config$table$hierarchy_keys(),
                        names_from = interaction,
                        values_from = !!rlang::sym("meanAbundance"))

imputed <- get_contrast(imp, config$table$hierarchy_keys(), Contrasts)



wolski/prolfqua documentation built on Dec. 4, 2024, 11:18 p.m.