Agilent .uv files come in several formats. This parser detects the
version from the file and reads versions 31 and 131 from 'Agilent
ChemStation' and 'Agilent OpenLab'; any other version is an error.
read_chemstation_uv(
path,
format_out = c("matrix", "data.frame", "data.table"),
data_format = c("wide", "long"),
read_metadata = TRUE,
metadata_format = c("chromconverter", "raw"),
scale = TRUE,
source_file = NULL
)A 3D chromatogram in the format specified by data_format and
format_out. If data_format is wide, the chromatogram will
be returned with retention times as row names and wavelengths as columns. If
long format is requested, three columns will be returned: one for the
retention time, one for the wavelength and one for the intensity. The
format_out argument determines whether the chromatogram is returned as
a matrix, data.frame, or data.table. Metadata are attached to the
chromatogram as attributes if read_metadata is TRUE.
Path to 'Agilent' .uv file.
Class of output. Either matrix, data.frame, or
data.table.
Whether to return data in wide (default) or long format.
Logical. Whether to attach metadata. Defaults to TRUE.
Format to output metadata. Either chromconverter
(standardized field names) or raw (vendor field names, unmapped).
Whether to scale the data by the scaling factor present in the
file. Defaults to TRUE.
Source file from which UV data was originally derived.
Ethan Bass
Retention times are read from each spectrum, so they are unevenly spaced when the detector did not store every spectrum. Interpolate onto a common time axis before comparing runs.
Other 'Agilent' parsers:
read_agilent_d(),
read_agilent_dx(),
read_agilent_rslt(),
read_chemstation_ch(),
read_chemstation_csv(),
read_chemstation_logs(),
read_chemstation_method(),
read_chemstation_ms(),
read_chemstation_reports()
if (FALSE) { # interactive()
read_chemstation_uv("tests/testthat/testdata/dad1.uv")
}
Run the code above in your browser using DataLab