createLink0df {MetCirc} | R Documentation

## Create a link matrix

### Description

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

### Usage

    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

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

[Package MetCirc version 1.20.0 Index]