Post

ISpectrumFileReader

A reader for one MS data file, obtained from SpectrumFileReaderFactory.GetReader.


Remarks

A reader for one MS data file, obtained from SpectrumFileReaderFactory.GetReader. Enumerating it yields each spectrum in file order.

Implements

IEnumerable


Properties

IdentifierTypeDescription
ChromatCountintNumber of chromatograms retrievable from the open file via GetChromatogram, or 0 for formats that carry none.
FilterMSFilterThe MS levels to read. Spectra at other levels are skipped.
FirstScanintThe scan number of the first spectrum in the file.
LastScanintThe scan number of the last spectrum in the file.
MaxRetentionTimedoubleThe retention time at the end of the run, in minutes.
ScanCountintThe number of spectra in the open file.

Methods

MethodReturnsDescription
Close()voidPerforms any cleanup.
GetChromatogram(int chromatIndex = -1)ChromatogramReads a chromatogram from the currently open MS data file.
GetSpectrum(int scanNumber = -1, bool centroid = true)SpectrumReads a spectrum from the currently open MS data file.
GetSpectrumEx(int scanNumber = -1, bool centroid = true)SpectrumExReads a spectrum from the currently open MS data file, with the extended per-peak data where the format provides it.
Open(string fileName)boolOpen data file and hold new scan information.
Reset()voidResets the file reader to the beginning of the file when iteratively reading.
This post is licensed under CC BY 4.0 by the author.

Trending Tags