Checks if raw data files have any spectra or chromatograms
Source:R/utils.R
hasSpectraOrChromatograms.RdHelper functions to check whether raw files contain spectra or chromatograms.
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.
Examples
f <- c(MsDataHub::MRM.standmix.5.mzML(),
MsDataHub::MS3TMT10_01022016_32917.33481.mzML.gz())
#> see ?MsDataHub and browseVignettes('MsDataHub') for documentation
#> loading from cache
#> see ?MsDataHub and browseVignettes('MsDataHub') for documentation
#> loading from cache
hasSpectra(f)
#> EH10329 EH10410
#> FALSE TRUE
hasChromatograms(f)
#> EH10329 EH10410
#> TRUE TRUE