MzXMLReader
Class capable of reading spectra from mzXML formatted data files.
Remarks
mzXML is a deprecated file format. Nova supports reading this format to support legacy data files. MzML formatted data is preferred.
Implements
ISpectrumFileReader
Constructors
Syntax | Description |
---|---|
MzXMLReader(MSFilter filter) | Initializes the MzXMLReader class and sets a spectrum filter. |
Properties
Identifier | Type | Description |
---|---|---|
FirstScanNumber | int | Number of the first scan event in the file. |
LastScanNumber | int | Number of the last scan event in the file. |
MaxRetentionTime | double | Retention time (in minutes) of the last scan event in the file. |
ScanCount | int | Total number of scan events in the file. |
Methods
Method | Returns | Description |
---|---|---|
Close() | void | Closes an open MS data file. |
GetSpectrum(int scanNumber = -1, bool centroid = true) | Spectrum | Reads the requested spectrum or the next spectrum if a valid scanNumber is not given. Data are returned in centroid, if possible, unless otherwise requested. |
GetSpectrumEx(int scanNumber = -1, bool centroid = true) | SpectrumEx | Reads the requested spectrum or the next spectrum if a valid scanNumber is not given, and returns the data in the extended spectrum format. Data are returned in centroid, if possible, unless otherwise requested. |
Open(string fileName) | bool | Opens an mzML file and parses the index and meta information. |
GetSpectrum(int scanNumber = -1, bool centroid = true) | Spectrum | Reads the requested spectrum or the next spectrum if a valid scanNumber is not given. Data are returned in centroid, if possible, unless otherwise requested. |
Example
1
This post is licensed under CC BY 4.0 by the author.