ISpectrumFileReader.Reset
Resets the file reader to the beginning of the file.
Remarks
After Reset, GetSpectrum with no scan number starts again from the first spectrum that passes the filter.
Syntax
| Syntax | Description |
|---|---|
| Reset() | Resets the file reader to the beginning of the file when iteratively reading. |
Example
1
2
3
4
5
6
7
8
9
using Nova.Data;
using Nova.Io.Read;
ISpectrumFileReader reader = SpectrumFileReaderFactory.GetReader("DDA.mzML", MSFilter.MS2);
Spectrum first = reader.GetSpectrum();
reader.Reset();
Spectrum again = reader.GetSpectrum(); // the same scan as first
reader.Close();
This post is licensed under CC BY 4.0 by the author.