public class TideIdfileReader extends ExperimentObject implements IdfileReader
| Constructor and Description |
|---|
TideIdfileReader()
Default constructor for the purpose of instantiation.
|
TideIdfileReader(File tideTsvFile)
Constructor for a Tide tsv results file reader.
|
TideIdfileReader(File tideTsvFile,
WaitingHandler waitingHandler)
Constructor for an Tide tsv result file reader.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearTagsMap()
Clears the tags map.
|
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,
SequenceMatchingPreferences 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.
|
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).
|
HashMap<String,LinkedList<SpectrumMatch>> |
getTagsMap()
Returns a map of all simple tags found in this file indexed by the
beginning of the amino acid sequence.
|
boolean |
hasDeNovoTags()
Returns a boolean indicating whether the file contains de novo results as tags.
|
addUrParam, getParameterKey, getUrParampublic TideIdfileReader()
public TideIdfileReader(File tideTsvFile) throws FileNotFoundException, IOException
tideTsvFile - the Tide tsv fileFileNotFoundException - if a FileNotFoundException occursIOException - if an IOException occurspublic TideIdfileReader(File tideTsvFile, WaitingHandler waitingHandler) throws FileNotFoundException, IOException
tideTsvFile - the Tide tsv filewaitingHandler - the waiting handlerFileNotFoundException - if a FileNotFoundException occursIOException - if an IOException occurspublic String getExtension()
IdfileReadergetExtension in interface IdfileReaderpublic LinkedList<SpectrumMatch> getAllSpectrumMatches(WaitingHandler waitingHandler, SearchParameters searchParameters) throws IOException, IllegalArgumentException, SQLException, ClassNotFoundException, InterruptedException, JAXBException
IdfileReadergetAllSpectrumMatches in interface IdfileReaderwaitingHandler - a waiting handler displaying the progress (can be
null). The secondary progress methods will be called.searchParameters - the search parametersIOException - if an IOException occursIllegalArgumentException - if an IllegalArgumentException occursSQLException - if an SQLException occursClassNotFoundException - if an\ ClassNotFoundException occursInterruptedException - if an InterruptedException occursJAXBException - if a JAXBException occurspublic LinkedList<SpectrumMatch> getAllSpectrumMatches(WaitingHandler waitingHandler, SearchParameters searchParameters, SequenceMatchingPreferences sequenceMatchingPreferences, boolean expandAaCombinations) throws IOException, IllegalArgumentException, SQLException, ClassNotFoundException, InterruptedException, JAXBException
IdfileReadergetAllSpectrumMatches in interface IdfileReaderwaitingHandler - 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 occursIllegalArgumentException - if an IllegalArgumentException occursSQLException - if an SQLException occursClassNotFoundException - if an\ ClassNotFoundException occursInterruptedException - if an InterruptedException occursJAXBException - if a JAXBException occurspublic void close()
throws IOException
IdfileReaderclose in interface IdfileReaderIOException - if an IOException occurspublic HashMap<String,ArrayList<String>> getSoftwareVersions()
IdfileReadergetSoftwareVersions in interface IdfileReaderpublic HashMap<String,LinkedList<SpectrumMatch>> getTagsMap()
IdfileReadergetTagsMap in interface IdfileReaderpublic void clearTagsMap()
IdfileReaderclearTagsMap in interface IdfileReaderpublic boolean hasDeNovoTags()
IdfileReaderhasDeNovoTags in interface IdfileReaderCopyright © 2016. All rights reserved.