compare_Spectra {MetCirc} | R Documentation

## Create similarity matrix from 'MSnbase::MSpectra' object

### Description

'compare_Spectra“ creates a similarity matrix of all Spectrum objects in 'object'

### Usage

    compare_Spectra(object, fun, ...)

### Arguments

`object` | 'MSpectra'
`fun` | 'function' or 'character', see '?MSnbase::compareSpectra' for further information
`...` | arguments passed to 'compareSpectra'

### Details

Function inspired by 'compareSpectra.OnDiskMSnExp'. Possibly transfer to 'MSnbase'. “

### Author(s)

Thomas Naake (inspired by 'compareSpectra.OnDiskMSnExp')

### Examples

    data("spectra", package = "MetCirc")
    compare_Spectra(spectra_tissue[1:10], fun = "dotproduct")

[Package MetCirc version 1.22.0 Index]