View source: R/tidyMS_missigness.R
get_contrast | R Documentation |
Compute fold changes given Contrasts
get_contrast(data, hierarchy_keys, contrasts)
data |
hierarchy_keys of Analysis Configuration |
contrasts |
list of contrasts to compute |
Other imputation:
UpSet_interaction_missing_stats()
,
UpSet_missing_stats()
,
missigness_histogram()
,
missingness_per_condition()
,
missingness_per_condition_cumsum()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.