getLinearfit: Calculates linear fit between RT of two runs

View source: R/get_global_fit.R

getLinearfitR Documentation

Calculates linear fit between RT of two runs

Description

This function uses output of getRTdf that selects features from oswFiles which has m-score < maxFdrLoess. It fits Linear model on these feature. Loess mapping is established from reference to experiment run.

Usage

getLinearfit(RUNS_RT)

Arguments

RUNS_RT

(data-frame) must have three calumns: transition_group_id, RT.eXp, and RT.ref.

Value

An object of class "lm".

Author(s)

Shubham Gupta, shubh.gupta@mail.utoronto.ca

ORCID: 0000-0003-3500-8152

License: (c) Author (2019) + GPL-3 Date: 2019-12-14

See Also

getLOESSfit, getFeatures, getRTdf

Examples

data(oswFiles_DIAlignR, package="DIAlignR")
## Not run: 
RUNS_RT <- getRTdf(oswFiles = oswFiles_DIAlignR, ref = "run1", eXp = "run2", maxFdrGlobal = 0.05)
lm.fit <- getLinearfit(RUNS_RT)

## End(Not run)

shubham1637/DIAlign documentation built on March 27, 2023, 7:12 a.m.