getLinearfit: Calculates linear fit between RT of two runs

Description Usage Arguments Value Author(s) See Also Examples

View source: R/get_global_fit.R

Description

This function 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

1
getLinearfit(oswFiles, ref, eXp, maxFdrGlobal)

Arguments

oswFiles

(list of data-frames) it is output from getFeatures function.

ref

(string) Must be a combination of "run" and an iteger e.g. "run2".

eXp

(string) Must be a combination of "run" and an iteger e.g. "run2".

maxFdrGlobal

(numeric) A numeric value between 0 and 1. Features should have m-score lower than this value for participation in linear fit.

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

Examples

1
2
3
4
5
6
data(oswFiles_DIAlignR, package="DIAlignR")
## Not run: 
lm.fit <- getLinearfit(oswFiles = oswFiles_DIAlignR, ref = "run1", eXp = "run2",
 maxFdrGlobal = 0.05)

## End(Not run)

Roestlab/DIAlign documentation built on Feb. 25, 2021, 5:18 p.m.