typeMatch_link0: Get typeMatch and link0 data frame

View source: R/shinyApp.R

typeMatch_link0R Documentation

Get typeMatch and link0 data frame

Description

typeMatch_link0 returns a list with accessors "link0df" and "type_match"

Usage

typeMatch_link0(similarityMatrix, sps, type, condition)

Arguments

similarityMatrix

matrix with pairwise similarity values

sps

Spectra object

type

character(1), either "mz", "retentionTime", "clustering"

condition

character

Details

Helper function for shinyCircos.

Value

list of length 2, entry link0df is a data.frame and entry type_match is a character vector

Author(s)

Thomas Naake, thomasnaake@googlemail.com

Examples

data("spectra", package = "MetCirc")
similarityMat <- Spectra::compareSpectra(sps_tissue[1:10],
    FUN = MsCoreUtils::ndotproduct, ppm = 10, m = 0.5, n = 2)
rownames(similarityMat) <- colnames(similarityMat) <- sps_tissue$name[1:10]

## order according to retention time 
MetCirc:::typeMatch_link0(similarityMatrix = similarityMat, 
    sps = sps_tissue, type = "mz", 
    condition = c("SPL", "LIM", "ANT", "STY"))


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