public class IndexedMgfReader extends Object
Constructor and Description |
---|
IndexedMgfReader()
General constructor for an mgf reader.
|
Modifier and Type | Method and Description |
---|---|
static MgfIndex |
getMgfIndex(File mgfFile)
Returns the index of all spectra in the given mgf file.
|
static MgfIndex |
getMgfIndex(File mgfFile,
WaitingHandler waitingHandler)
Returns the index of all spectra in the given MGF file.
|
static Precursor |
getPrecursor(uk.ac.ebi.pride.tools.braf.BufferedRandomAccessFile bufferedRandomAccessFile,
long index,
String fileName)
Returns the next precursor starting from the given index.
|
static Spectrum |
getSpectrum(uk.ac.ebi.pride.tools.braf.BufferedRandomAccessFile bufferedRandomAccessFile,
long index,
String fileName)
Returns the next spectrum starting from the given index.
|
public IndexedMgfReader()
public static MgfIndex getMgfIndex(File mgfFile) throws FileNotFoundException, IOException
mgfFile
- the given mgf fileFileNotFoundException
- Exception thrown whenever the file is not
foundIOException
- Exception thrown whenever an error occurs while
reading the filepublic static MgfIndex getMgfIndex(File mgfFile, WaitingHandler waitingHandler) throws FileNotFoundException, IOException
mgfFile
- the given MGF filewaitingHandler
- a waitingHandler showing the progressFileNotFoundException
- Exception thrown whenever the file is not
foundIOException
- Exception thrown whenever an error occurs while
reading the filepublic static Spectrum getSpectrum(uk.ac.ebi.pride.tools.braf.BufferedRandomAccessFile bufferedRandomAccessFile, long index, String fileName) throws IOException
bufferedRandomAccessFile
- The random access file of the inspected
mgf fileindex
- The index where to start looking for the spectrumfileName
- The name of the MGF fileIOException
- Exception thrown whenever an error is encountered
while reading the spectrumpublic static Precursor getPrecursor(uk.ac.ebi.pride.tools.braf.BufferedRandomAccessFile bufferedRandomAccessFile, long index, String fileName) throws IOException
bufferedRandomAccessFile
- the random access file of the inspected
mgf fileindex
- the index where to start looking for the spectrumfileName
- the name of the mgf fileIOException
- thrown whenever an error is encountered while reading
the spectrumCopyright © 2021. All rights reserved.