Scale using a subset of the data, within factor levels (e.g. use for pulldown data)
Source:R/tidyMS_R6_TransitionCorrelations.R
scale_with_subset_by_factors.RdThis method reduces the variance within the group.
Examples
bb <- sim_lfq_data_peptide_config(Nprot = 100)
#> creating sampleName from fileName column
#> completing cases
#> completing cases done
#> setup done
conf <- bb$config$clone(deep=TRUE)
sample_analysis <- bb$data
res <- transform_work_intensity(sample_analysis, conf, log2)
#> Column added : log2_abundance
res <- scale_with_subset_by_factors(res, res, conf)
#> Joining with `by = join_by(sampleName, isotopeLabel, protein_Id, peptide_Id)`
#> Joining with `by = join_by(sampleName, isotopeLabel, protein_Id, peptide_Id)`
#> Joining with `by = join_by(sampleName, isotopeLabel, protein_Id, peptide_Id)`