hasSpectraOrChromatograms: Checks if raw data files have any spectra or chromatograms

Description Usage Arguments Value Author(s) Examples

Description

Helper functions to check whether raw files contain spectra or chromatograms.

Usage

1
2
3

Arguments

files

A character() with raw data filenames.

Value

A logical(n) where n == length(x) with TRUE if that files contains at least one spectrum, FALSE otherwise.

Author(s)

Laurent Gatto

Examples

1
2
3
f <- msdata::proteomics(full.names = TRUE)[1:2]
hasSpectra(f)
hasChromatograms(f)

MSnbase documentation built on Jan. 23, 2021, 2 a.m.