public class InputMap extends Object implements Serializable
| Constructor and Description |
|---|
InputMap()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAdvocateContribution(int advocateId,
String fileName,
boolean unique)
Adds an advocate contribution.
|
void |
addEntry(int searchEngine,
String spectrumFileName,
double eValue,
boolean isDecoy)
Adds an entry to the input map.
|
void |
addPeptideShakerHit(String fileName,
boolean unique)
Adds a PeptideShaker hit for the given file.
|
void |
estimateProbabilities(com.compomics.util.waiting.WaitingHandler waitingHandler)
Estimates the posterior error probability for each search engine.
|
int |
getAdvocateContribution(int advocateId)
Returns the contribution of validated hits of the given advocate for the
entire dataset.
|
int |
getAdvocateContribution(int advocateId,
String fileName)
Returns the contribution of validated hits of the given advocate for the
given file.
|
int |
getAdvocateUniqueContribution(int advocateId)
Returns the contribution of unique validated hits of the given advocate
for the entire dataset.
|
int |
getAdvocateUniqueContribution(int advocateId,
String fileName)
Returns the contribution of unique validated hits of the given advocate
for the given file.
|
Set<Integer> |
getInputAlgorithms()
Returns a set containing the indexes of the algorithms scored in this
input map.
|
TreeSet<Integer> |
getInputAlgorithmsSorted()
Returns the indexes of the algorithms scored in this input map.
|
Set<Integer> |
getIntermediateScoreInputAlgorithms(String fileName)
Returns the algorithms having an intermediate score for the given
spectrum file.
|
TargetDecoyMap |
getIntermediateScoreMap(String fileName,
int advocateIndex,
int scoreIndex)
Returns the target decoy map associated to a given spectrum file,
advocate and score type.
|
TargetDecoyMap |
getMap()
Returns the first target/decoy map of the input map in case a single
algorithm was used.
|
int |
getNalgorithms()
Returns the number of algorithms in the input map.
|
int |
getNEntries()
Returns the number of entries in the input map.
|
int |
getNEntriesSpecific()
Returns the number of entries in the specific input map.
|
int |
getPeptideShakerHits()
Returns the number of PeptideShaker validated hits for the entire
dataset.
|
int |
getPeptideShakerHits(String fileName)
Returns the number of validated hits for the given file.
|
int |
getPeptideShakerUniqueContribution()
Returns the contribution of unique validated hits by PeptideShaker for
the entire dataset.
|
int |
getPeptideShakerUniqueContribution(String fileName)
Returns the contribution of unique validated hits from PeptideShaker for
the given file.
|
double |
getProbability(int searchEngine,
double eValue)
returns the posterior error probability associated to the given e-value
for the given search-engine (indexed by its utilities index)
|
TargetDecoyMap |
getTargetDecoyMap(int algorithm)
Returns the target decoy map attached to the given algorithm.
|
TargetDecoyMap |
getTargetDecoyMap(int algorithm,
String fileName)
Returns the target decoy map attached to the given algorithm for a
specific spectrum file.
|
ArrayList<TargetDecoyMap> |
getTargetDecoyMaps()
Returns a list of all target decoy maps contained in this mapping.
|
boolean |
hasAdvocateContribution()
Indicates whether the advocate contributions are present in this map.
|
boolean |
isMultipleAlgorithms()
Returns true for multiple search engines investigations.
|
void |
resetAdvocateContributions()
Resets the advocate contribution mappings.
|
void |
resetAdvocateContributions(String fileName)
Resets the advocate contribution mappings for the given file.
|
void |
setIntermediateScore(String fileName,
int advocateIndex,
int scoreIndex,
double score,
boolean decoy,
com.compomics.util.parameters.identification.advanced.PsmScoringParameters psmScoringPreferences)
Adds an intermediate score for a given match.
|
public boolean isMultipleAlgorithms()
public int getNalgorithms()
public Set<Integer> getInputAlgorithms()
public TreeSet<Integer> getInputAlgorithmsSorted()
public Set<Integer> getIntermediateScoreInputAlgorithms(String fileName)
fileName - the name of the spectrum file of interestpublic TargetDecoyMap getTargetDecoyMap(int algorithm)
algorithm - the utilities index of the algorithm of interestpublic TargetDecoyMap getTargetDecoyMap(int algorithm, String fileName)
algorithm - the utilities index of the algorithm of interestfileName - the name of the spectrum file of interestpublic TargetDecoyMap getMap()
public void estimateProbabilities(com.compomics.util.waiting.WaitingHandler waitingHandler)
waitingHandler - the handler displaying feedback to the userpublic double getProbability(int searchEngine,
double eValue)
searchEngine - The search engineeValue - The e-valuepublic void addEntry(int searchEngine,
String spectrumFileName,
double eValue,
boolean isDecoy)
searchEngine - The search engine used referenced by its compomics
indexspectrumFileName - the name of the inspected spectrum fileeValue - The search engine e-valueisDecoy - boolean indicating whether the hit was decoypublic int getNEntries()
public int getNEntriesSpecific()
public void resetAdvocateContributions(String fileName)
fileName - the file of interestpublic void resetAdvocateContributions()
public void addAdvocateContribution(int advocateId,
String fileName,
boolean unique)
advocateId - the index of the advocatefileName - the name of the spectrum file of interestunique - boolean indicating whether the advocate was the only
advocate for the considered assumptionpublic void addPeptideShakerHit(String fileName, boolean unique)
fileName - the name of the spectrum file of interestunique - boolean indicating whether the advocate was the only
advocate for the considered assumptionpublic int getAdvocateContribution(int advocateId,
String fileName)
advocateId - the advocate indexfileName - the name of the spectrum filepublic int getPeptideShakerHits(String fileName)
fileName - the name of the spectrum filepublic int getAdvocateContribution(int advocateId)
advocateId - the advocate indexpublic int getPeptideShakerHits()
public int getAdvocateUniqueContribution(int advocateId,
String fileName)
advocateId - the advocate indexfileName - the name of the spectrum filepublic int getPeptideShakerUniqueContribution(String fileName)
fileName - the name of the spectrum filepublic int getAdvocateUniqueContribution(int advocateId)
advocateId - the advocate indexpublic int getPeptideShakerUniqueContribution()
public ArrayList<TargetDecoyMap> getTargetDecoyMaps()
public boolean hasAdvocateContribution()
public void setIntermediateScore(String fileName, int advocateIndex, int scoreIndex, double score, boolean decoy, com.compomics.util.parameters.identification.advanced.PsmScoringParameters psmScoringPreferences)
fileName - the name of the spectrum file of interestadvocateIndex - the index of the advocatescoreIndex - the index of the scorescore - the score of the matchdecoy - indicates whether the match maps to a target or a decoy
proteinpsmScoringPreferences - the psm scoring preferencespublic TargetDecoyMap getIntermediateScoreMap(String fileName, int advocateIndex, int scoreIndex)
fileName - the name of the spectrum fileadvocateIndex - the index of the advocatescoreIndex - the index of the scoreCopyright © 2021. All rights reserved.