Package eu.isas.peptideshaker.utils
Class StarHider
java.lang.Object
eu.isas.peptideshaker.utils.StarHider
This class provides information whether a hit should be hidden or starred.
- Author:
- Marc Vaudel, Harald Barsnes
-
Constructor Summary
ConstructorsConstructorDescriptionStarHider(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.gui.filtering.FilterParameters filterParameters, com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider, com.compomics.util.experiment.io.biology.protein.ProteinDetailsProvider proteinDetailsProvider, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, com.compomics.util.experiment.biology.genes.GeneMaps geneMaps, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, com.compomics.util.experiment.identification.peptide_shaker.Metrics metrics, com.compomics.util.gui.waiting.waitinghandlers.ProgressDialogX progressDialog, int nThreads, com.compomics.util.exceptions.ExceptionHandler exceptionHandler) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidhidePeptide(long matchKey) Hides a peptide match.voidhideProtein(long matchKey) Hides a protein match.voidhidePsm(long matchKey) Hides a PSM match.booleanisPeptideHidden(long matchKey) Tests whether a peptide match should be hidden according to the implemented filters.booleanisPeptideStarred(long matchKey) Tests whether a peptide match should be starred according to the implemented filters.booleanisProteinHidden(long matchKey) Tests whether a protein match should be hidden according to the implemented filters.booleanisProteinStarred(long matchKey) Tests whether a protein match should be starred according to the implemented filters.booleanisPsmHidden(long matchKey) Tests whether a PSM match should be hidden according to the implemented filters.booleanisPsmStarred(long matchKey) Tests whether a PSM match should be starred according to the implemented filters.voidstarHide()Updates the star/hide status of all identification items.voidstarPeptide(long matchKey) Stars a peptide match.voidstarProtein(long matchKey) Stars a protein match.voidstarPsm(long matchKey) Stars a PSM match.voidunHidePeptide(long matchKey) Unhides a peptide match.voidunHideProtein(long matchKey) Unhides a protein match.voidunHidePsm(long matchKey) Unhides a psm match.voidunStarPeptide(long matchKey) Unstars a peptide match.voidunStarProtein(long matchKey) Unstars a protein match.voidunStarPsm(long matchKey) Unstars a PSM match.
-
Constructor Details
-
StarHider
public StarHider(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.gui.filtering.FilterParameters filterParameters, com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider, com.compomics.util.experiment.io.biology.protein.ProteinDetailsProvider proteinDetailsProvider, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, com.compomics.util.experiment.biology.genes.GeneMaps geneMaps, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, com.compomics.util.experiment.identification.peptide_shaker.Metrics metrics, com.compomics.util.gui.waiting.waitinghandlers.ProgressDialogX progressDialog, int nThreads, com.compomics.util.exceptions.ExceptionHandler exceptionHandler) Constructor.- Parameters:
identification- The identification.filterParameters- The filter parameters.sequenceProvider- The sequence provider.proteinDetailsProvider- The protein details provider.spectrumProvider- The spectrum provider.geneMaps- The gene maps.identificationFeaturesGenerator- The identification features generator.identificationParameters- The identification parameters.metrics- The metrics.progressDialog- The progress dialog.nThreads- The number of threads.exceptionHandler- The exception handler.
-
-
Method Details
-
starHide
public void starHide()Updates the star/hide status of all identification items. -
starProtein
public void starProtein(long matchKey) Stars a protein match.- Parameters:
matchKey- the key of the match
-
unStarProtein
public void unStarProtein(long matchKey) Unstars a protein match.- Parameters:
matchKey- the key of the match
-
hideProtein
public void hideProtein(long matchKey) Hides a protein match.- Parameters:
matchKey- the key of the match
-
unHideProtein
public void unHideProtein(long matchKey) Unhides a protein match.- Parameters:
matchKey- the key of the match
-
starPeptide
public void starPeptide(long matchKey) Stars a peptide match.- Parameters:
matchKey- the key of the match
-
unStarPeptide
public void unStarPeptide(long matchKey) Unstars a peptide match.- Parameters:
matchKey- the key of the match
-
hidePeptide
public void hidePeptide(long matchKey) Hides a peptide match.- Parameters:
matchKey- the key of the match
-
unHidePeptide
public void unHidePeptide(long matchKey) Unhides a peptide match.- Parameters:
matchKey- the key of the match
-
starPsm
public void starPsm(long matchKey) Stars a PSM match.- Parameters:
matchKey- the key of the match
-
unStarPsm
public void unStarPsm(long matchKey) Unstars a PSM match.- Parameters:
matchKey- the key of the match
-
hidePsm
public void hidePsm(long matchKey) Hides a PSM match.- Parameters:
matchKey- the key of the match
-
unHidePsm
public void unHidePsm(long matchKey) Unhides a psm match.- Parameters:
matchKey- the key of the match
-
isProteinHidden
public boolean isProteinHidden(long matchKey) Tests whether a protein match should be hidden according to the implemented filters.- Parameters:
matchKey- the key of the match- Returns:
- a boolean indicating whether a protein match should be hidden according to the implemented filters
-
isPeptideHidden
public boolean isPeptideHidden(long matchKey) Tests whether a peptide match should be hidden according to the implemented filters.- Parameters:
matchKey- the key of the match- Returns:
- a boolean indicating whether a protein match should be hidden according to the implemented filters
-
isPsmHidden
public boolean isPsmHidden(long matchKey) Tests whether a PSM match should be hidden according to the implemented filters.- Parameters:
matchKey- the key of the match- Returns:
- a boolean indicating whether a protein match should be hidden according to the implemented filters
-
isProteinStarred
public boolean isProteinStarred(long matchKey) Tests whether a protein match should be starred according to the implemented filters.- Parameters:
matchKey- the key of the match- Returns:
- a boolean indicating whether a protein match should be hidden according to the implemented filters
-
isPeptideStarred
public boolean isPeptideStarred(long matchKey) Tests whether a peptide match should be starred according to the implemented filters.- Parameters:
matchKey- the key of the match- Returns:
- a boolean indicating whether a protein match should be hidden according to the implemented filters
-
isPsmStarred
public boolean isPsmStarred(long matchKey) Tests whether a PSM match should be starred according to the implemented filters.- Parameters:
matchKey- the key of the match- Returns:
- a boolean indicating whether a protein match should be hidden according to the implemented filters
-