Description Usage Arguments Value Examples
View source: R/normalization.R
Normalizes an MSThermReplicate based on a pre-determined vector of relative abundances
1 | normalize_to_profile(replicate, profile, model = T, plot = T)
|
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 |
An MsThermReplicate object with normalized data slots
1 2 3 4 5 6 7 8 | 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
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.