public class MsAmandaIdfileReader extends ExperimentObject implements IdfileReader
| Constructor and Description |
|---|
MsAmandaIdfileReader()
Default constructor for the purpose of instantiation.
|
MsAmandaIdfileReader(File msAmandaCsvFile)
Constructor for an MS Amanda csv result file reader.
|
MsAmandaIdfileReader(File msAmandaCsvFile,
WaitingHandler waitingHandler)
Constructor for an MS Amanda csv result file reader.
|
| 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.
|
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 MsAmandaIdfileReader()
public MsAmandaIdfileReader(File msAmandaCsvFile) throws FileNotFoundException, IOException
msAmandaCsvFile - FileNotFoundExceptionIOExceptionpublic MsAmandaIdfileReader(File msAmandaCsvFile, WaitingHandler waitingHandler) throws FileNotFoundException, IOException
msAmandaCsvFile - waitingHandler - FileNotFoundExceptionIOExceptionpublic String getExtension()
IdfileReadergetExtension in interface IdfileReaderpublic 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 void close()
throws IOException
IdfileReaderclose in interface IdfileReaderIOExceptionpublic HashMap<String,ArrayList<String>> getSoftwareVersions()
IdfileReadergetSoftwareVersions in interface IdfileReaderCopyright © 2014. All rights reserved.