public class PepNovoIdfileReader extends ExperimentObject implements IdfileReader
| Modifier and Type | Field and Description |
|---|---|
double |
cTermCorrection
The mass to add to the C-terminal gap so that is corresponds to a peptide
fragment.
|
double |
nTermCorrection
The mass to add to the N-terminal gap so that is corresponds to a peptide
fragment.
|
static String |
tableHeader
The standard format.
|
| Constructor and Description |
|---|
PepNovoIdfileReader()
Default constructor for the purpose of instantiation.
|
PepNovoIdfileReader(File identificationFile)
Constructor, initiate the parser.
|
PepNovoIdfileReader(File identificationFile,
WaitingHandler waitingHandler)
Constructor, initiate the parser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the file reader.
|
HashSet<SpectrumMatch> |
getAllSpectrumMatches(WaitingHandler waitingHandler)
Retrieves all the identifications from an identification file as a list
of spectrum matches It is very important to close the file reader after
creation.
|
String |
getExtension()
Returns the extension of the file for which this IdfileReader can be
used.
|
String |
getMgfFileName()
Returns the spectrum file name.
|
static String |
getPTM(PepnovoParameters pepnovoParameters,
String pepNovoModification)
Get a PTM.
|
HashMap<String,ArrayList<String>> |
getSoftwareVersions()
Returns the names and versions of the software used to generate the identification
file in a map, e.g., Mascot -> (2.2 and 2.3) and X!Tandem -> Sledgehammer (2013.09.01.1).
|
addUrParam, getParameterKey, getUrParampublic static final String tableHeader
public final double cTermCorrection
public final double nTermCorrection
public PepNovoIdfileReader()
public PepNovoIdfileReader(File identificationFile) throws FileNotFoundException, IOException
identificationFile - the identification file to parseFileNotFoundException - exception thrown whenever the provided file
was not foundIOException - exception thrown whenever an error occurred while
reading the filepublic PepNovoIdfileReader(File identificationFile, WaitingHandler waitingHandler) throws FileNotFoundException, IOException
identificationFile - the identification file to parsewaitingHandler - a waiting handler providing progress feedback to
the userFileNotFoundException - exception thrown whenever the provided file
was not foundIOException - exception thrown whenever an error occurred while
reading the filepublic HashSet<SpectrumMatch> getAllSpectrumMatches(WaitingHandler waitingHandler) throws IOException, IllegalArgumentException, Exception
IdfileReadergetAllSpectrumMatches in interface IdfileReaderwaitingHandler - a waiting handler displaying the progress (can be
null). The secondary progress methods will be called.IOException - exception thrown whenever an error occurred while
reading the fileIllegalArgumentException - exception thrown whenever an error
occurred while parsing the fileException - exception thrown whenever an error occurred while
working with the filepublic String getMgfFileName()
public String getExtension()
IdfileReadergetExtension in interface IdfileReaderpublic void close()
throws IOException
IdfileReaderclose in interface IdfileReaderIOExceptionpublic static String getPTM(PepnovoParameters pepnovoParameters, String pepNovoModification)
pepnovoParameters - the PepNovo parameterspepNovoModification - the PepNovo modificationpublic HashMap<String,ArrayList<String>> getSoftwareVersions()
IdfileReadergetSoftwareVersions in interface IdfileReaderCopyright © 2014. All rights reserved.