rainbow.agilent.read

read(path, precision='auto', hrms=False, requested_files=None, telemetry=False, centroid=False, bin_width=None)[source]

Reads an Agilent .D directory or .dx archive.

Parameters:
  • path (str) – Path of the directory or .dx file.

  • precision (int or 'auto', optional) – Number of decimals to round masses. 'auto' picks 4 for high-resolution data and 0 otherwise, per file.

  • hrms (bool, optional) – Flag for parsing the MassHunter profile spectrum (MSProfile.bin).

  • requested_files (list, optional) – List of filenames to parse.

  • telemetry (bool, optional) – Flag for parsing .dx telemetry traces.

  • centroid (bool, optional) – Flag for parsing the MassHunter centroid spectrum (MSPeak.bin).

  • bin_width (float, optional) – Shared-grid bin width in daltons for the HRMS profile. Omit it (the default) to keep the per-scan representation (one ProfileDataFile per flight-time grid); pass a width to project onto the shared m/z grid.

Returns:

DataDirectory representing the Agilent data.