cutLinkMatrix {MetCirc} | R Documentation

## Create a cut link matrix

### Description

Create a cut link matrix

### Usage

    cutLinkMatrix(LinkMatrix, type = c("all", "inter", "intra"))

### Arguments

`LinkMatrix` | `matrix`, that gives per each row information on linked features
`type` | `character`, one of "all", "inter" or "intra"

### Details

This function is used to cut features from LinkMatrix. If type = "all", LinkMatrix will not be changed; if type = "inter" the cut LinkMatrix will only contain entries of links which are between groups and not inside groups; contrary to that, if type = "intra" the cut LinkMatrix will only contain entries of links which are inside groups and not between groups.

### Value

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

### Author(s)

Thomas Naake, thomasnaake@googlemail.com

### Examples

    data("binnedMSP", package = "MetCirc")
    ## use only a selection
    binnedMSP <- binnedMSP[c(c(1:20, 29:48, 113:132, 240:259)),]
    similarityMat <- createSimilarityMatrix(binnedMSP)
    linkMat <- createLinkMatrix(similarityMatrix = similarityMat, threshold_low = 0.75, threshold_high = 1)
    cutLinkMatrix(LinkMatrix = linkMat, type = "all")

[Package MetCirc version 1.10.0 Index]