Make reduced hierarchy configuration

make_reduced_hierarchy_config(config, workIntensity, hierarchy)

Arguments

config

AnalysisConfiguration

workIntensity

work intensity column

hierarchy

new reduced hierarchy

Value

AnalysisConfiguration with reduced hieararchy

Examples

bb <- prolfqua::sim_lfq_data_peptide_config()
#> creating sampleName from fileName column
#> Warning: no nr_children column specified in the data, adding column nr_children and setting to 1.
#> completing cases

red <- make_reduced_hierarchy_config(bb$config,
 "testintensity",
 bb$config$table$hierarchy[1])
stopifnot(red$table$get_response() == "testintensity")
stopifnot(length(red$table$hierarchy) == 1)