createLink0df: Create a link matrix

Description Usage Arguments Details Value Author(s) Examples

View source: R/linkDf.R

Description

Create a link matrix which links every feature in similarity matrix with another.

Usage

1
createLink0df(similarityMatrix, spectra, condition)

Arguments

similarityMatrix

'matrix', a similarity matrix that contains the NDP similarity measure between all precursors in the data set

spectra

'MSpectra' object

condition

'character', which conditions should be included?

Details

createLink0df creates a 'matrix' from a similarity matrix which includes all connections between features in the similarity matrix, but exclude links which have a similarity of exactly 0.

Value

createLink0df returns a 'matrix' that gives per each row information on linked features

Author(s)

Thomas Naake, thomasnaake@googlemail.com

Examples

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

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