xcmsFileSource-class: Base class for loading raw data from a file

xcmsFileSource-classR Documentation

Base class for loading raw data from a file


Data sources which read data from a file should inherit from this class. The xcms package provides classes to read from netCDF, mzData, mzXML, and mzML files using xcmsFileSource.

This class should be considered virtual and will not work if passed to loadRaw-methods. The reason it is not explicitly virtual is that there does not appear to be a way for a class to be both virtual and have a data part (which lets functions treat objects as if they were character strings).

This class validates that a file exists at the path given.

Objects from the Class

xcmsFileSource objects should not be instantiated directly. Instead, create subclasses and instantiate those.



Object of class "character". File path of a file from which to read raw data as the object's data part


Class "character", from data part. Class "xcmsSource", directly.



signature(object = "character"): Create an xcmsFileSource object referencing the given file name.


Daniel Hackney dan@haxney.org

See Also


sneumann/xcms documentation built on June 5, 2024, 4:28 p.m.