createLink0df: Create a link matrix

View source: R/linkDf.R

createLink0dfR Documentation

Create a link matrix

Description

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

Usage

createLink0df(similarityMatrix, sps, condition)

Arguments

similarityMatrix

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

sps

Spectra 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

data("spectra", package = "MetCirc")
data("similarityMat", package = "MetCirc")
link0df <- createLink0df(similarityMatrix = similarityMat,
    sps = sps_tissue, condition = c("SPL", "LIM", "ANT", "STY"))


tnaake/MetCirc documentation built on Nov. 3, 2024, 11:16 a.m.