Skip to contents

The saveMsObject() and readMsObject() methods allow serializing and restoring/importing mass spectrometry (MS) data objects to and from language agnostic file formats. The type and configuration of the file format is defined by the second argument to the method, param.

  • saveMsObject(object, param): saves the MS data object object to file(s) in a format defined by param.

  • readMsObject(object, param): object defines the type of MS object that should be returned by the function and param the format and file name(s) from which the data should be restored/imported.

Usage

saveMsObject(object, param, ...)

readMsObject(object, param, ...)

Arguments

object

for saveMsObject(): the MS data object to save, for readMsObject(): the MS data object that should be returned

param

an object defining and (eventually configuring) the file format and file name or directory to/from which the data object should be exported/imported.

...

additional optional arguments. See documentation of respective method for more information.

Value

saveMsObject() has no return value, readMsObject is expected to return an instance of the class defined with object.

Author

Philippine Louail, Johannes Rainer, Laurent Gatto