View source: R/tidyMS_R6_TransitionCorrelations.R
scale_with_subset | R Documentation |
this should reduce the overall variance.
scale_with_subset(
data,
subset,
config,
preserveMean = FALSE,
get_scales = TRUE
)
data |
the whole dataset |
subset |
a subset of the dataset |
config |
configuration |
get_scales |
return a list of transformed data and the scaling parameters |
perserveMean |
default FASE - sets mean to zero |
Other preprocessing:
INTERNAL_FUNCTIONS_BY_FAMILY
,
apply_to_response_matrix()
,
filter_proteins_by_peptide_count()
,
get_robscales()
,
normalize_log2_robscale()
,
robust_scale()
,
scale_with_subset_by_factors()
bb <-sim_lfq_data_peptide_config(Nprot = 100)
conf <- bb$config$clone(deep=TRUE)
sample_analysis <- bb$data
res <- transform_work_intensity(sample_analysis, conf, log2)
s1 <- get_robscales(res, conf)
res <- scale_with_subset(res, res, conf)
s2 <- get_robscales(res$data, conf)
stopifnot(abs(mean(s1$mads) - mean(s2$mads)) < 1e-6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.