normalize_to_profile: Normalize to a profile.

Description Usage Arguments Value Examples

View source: R/normalization.R

Description

Normalizes an MSThermReplicate based on a pre-determined vector of relative abundances

Usage

1

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

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
)

jvolkening/r-mstherm documentation built on May 20, 2019, 5:21 a.m.