Reads 'Agilent' .dx files.
Arguments
- path
Path to Agilent
.dxfile.- what
Whether to extract chromatograms (
chroms), DAD data (dad) and/or auxiliary instrumental data (instrument), such as temperature, pressure or solvent composition. Accepts multiple arguments, and defaults tochromsanddad. When more than one is requested, any the archive does not contain are left out; a single one that is missing is an error.- path_out
A directory to export unzipped files. If a path is not specified, a temporary directory is used. The files are extracted into a folder named for
path, overwriting any files of the same name already there.- format_out
Class of output. Either
matrix,data.frame, ordata.table.- data_format
Whether to return data in
wide(default) orlongformat.- read_metadata
Logical. Whether to attach metadata. Defaults to
TRUE.- metadata_format
Format to output metadata. Either
chromconverter(standardized field names) orraw(vendor field names, unmapped).- collapse
Logical. Whether to collapse lists that only contain a single element. Defaults to
TRUE.
Value
A list with one element per type in what, each a chromatogram or
a list of chromatograms named by signal, in the format specified by
format_out and data_format. With collapse = TRUE, a list of one
element is replaced by that element.
Details
The archive is extracted to path_out, or to a temporary directory that is
deleted afterwards, and its .ch, .uv and .it files are read with
read_chemstation_ch, read_chemstation_uv and an internal reader for
.it files.
Where the archive holds an injection.acmd file, the run_datetime and
sample_injection_volume attributes are taken from it. Its run time
records the offset from UTC, while the .ch and .uv headers give only
the local time.
