public class MsLibReader extends AbstractMsReader<PepLibPeakAnnotation,PeptideConsensusSpectrum>
AbstractMsReader.ParseContextacceptUnsortedSpectra, precisionEMPTY_READER| Constructor and Description |
|---|
MsLibReader(Reader reader,
URI spectraSource,
PeakList.Precision precision,
SpectraLibCommentParser commentParser,
AnnotationResolver annotationResolver,
PeakProcessorChain<PepLibPeakAnnotation> processorChain,
ModificationResolver modResolver) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
handlePeakLine(LibrarySpectrumBuilder builder,
String line)
Handle peak line, which is any line that starts with a digit
|
protected boolean |
handleTagLine(String tag,
String value,
LibrarySpectrumBuilder spectrumBuilder)
Handle tag value line.
|
protected boolean |
handleUnknownLine(LibrarySpectrumBuilder spectrum,
String line)
Handle line that is not a comment, begin ion, tag, peak or end ion
|
protected String |
parseHeader(AbstractMsReader.ParseContext context)
This is called on reader initialization.
|
protected PeptideConsensusSpectrum |
parseNextEntry(AbstractMsReader.ParseContext context) |
protected boolean |
parseUnknownTag(String tag,
String value,
LibrarySpectrumBuilder spectrum)
Called if there are any tags that are not handled by SptxtReader2
This is meant to be over ridden by subclasses that want to
parse tags that the SptxtReader2 does not know about
|
acceptUnsortedSpectra, addPeaksToSpectrum, addPeakToSpectrum, close, getContext, getHeader, hasNext, init, nextpublic MsLibReader(Reader reader, URI spectraSource, PeakList.Precision precision, SpectraLibCommentParser commentParser, AnnotationResolver annotationResolver, PeakProcessorChain<PepLibPeakAnnotation> processorChain, ModificationResolver modResolver) throws IOException
IOExceptionprotected String parseHeader(AbstractMsReader.ParseContext context) throws IOException
AbstractMsReaderparseHeader in class AbstractMsReader<PepLibPeakAnnotation,PeptideConsensusSpectrum>context - the parser contextIOExceptionprotected PeptideConsensusSpectrum parseNextEntry(AbstractMsReader.ParseContext context) throws IOException
parseNextEntry in class AbstractMsReader<PepLibPeakAnnotation,PeptideConsensusSpectrum>IOExceptionprotected boolean handleTagLine(String tag, String value, LibrarySpectrumBuilder spectrumBuilder)
spectrumBuilder - the spectrumBuilder currently being readtag - the string from the start of the lien to the = charactervalue - the string from the character after the = to the end of the lineprotected boolean handlePeakLine(LibrarySpectrumBuilder builder, String line)
builder - the builder currently being readline - the lineprotected boolean handleUnknownLine(LibrarySpectrumBuilder spectrum, String line)
spectrum - the spectrum currently being readline - the lineprotected boolean parseUnknownTag(String tag, String value, LibrarySpectrumBuilder spectrum)
tag - the characters in the line before the first =value - the characters in the line after the first =spectrum - the spectrum that is being readCopyright © 2016. All Rights Reserved.