public class TargetDecoyMap
extends com.compomics.util.experiment.personalization.ExperimentObject
| Constructor and Description |
|---|
TargetDecoyMap()
Constructor.
|
TargetDecoyMap(Integer minDecoysInBin)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(TargetDecoyMap anOtherMap)
Adds all the points from another target/decoy map.
|
void |
cleanUp()
Removes empty points and clears dependent metrics if needed.
|
TargetDecoyPoint |
createTargetDecoyPoint(double score)
Creates the target decoy point of the map at the given score if no other
thread has done it before.
|
void |
estimateProbabilities(com.compomics.util.waiting.WaitingHandler waitingHandler)
Estimates the posterior error probabilities in this map.
|
int |
getMapSize()
Returns the size of the map.
|
double |
getMinFdr()
Returns the minimal FDR which can be achieved in this dataset.
|
int |
getNDecoy(double score)
Returns the number of decoy hits found at the given score.
|
int |
getnMax()
Returns the Nmax metric.
|
int |
getNTarget(double score)
Returns the number of target hits found at the given score.
|
Integer |
getnTargetOnly()
Returns the number of target hits before the first decoy hit.
|
double |
getProbability(double score)
Returns the posterior error probability estimated at the given score.
|
double |
getResolution()
Returns the minimal detectable PEP variation in percent.
|
ArrayList<Double> |
getScores()
Returns the sorted scores implemented in this map.
|
TargetDecoyResults |
getTargetDecoyResults()
Returns the current target decoy results.
|
TargetDecoySeries |
getTargetDecoySeries()
Returns the target decoy series.
|
int |
getWindowSize()
Returns the window size used for pep estimation.
|
void |
put(double score,
boolean isDecoy)
Puts a new point in the target/decoy map at the given score.
|
void |
remove(double score,
boolean isDecoy)
Removes a point in the target/decoy map at the given score.
|
void |
setWindowSize(int windowSize)
Sets the window size used for pep estimation.
|
boolean |
suspiciousInput(double initialFDR)
Returns a boolean indicating if a suspicious input was detected.
|
public TargetDecoyMap()
public TargetDecoyMap(Integer minDecoysInBin)
minDecoysInBin - the number of decoy matches to include in the first
bin to set the bin sizepublic double getProbability(double score)
score - the given scorepublic int getNTarget(double score)
score - the given scorepublic int getNDecoy(double score)
score - the given scorepublic void put(double score,
boolean isDecoy)
score - The given scoreisDecoy - boolean indicating whether the hit is decoypublic TargetDecoyPoint createTargetDecoyPoint(double score)
score - the score of interestpublic void remove(double score,
boolean isDecoy)
score - the given scoreisDecoy - boolean indicating whether the hit is decoypublic void cleanUp()
public void estimateProbabilities(com.compomics.util.waiting.WaitingHandler waitingHandler)
waitingHandler - the handler displaying feedback to the userpublic int getnMax()
public double getMinFdr()
public double getResolution()
public Integer getnTargetOnly()
public ArrayList<Double> getScores()
public void addAll(TargetDecoyMap anOtherMap)
anOtherMap - another target/decoy mappublic boolean suspiciousInput(double initialFDR)
initialFDR - the minimal FDR requested for a grouppublic TargetDecoyResults getTargetDecoyResults()
public TargetDecoySeries getTargetDecoySeries()
public int getWindowSize()
public void setWindowSize(int windowSize)
windowSize - the window size used for pep estimationpublic int getMapSize()
Copyright © 2021. All rights reserved.