View source: R/read_chemstation_uv.R
read_chemstation_uv | R Documentation |
Agilent .uv
files come in several different varieties. This parser can
automatically detect and read several versions of these files from
'Agilent ChemStation' and 'Agilent OpenLab', including versions 31
and
131
.
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
)
path |
Path to |
format_out |
Class of output. Either |
data_format |
Either |
read_metadata |
Logical. Whether to attach metadata. |
metadata_format |
Format to output metadata. Either |
scale |
Whether to scale the data by the scaling factor present in the
file. Defaults to |
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 rows 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
or data.frame
. Metadata can be attached to the
chromatogram as attributes
if read_metadata
is TRUE
.
This function was adapted from the parser in the rainbow project licensed under GPL 3 by Evan Shi https://rainbow-api.readthedocs.io/en/latest/agilent/uv.html.
Ethan Bass
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.