public abstract class AbstractPsmCsvReader extends Object implements PsmReader
PsmReader with a default parse template method.
Each step of this parsing will have to be defined by inherited classes.| Constructor and Description |
|---|
AbstractPsmCsvReader() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Collection<String> |
getAccessionNumbers(ResultSet results)
Extract accession numbers
|
int |
getLineNumber() |
protected abstract SpectrumIdentifier |
getSpectrumId(ResultSet results)
Create a new
SpectrumIdentifier from a given ResultSet |
protected abstract com.google.common.base.Optional<PeptideMatch> |
makePeptideMatch(ResultSet results)
Create a new
PeptideMatch from a given ResultSet |
void |
parse(File file,
PSMReaderCallback callback)
Parse file and call back PSMReaderCallback on each found PSM
|
void |
parse(File file,
String delimiter,
PSMReaderCallback callback) |
void |
parse(InputStream inputStream,
PSMReaderCallback callback)
Parse inputStream and call back PSMReaderCallback on each found PSM
|
void |
parse(Reader reader,
PSMReaderCallback callback)
Parse reader and call back PSMReaderCallback on each found PSM
|
protected abstract void |
setValues(PeptideMatch peptideMatch,
ResultSet results)
Set
PeptideMatch score values |
public void parse(File file, PSMReaderCallback callback)
PsmReaderpublic void parse(InputStream inputStream, PSMReaderCallback callback)
PsmReaderpublic void parse(Reader reader, PSMReaderCallback callback)
PsmReaderpublic void parse(File file, String delimiter, PSMReaderCallback callback)
public final int getLineNumber()
protected abstract SpectrumIdentifier getSpectrumId(ResultSet results) throws SQLException
SpectrumIdentifier from a given ResultSetresults - the current results to extract identified spectrum infos fromSQLExceptionprotected abstract Collection<String> getAccessionNumbers(ResultSet results) throws SQLException
results - the ResultSet to extract accession numbers fromSQLExceptionprotected abstract com.google.common.base.Optional<PeptideMatch> makePeptideMatch(ResultSet results) throws SQLException
PeptideMatch from a given ResultSetresults - the current results to extract PSM infos fromSQLExceptionprotected abstract void setValues(PeptideMatch peptideMatch, ResultSet results) throws SQLException
PeptideMatch score valuespeptideMatch - the peptide match to set valuesresults - the ResultSet to extract score values fromSQLExceptionCopyright © 2016. All Rights Reserved.