Class SpecificTargetDecoyMap
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
eu.isas.peptideshaker.scoring.maps.SpecificTargetDecoyMap
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ModificationSpecificMap,SimpleSpecificMap
public abstract class SpecificTargetDecoyMap
extends com.compomics.util.experiment.personalization.ExperimentObject
implements Serializable
This stores target decoy maps grouped by file and category.
- Author:
- Marc Vaudel
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionMap used to group keys together per file.protected final HashMap<Integer, HashMap<String, TargetDecoyMap>> The map of the target decoy maps indexed by file and category.protected final HashMap<Integer, TargetDecoyMap> The map of the target decoy maps indexed by category.Map used to group keys together in the grouped maps.Fields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a point representing the corresponding spectrum match at a given score.abstract voidclean(double minimalFDR) Handles sparse maps.voidestimateProbabilities(com.compomics.util.waiting.WaitingHandler waitingHandler) Estimate the posterior error probabilities of the PSMs.Returns a list of categories from grouped files.Returns the map of grouped categories indexed by representative category.intgetCorrectedCharge(int category) For grouped files, returns the reference category of the group.getFilesAtCategory(int category) Returns the files at the given category, an empty list if not found.int[]Returns a list of grouped categories from grouped files.intReturns the overall number of points across all maps.Returns the categories found in the mapdoublegetProbability(String file, int category, double score) Returns the probability of the given spectrum match at the given score.getTargetDecoyMap(int category, String spectrumFile) Returns the desired target decoy map.Returns a list of the target decoy maps used for scoring.booleanisFileGrouped(int category, String fileName) Indicates whether the given file was grouped for the given category.Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Field Details
-
fileSpecificMaps
The map of the target decoy maps indexed by file and category. -
fileSpecificGrouping
Map used to group keys together per file. -
groupedMaps
The map of the target decoy maps indexed by category. -
grouping
Map used to group keys together in the grouped maps.
-
-
Constructor Details
-
SpecificTargetDecoyMap
public SpecificTargetDecoyMap()Constructor.
-
-
Method Details
-
estimateProbabilities
public void estimateProbabilities(com.compomics.util.waiting.WaitingHandler waitingHandler) Estimate the posterior error probabilities of the PSMs.- Parameters:
waitingHandler- the handler displaying feedback to the user
-
getProbability
Returns the probability of the given spectrum match at the given score.- Parameters:
file- the file scoredcategory- the category scoredscore- the corresponding score- Returns:
- the probability of the given spectrum match at the given score
-
addPoint
Adds a point representing the corresponding spectrum match at a given score.- Parameters:
fileName- the name of the spectrum filecategory- the category of the matchscore- the scoredecoy- whether the match is target or decoy
-
clean
public abstract void clean(double minimalFDR) Handles sparse maps.- Parameters:
minimalFDR- the minimal FDR which should be achievable
-
getTargetDecoyMap
Returns the desired target decoy map.- Parameters:
category- the identified category of the PSMspectrumFile- the name of the spectrum file- Returns:
- the corresponding target decoy map
-
isFileGrouped
Indicates whether the given file was grouped for the given category.- Parameters:
category- the category of interestfileName- the name of the file- Returns:
- a boolean indicating whether the given file was grouped for the given category
-
getCorrectedCharge
public int getCorrectedCharge(int category) For grouped files, returns the reference category of the group.- Parameters:
category- the category of the match- Returns:
- the category of the group for grouped files, the original category if not found
-
getPossibleCategories
Returns the categories found in the map- Returns:
- the categories found in the map
-
getCategoriesFromGroupedFiles
Returns a list of categories from grouped files.- Returns:
- a list of categories from grouped files
-
getGroupedCategories
public int[] getGroupedCategories()Returns a list of grouped categories from grouped files.- Returns:
- a list of grouped categories from grouped files
-
getChargeGroupingMap
Returns the map of grouped categories indexed by representative category.- Returns:
- the map of grouped categories indexed by representative category
-
getFilesAtCategory
Returns the files at the given category, an empty list if not found.- Parameters:
category- the category of interest- Returns:
- the files at the given category
-
getMapsSize
public int getMapsSize()Returns the overall number of points across all maps.- Returns:
- the overall number of points across all maps.
-
getTargetDecoyMaps
Returns a list of the target decoy maps used for scoring.- Returns:
- a list of the target decoy maps used for scoring
-