| hasSpectra {MSnbase} | R Documentation |
Helper functions to check whether raw files contain spectra or chromatograms.
hasSpectra(files) hasChromatograms(files)
files |
A |
A logical(n) where n == length(x) with TRUE if that
files contains at least one spectrum, FALSE otherwise.
Laurent Gatto
f <- msdata::proteomics(full.names = TRUE)[1:2] hasSpectra(f) hasChromatograms(f)