public abstract class SpecificTargetDecoyMap extends com.compomics.util.experiment.personalization.ExperimentObject implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<Integer,HashSet<String>> |
fileSpecificGrouping
Map used to group keys together per file.
|
protected HashMap<Integer,HashMap<String,TargetDecoyMap>> |
fileSpecificMaps
The map of the target decoy maps indexed by file and category.
|
protected HashMap<Integer,TargetDecoyMap> |
groupedMaps
The map of the target decoy maps indexed by category.
|
protected HashMap<Integer,Integer> |
grouping
Map used to group keys together in the grouped maps.
|
| Constructor and Description |
|---|
SpecificTargetDecoyMap()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPoint(String fileName,
int category,
double score,
boolean decoy)
Adds a point representing the corresponding spectrum match at a given
score.
|
abstract void |
clean(double minimalFDR)
Handles sparse maps.
|
void |
estimateProbabilities(com.compomics.util.waiting.WaitingHandler waitingHandler)
Estimate the posterior error probabilities of the PSMs.
|
Set<Integer> |
getCategoriesFromGroupedFiles()
Returns a list of categories from grouped files.
|
HashMap<Integer,ArrayList<Integer>> |
getChargeGroupingMap()
Returns the map of grouped categories indexed by representative category.
|
int |
getCorrectedCharge(int category)
For grouped files, returns the reference category of the group.
|
TreeSet<String> |
getFilesAtCategory(int category)
Returns the files at the given category, an empty list if not found.
|
int[] |
getGroupedCategories()
Returns a list of grouped categories from grouped files.
|
int |
getMapsSize()
Returns the overall number of points across all maps.
|
Set<Integer> |
getPossibleCategories()
Returns the categories found in the map
|
double |
getProbability(String file,
int category,
double score)
Returns the probability of the given spectrum match at the given score.
|
TargetDecoyMap |
getTargetDecoyMap(int category,
String spectrumFile)
Returns the desired target decoy map.
|
ArrayList<TargetDecoyMap> |
getTargetDecoyMaps()
Returns a list of the target decoy maps used for scoring.
|
boolean |
isFileGrouped(int category,
String fileName)
Indicates whether the given file was grouped for the given category.
|
protected final HashMap<Integer,HashMap<String,TargetDecoyMap>> fileSpecificMaps
protected final HashMap<Integer,HashSet<String>> fileSpecificGrouping
protected final HashMap<Integer,TargetDecoyMap> groupedMaps
public void estimateProbabilities(com.compomics.util.waiting.WaitingHandler waitingHandler)
waitingHandler - the handler displaying feedback to the userpublic double getProbability(String file, int category, double score)
file - the file scoredcategory - the category scoredscore - the corresponding scorepublic void addPoint(String fileName, int category, double score, boolean decoy)
fileName - the name of the spectrum filecategory - the category of the matchscore - the scoredecoy - whether the match is target or decoypublic abstract void clean(double minimalFDR)
minimalFDR - the minimal FDR which should be achievablepublic TargetDecoyMap getTargetDecoyMap(int category, String spectrumFile)
category - the identified category of the PSMspectrumFile - the name of the spectrum filepublic boolean isFileGrouped(int category,
String fileName)
category - the category of interestfileName - the name of the filepublic int getCorrectedCharge(int category)
category - the category of the matchpublic Set<Integer> getPossibleCategories()
public Set<Integer> getCategoriesFromGroupedFiles()
public int[] getGroupedCategories()
public HashMap<Integer,ArrayList<Integer>> getChargeGroupingMap()
public TreeSet<String> getFilesAtCategory(int category)
category - the category of interestpublic int getMapsSize()
public ArrayList<TargetDecoyMap> getTargetDecoyMaps()
Copyright © 2021. All rights reserved.