spectraCond {MetCirc} | R Documentation

## Get MS/MS spectra that are present in condition

### Description

'spectraCond' returns the names of 'spectra' that are present in condition, corresponding to the slot 'elementMetadata@listData'.

### Usage

    spectraCond(spectra, condition)

### Arguments

`spectra` | 'MSpectra' object of 'MSnbase' package
`condition` | 'character', vector with conditions found as columns in the elementMetadata slot

### Details

Helper function in 'createLink0df' and 'shinyCircos'.

### Value

'list', named 'list' with 'character' vector as entries that contains the names of the MS/MS entries in 'spectra' that are present in the 'conditon' (tissues, stress conditions, time points, etc.)

### Author(s)

Thomas Naake thomasnaake@googlemail.com

### Examples

    data("spectra", package = "MetCirc")
    MetCirc:::spectraCond(spectra_tissue,
        condition = c("SPL", "LIM", "ANT", "STY"))

[Package MetCirc version 1.22.0 Index]