public class PNovoIdfileReader extends ExperimentObject implements IdfileReader
Constructor and Description |
---|
PNovoIdfileReader()
Default constructor for the purpose of instantiation.
|
PNovoIdfileReader(File identificationFile)
Constructor, initiate the parser.
|
PNovoIdfileReader(File identificationFile,
WaitingHandler waitingHandler)
Constructor, initiate the parser.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the file reader.
|
LinkedList<SpectrumMatch> |
getAllSpectrumMatches(WaitingHandler waitingHandler,
SearchParameters searchParameters)
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.
|
LinkedList<SpectrumMatch> |
getAllSpectrumMatches(WaitingHandler waitingHandler,
SearchParameters searchParameters,
SequenceMatchingParameters sequenceMatchingPreferences,
boolean expandAaCombinations)
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.
|
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).
|
boolean |
hasDeNovoTags()
Returns a boolean indicating whether the file contains de novo results as tags.
|
addUrParam, asLong, clearParametersMap, getUrParam, getUrParams, removeUrParam, setUrParams
getFirstLevel, getId, setFirstLevel, setId
jdoZooEvict, jdoZooGetBackup, jdoZooGetClassDef, jdoZooGetContext, jdoZooGetNode, jdoZooGetOid, jdoZooGetTimestamp, jdoZooHasState, jdoZooInit, jdoZooIsDeleted, jdoZooIsDetached, jdoZooIsDirty, jdoZooIsNew, jdoZooIsPersistent, jdoZooIsStateHollow, jdoZooIsTransactional, jdoZooMarkClean, jdoZooMarkDeleted, jdoZooMarkDetached, jdoZooMarkDirty, jdoZooMarkHollow, jdoZooMarkTransient, jdoZooSetOid, jdoZooSetTimestamp, toString, zooActivateRead, zooActivateWrite, zooActivateWrite
public PNovoIdfileReader()
public PNovoIdfileReader(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 PNovoIdfileReader(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 LinkedList<SpectrumMatch> getAllSpectrumMatches(WaitingHandler waitingHandler, SearchParameters searchParameters) throws IOException, IllegalArgumentException, SQLException, ClassNotFoundException, InterruptedException, JAXBException
IdfileReader
getAllSpectrumMatches
in interface IdfileReader
waitingHandler
- a waiting handler displaying the progress (can be
null). The secondary progress methods will be called.searchParameters
- the search parametersIOException
- if an IOException occursSQLException
- if an SQLException occursClassNotFoundException
- if an\ ClassNotFoundException occursInterruptedException
- if an InterruptedException occursJAXBException
- if a JAXBException occursIllegalArgumentException
public LinkedList<SpectrumMatch> getAllSpectrumMatches(WaitingHandler waitingHandler, SearchParameters searchParameters, SequenceMatchingParameters sequenceMatchingPreferences, boolean expandAaCombinations) throws IOException, IllegalArgumentException, SQLException, ClassNotFoundException, InterruptedException, JAXBException
IdfileReader
getAllSpectrumMatches
in interface IdfileReader
waitingHandler
- a waiting handler displaying the progress (can be
null). The secondary progress methods will be called.searchParameters
- the search parameterssequenceMatchingPreferences
- the sequence matching preferences to
use for the creation of the secondary mapsexpandAaCombinations
- if true, a peptide assumption (not
implemented for tag assumptions) will be created for all possible amino
acid combination for peptide sequences containing an ambiguity like an XIOException
- if an IOException occursSQLException
- if an SQLException occursClassNotFoundException
- if an\ ClassNotFoundException occursInterruptedException
- if an InterruptedException occursJAXBException
- if a JAXBException occursIllegalArgumentException
public String getMgfFileName()
public String getExtension()
IdfileReader
getExtension
in interface IdfileReader
public void close() throws IOException
IdfileReader
close
in interface IdfileReader
IOException
- if an IOException occurspublic HashMap<String,ArrayList<String>> getSoftwareVersions()
IdfileReader
getSoftwareVersions
in interface IdfileReader
public boolean hasDeNovoTags()
IdfileReader
hasDeNovoTags
in interface IdfileReader
Copyright © 2018. All rights reserved.