public class MgfReader extends AbstractMgfReader<PeakAnnotation,MsnSpectrum>
AbstractMsReader.ParseContextacceptUnsortedSpectra, precisionEMPTY_READER| Constructor and Description |
|---|
MgfReader(File file,
PeakList.Precision precision) |
MgfReader(File file,
PeakList.Precision precision,
PeakProcessorChain<PeakAnnotation> processorChain) |
MgfReader(Reader reader,
URI spectraSource,
PeakList.Precision precision) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTitleParser(TitleParser parser) |
protected MsnSpectrum |
newSpectrum(AbstractMsReader.ParseContext context,
PeakList.Precision precision)
Create a new spectrum.
|
MsnSpectrum |
next()
Overridden so that the compiler knows that MsnSpectra are returned by next().
|
protected boolean |
parseTitleTag(String value,
MsnSpectrum spectrum)
Parse the line that starts with a TITLE tag.
|
protected void |
setRetentionTimes(MsnSpectrum spectrum,
RetentionTimeList retentionTimeList)
Add the retention times contained in the retentionTimeList to the spectrum.
|
protected void |
setScanNumbers(MsnSpectrum spectrum,
ScanNumberList scanNumbers)
Add the scan numbers contained in the scanNumbers to the spectrum.
|
getExtension, handleBeginIonLine, handleComment, handleEndIonLine, handleIntermediaryLine, handlePeakLine, handleTagLine, handleUnknownLine, parseChargeTag, parseHeader, parseNextEntry, parseNextMs1Entry, parseNextMs2Entry, parsePepMassTag, parseRetentionTimeTag, parseScanTag, parseUnknownTag, skipIntermediaryLineacceptUnsortedSpectra, addPeaksToSpectrum, addPeakToSpectrum, close, getContext, getHeader, hasNext, initpublic MgfReader(File file, PeakList.Precision precision) throws IOException
IOExceptionpublic MgfReader(File file, PeakList.Precision precision, PeakProcessorChain<PeakAnnotation> processorChain) throws IOException
IOExceptionpublic MgfReader(Reader reader, URI spectraSource, PeakList.Precision precision) throws IOException
IOExceptionpublic void addTitleParser(TitleParser parser)
protected MsnSpectrum newSpectrum(AbstractMsReader.ParseContext context, PeakList.Precision precision)
AbstractMgfReadernewSpectrum in class AbstractMgfReader<PeakAnnotation,MsnSpectrum>context - the parse contextprecision - the precision for the new spectrumprotected void setRetentionTimes(MsnSpectrum spectrum, RetentionTimeList retentionTimeList)
AbstractMgfReadersetRetentionTimes in class AbstractMgfReader<PeakAnnotation,MsnSpectrum>spectrum - the spectrum that is currently being readretentionTimeList - the retention times that were readprotected void setScanNumbers(MsnSpectrum spectrum, ScanNumberList scanNumbers)
AbstractMgfReadersetScanNumbers in class AbstractMgfReader<PeakAnnotation,MsnSpectrum>spectrum - the spectrum that is currently being readscanNumbers - the scan numbers that were readprotected boolean parseTitleTag(String value, MsnSpectrum spectrum)
AbstractMgfReaderparseTitleTag in class AbstractMgfReader<PeakAnnotation,MsnSpectrum>value - the title valuespectrum - the spectrum being parsedpublic MsnSpectrum next() throws IOException
next in interface IterativeReader<MsnSpectrum>next in class AbstractMsReader<PeakAnnotation,MsnSpectrum>IOException - if there is an io exceptionCopyright © 2016. All Rights Reserved.