public class DirecTagIdfileReader 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.
|
Constructor and Description |
---|
DirecTagIdfileReader()
Default constructor for the purpose of instantiation.
|
DirecTagIdfileReader(File tagFile)
Constructors, parses a file but does not index the results.
|
DirecTagIdfileReader(File tagFile,
boolean indexResults)
Constructors, parses a file.
|
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 |
getCopyRight()
Returns the copyright.
|
String |
getExtension()
Returns the extension of the file for which this IdfileReader can be
used.
|
File |
getInputFile()
Returns the spectrum file name as found in the parameters section.
|
String |
getLicense()
Returns the license information of this file.
|
Integer |
getnProcessingNode()
Returns the number of processing nodes used.
|
String |
getSoftware()
Returns the name of the software used to generate the identification
file, e.g.
|
String |
getSoftwareVersion()
Returns the version of the software used to generate the identification
file, e.g., 2.3.0 or Sledgehammer (2013.09.01.1).
|
String |
getSpectrumComponent(int spectrumId,
String componentName)
Returns a component in a spectrum line.
|
Set<String> |
getSpectrumComponentNames()
Returns all the spectrum components names found in the header.
|
Set<Integer> |
getSpectrumIds()
Returns all the spectrum IDs found.
|
Double |
getTaggingTimeSeconds()
Returns the tagging time in seconds as listed in the file.
|
String |
getTagParameter(String tagParameterName)
Returns the tagging parameter corresponding to a given parameter name.
|
String |
getTagsGenerator()
Returns the tags generator used to create the file.
|
String |
getTagsGeneratorVersion()
Returns the version of the tags generator used to create the file.
|
Set<String> |
getTagsParametersNames()
Returns the name of the different parameters names found.
|
String |
getTimeEnd()
Returns the ending time of the tagging as given in the file.
|
String |
getTimeStart()
Returns the starting time of the tagging as given in the file.
|
addUrParam, getParameterKey, getUrParam
public final double cTermCorrection
public final double nTermCorrection
public DirecTagIdfileReader()
public DirecTagIdfileReader(File tagFile) throws FileNotFoundException, IOException
tagFile
- the file to parseFileNotFoundException
IOException
public DirecTagIdfileReader(File tagFile, boolean indexResults) throws FileNotFoundException, IOException
tagFile
- the file to parseindexResults
- if true the results section will be indexedFileNotFoundException
IOException
public Set<String> getTagsParametersNames()
public String getTagParameter(String tagParameterName)
tagParameterName
- the name of the parameter of interestpublic String getSpectrumComponent(int spectrumId, String componentName) throws IOException
spectrumId
- the id of the spectrum of interestcomponentName
- the name of the component of interest according to
the headerIOException
public Set<Integer> getSpectrumIds()
public Set<String> getSpectrumComponentNames()
public HashSet<SpectrumMatch> getAllSpectrumMatches(WaitingHandler waitingHandler) throws IOException, IllegalArgumentException, Exception
IdfileReader
getAllSpectrumMatches
in interface IdfileReader
waitingHandler
- 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 getTagsGenerator()
public String getTagsGeneratorVersion()
public String getCopyRight()
public String getLicense()
public String getTimeStart()
public String getTimeEnd()
public Double getTaggingTimeSeconds()
public Integer getnProcessingNode()
public File getInputFile()
public String getExtension()
IdfileReader
getExtension
in interface IdfileReader
public void close() throws IOException
IdfileReader
close
in interface IdfileReader
IOException
public String getSoftwareVersion()
IdfileReader
getSoftwareVersion
in interface IdfileReader
public String getSoftware()
IdfileReader
getSoftware
in interface IdfileReader
Copyright © 2014. All rights reserved.