createLink0Matrix {MetCirc} | R Documentation

## Create a link matrix

### Description

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

### Usage

    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

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

[Package MetCirc version 1.14.0 Index]