normalize_to_profile {mstherm} | R Documentation |
Normalize to a profile.
Description
Normalizes an MSThermReplicate based on a pre-determined vector of relative abundances
Usage
normalize_to_profile(replicate, profile, model = T, plot = T)
Arguments
replicate |
an MSThermReplicate object |
profile |
a vector of relative values |
model |
whether to fit scale factors to model |
plot |
(T/f) whether to display a summary plot |
Value
An MsThermReplicate object with normalized data slots
Examples
control <- system.file("extdata", "demo_project/control.tsv", package="mstherm")
annots <- system.file("extdata", "demo_project/annots.tsv", package="mstherm")
expt <- MSThermExperiment(control, annotations=annots)
profile <- c(50.0, 50.5, 47.5, 42.0, 37.0, 25.0, 16.0, 11.5, 10.5, 10.0)
expt$samples$Control$replicates$C1 <- normalize_to_profile(
expt$samples$Control$replicates$C1, profile, plot=FALSE
)
[Package mstherm version 0.4.7 Index]