Module parsers

The function load_data2d() can be used to parse any chromatogram data in supported format.

load_data2d()

mocca2.load_data2d(path: str, format: Literal['auto', 'empower', 'chemstation', 'labsolutions'] = 'auto') Data2D

Loads empower/chemstation/labsolutions file, returns 2D data

Parameters

path: str

Path to the raw data file

format: Literal[‘auto’, ‘empower’, ‘chemstation’, ‘labsolutions’]

Format of the raw data file. If ‘auto’, the format is inferred from file extension

Returns

Data2D

The 2D chromatogram data

Parsers for individual formats

These parsers are all wrapped by load_data2d() and there is no need to call them directly.

mocca2.parsers.empower.parse_empower(path) Data2D

Reads the .arw empower file

mocca2.parsers.chemstation.parse_chemstation(path) Data2D

Chemstation read and processing function.

mocca2.parsers.labsolutions.parse_labsolutions(path) Data2D

Reads the .txt Lab Solutions file