thresholdLinkDf: Threshold a data frame containing information on links

Description Usage Arguments Details Value Author(s) Examples

View source: R/linkDf.R

Description

Threshold a link data frame based on lower and upper similarity values. The function will return that lie within the defined bounds.

Usage

1
thresholdLinkDf(link0df, lower = 0.75, upper = 1)

Arguments

link0df

'data.frame', a link data frame that gives per each row information on linked features

lower

'numeric', threshold value for similarity values, below this value linked features will not be returned

upper

'numeric', threshold value for similarity values, above this value linked features will not be returned

Details

'lower' and 'upper' are numerical values and truncates mass spectra based on their similarity values.

Value

'thresholdLinkDf' returns a data frame that gives per each row information on linked features which are linked within certain thresholds.

Author(s)

Thomas Naake, thomasnaake@googlemail.com

Examples

1
2
3
4
5
data("spectra", package = "MetCirc")
data("similarityMat", package = "MetCirc")
link0df <- createLink0df(similarityMatrix = similarityMat,
    spectra_tissue, condition = c("SPL", "LIM", "ANT", "STY"))
thresholdLinkDf(link0df = link0df, lower = 0.5, upper = 1)

MetCirc documentation built on Nov. 8, 2020, 8:26 p.m.