Parses an Agilent .amx method archive, extracting instrument parameters
from one or more of its driver sub-files.
read_agilent_amx(
path,
what = c("dad", "pump", "comp", "sampler"),
path_out = NULL,
format_out = c("data.frame", "tibble", "data.table"),
gradient_format = c("wide", "long")
)A named list with one element per parsed module, plus "metadata".
A module the archive has no driver file for is left out with a warning,
and it is an error if none of the requested modules has one. The comp module is returned as column and
sampler as autosampler. See below for the structure of each.
metadata — a list with scalar elements:
method_nameOriginal method name.
versionMethod version string.
statusApproval state.
createdCreation timestamp (POSIXct, UTC).
created_byUsername of creator.
modifiedLast-modified timestamp (POSIXct, UTC).
modified_byUsername of last modifier.
pump — a list with scalar elements flow_mL_min, stop_time_min,
post_time_min, pressure_low_bar, pressure_high_bar, plus:
solventsA table of active solvent channels: channel (e.g.
"A"), percentage and solvent (its name, or NA).
gradientA table of timetable entries. Wide format (default):
time_min plus one pct_<channel> column per active channel, and a
flow_mL_min column if the timetable changes the flow. Long format:
time_min, channel, percent, where a flow channel holds the
flow in mL/min.
dad — a list with scalar elements peakwidth_code, slitwidth_nm,
uv_lamp_required, vis_lamp_required, spectra_from_nm,
spectra_to_nm, spectra_step_nm, plus:
signalsA table of active signals: id (e.g. "A"),
wavelength_nm, bandwidth_nm, reference_nm and
reference_bandwidth_nm (NA without a reference).
peakwidth_code is the stored code for the detector's peak width
setting, which sets its data rate and response time; for example, 4 is
"> 0.1 min". It is not decoded, since detector models offer different
settings.
column — a list with scalar element post_time_min, plus:
temp_controlsTwo-row table (Left/Right): side,
temperature_C, not_ready_limit_C, equilibration_time_min.
autosampler — a list with scalar elements: thermostat_installed,
draw_speed_uL_min, eject_speed_uL_min,
wait_after_draw_min, injection_volume_uL, wash_time_s.
Path to the .amx file.
One or more instrument modules to parse. Any
combination of "dad", "pump", "comp", and "sampler". Defaults to
all four.
Directory into which the archive
is extracted. If NULL (default), a temporary directory is used and
cleaned up on exit.
Class of the gradient, solvents, signals and
temp_controls tables. Either "data.frame", "tibble" or "data.table".
Whether to return the gradient in "wide" (default)
or "long" format.
if (FALSE) {
read_agilent_amx(path)
}
Run the code above in your browser using DataLab