loads mzXML, mzML and mzData files

If path is missing, a dialog for file selection is opened instead.

emzed.io.storePeakMap(pm, path=None)[source]

Stores peakmap pm in mzXML, mzML or mzData format. The used format depends on the file extension given in path. If no path is given, a dialog for choosing an output file name is opened.

emzed.io.loadCSV(path=None, sep=';', keepNone=False, dashIsNone=True, **specialFormats)[source]

loads csv file from path. column separator is given by sep. If keepNone is set to True, “None” strings in file are kept as a string. Else this string is converted to Python None values. specialFormats collects positional arguments for setting formats of columns.

Example: emzed.io.loadCSV("abc.csv", mz="%.3f")

emzed.io.storeCSV(tab, path=None)[source]

Saves tab in a textual .csv file. If path is not provided, a file dialog opens for choosing the files name and location.

emzed.io.loadTable(path=None, compress_after_load=True)[source]

load pickled table

If path is missing, a dialog for file selection is opened instead.

emzed.io.storeTable(tab, path=None, forceOverwrite=False, compressed=True, peakmap_cache_folder=None)[source]

Writes the table in binary format. All information, as corresponding peak maps too.

The file name extension in path``must be ``.table.

forceOverwrite must be set to True to overwrite an existing file.

compressed replaces duplicate copies of the same peakmap of a single one to save space on disk.

peakmap_cache_folder is a folder. if provided the table data and the peakmap are stored separtely. so the table file can then be loaded much faster and the peakmaps are lazily loaded only if one tries to access their spectra. This speeds up workflows but the developer must care about consistency: if the peakmap folder is deleted the table may becom useless !

Latter the file can be loaded with emzed.io.loadTable