createLink0Matrix: Create a link matrix

Description Usage Arguments Details Value Author(s) Examples

Description

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

Usage

1
createLink0Matrix(similarityMatrix)

Arguments

similarityMatrix

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

Details

createLink0Matrix 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

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

Author(s)

Thomas Naake, thomasnaake@googlemail.com

Examples

1
2
3
4
5
6
data("binnedMSP", package = "MetCirc")
## truncate binnedMSP
binnedMSP <- binnedMSP[1:28,]
namesPrec <- rownames(binnedMSP)
similarityMat <- createSimilarityMatrix(binnedMSP)
link0Mat <- createLink0Matrix(similarityMatrix = similarityMat)

PlantDefenseMetabolism/MetCirc documentation built on May 8, 2019, 2:52 p.m.