Package eu.isas.peptideshaker.validation
Class MatchesValidator
java.lang.Object
eu.isas.peptideshaker.validation.MatchesValidator
This class validates the quality of identification matches.
- Author:
- Marc Vaudel
-
Constructor Summary
ConstructorsConstructorDescriptionMatchesValidator(TargetDecoyMap psmMap, TargetDecoyMap peptideMap, TargetDecoyMap proteinMap) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidattachPeptideProbabilities(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.io.biology.protein.FastaParameters fastaParameters, com.compomics.util.waiting.WaitingHandler waitingHandler) Attaches the peptide posterior error probabilities to the peptide matches.voidattachProteinProbabilities(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider, com.compomics.util.experiment.io.biology.protein.FastaParameters fastaParameters, com.compomics.util.experiment.identification.peptide_shaker.Metrics metrics, com.compomics.util.waiting.WaitingHandler waitingHandler, com.compomics.util.parameters.identification.advanced.FractionParameters fractionParameters) Attaches the protein posterior error probability to the protein matches.voidfillPeptideMaps(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.identification.peptide_shaker.Metrics metrics, com.compomics.util.waiting.WaitingHandler waitingHandler, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider) Fills the peptide specific map.voidfillProteinMap(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, com.compomics.util.waiting.WaitingHandler waitingHandler) Fills the protein map.Returns the peptide scoring specific map.Returns the protein scoring map.Returns the PSM scoring specific map.static voidsetDefaultMatchesQCFilters(com.compomics.util.parameters.identification.advanced.ValidationQcParameters validationQCParameters) Sets the default matches quality control filters.voidsetPeptideMap(TargetDecoyMap peptideMap) Sets the peptide scoring specific map.voidsetProteinMap(TargetDecoyMap proteinMap) Sets the protein scoring map.voidsetPsmMap(TargetDecoyMap psmMap) Sets the PSM scoring specific map.static voidupdatePeptideAssumptionValidationLevel(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, 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.parameters.identification.IdentificationParameters identificationParameters, InputMap inputMap, long spectrumMatchKey, com.compomics.util.experiment.identification.spectrum_assumptions.PeptideAssumption peptideAssumption, boolean applyQCFilters) Updates the validation status of a peptide assumption.static voidupdatePeptideMatchValidationLevel(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, 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.parameters.identification.IdentificationParameters identificationParameters, TargetDecoyMap peptideMap, long peptideKey) Updates the validation status of a peptide match.static voidupdateProteinMatchValidationLevel(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, 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.parameters.identification.IdentificationParameters identificationParameters, TargetDecoyMap targetDecoyMap, double scoreThreshold, double nTargetLimit, double confidenceThreshold, boolean noValidated, long proteinKey) Updates the validation status of a protein match.static voidupdateProteinMatchValidationLevel(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, com.compomics.util.experiment.io.biology.protein.ProteinDetailsProvider proteinDetailsProvider, com.compomics.util.experiment.biology.genes.GeneMaps geneMaps, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, TargetDecoyMap proteinMap, long proteinKey) Updates the validation status of a protein match.static voidupdateSpectrumMatchValidationLevel(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, 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.parameters.identification.IdentificationParameters identificationParameters, TargetDecoyMap psmMap, long spectrumMatchKey, boolean applyQCFilters) Updates the validation status of a spectrum match.voidvalidateIdentifications(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.identification.peptide_shaker.Metrics metrics, InputMap inputMap, com.compomics.util.waiting.WaitingHandler waitingHandler, com.compomics.util.exceptions.ExceptionHandler exceptionHandler, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, 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.parameters.identification.IdentificationParameters identificationParameters, com.compomics.util.parameters.peptide_shaker.ProjectType projectType, com.compomics.util.parameters.tools.ProcessingParameters processingParameters) This method validates the identification matches of an identification object.
-
Constructor Details
-
MatchesValidator
public MatchesValidator(TargetDecoyMap psmMap, TargetDecoyMap peptideMap, TargetDecoyMap proteinMap) Constructor.- Parameters:
psmMap- the PSM target decoy mappeptideMap- the peptide target decoy mapproteinMap- the protein target decoy map
-
-
Method Details
-
validateIdentifications
public void validateIdentifications(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.identification.peptide_shaker.Metrics metrics, InputMap inputMap, com.compomics.util.waiting.WaitingHandler waitingHandler, com.compomics.util.exceptions.ExceptionHandler exceptionHandler, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, 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.parameters.identification.IdentificationParameters identificationParameters, com.compomics.util.parameters.peptide_shaker.ProjectType projectType, com.compomics.util.parameters.tools.ProcessingParameters processingParameters) throws InterruptedException, TimeoutException This method validates the identification matches of an identification object. Target Decoy thresholds must be set.- Parameters:
identification- The identification class containing the matches to validate.metrics- If provided, metrics on fractions will be saved while iterating the matches.inputMap- The target decoy map of all search engine scores.waitingHandler- The waiting handler displaying progress to the user and allowing canceling the process.exceptionHandler- The handler for exceptions.identificationFeaturesGenerator- The identification features generator computing information about the identification matches.sequenceProvider- The protein sequence provider.proteinDetailsProvider- The protein details provider.spectrumProvider- The spectrum provider.geneMaps- The gene maps.identificationParameters- The identification parameters.projectType- The project type.processingParameters- The processing parameters.- Throws:
InterruptedException- exception thrown if a thread gets interruptedTimeoutException- exception thrown if the operation times out
-
updateProteinMatchValidationLevel
public static void updateProteinMatchValidationLevel(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, com.compomics.util.experiment.io.biology.protein.ProteinDetailsProvider proteinDetailsProvider, com.compomics.util.experiment.biology.genes.GeneMaps geneMaps, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, TargetDecoyMap proteinMap, long proteinKey) Updates the validation status of a protein match. If the match was manually validated nothing will be changed.- Parameters:
identification- the identification objectidentificationFeaturesGenerator- the identification features generatorsequenceProvider- a protein sequence providerspectrumProvider- The spectrum provider.proteinDetailsProvider- a protein details providergeneMaps- the gene mapsidentificationParameters- the identification parametersproteinMap- the protein level target/decoy scoring mapproteinKey- the key of the protein match of interest
-
updateProteinMatchValidationLevel
public static void updateProteinMatchValidationLevel(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, 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.parameters.identification.IdentificationParameters identificationParameters, TargetDecoyMap targetDecoyMap, double scoreThreshold, double nTargetLimit, double confidenceThreshold, boolean noValidated, long proteinKey) Updates the validation status of a protein match. If the match was manually validated nothing will be changed.- Parameters:
identification- the identification objectidentificationFeaturesGenerator- the identification features generatorsequenceProvider- a protein sequence providerproteinDetailsProvider- a protein details providerspectrumProvider- The spectrum provider.geneMaps- the gene mapsidentificationParameters- the identification parameterstargetDecoyMap- the protein level target/decoy mapscoreThreshold- the validation score doubtfulThresholdnTargetLimit- the limit in number of target hits before the first decoy hitconfidenceThreshold- the confidence doubtfulThreshold after which a match should be considered as confidentnoValidated- boolean indicating whether no validation was actually conductedproteinKey- the key of the protein match of interest
-
updatePeptideMatchValidationLevel
public static void updatePeptideMatchValidationLevel(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, 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.parameters.identification.IdentificationParameters identificationParameters, TargetDecoyMap peptideMap, long peptideKey) Updates the validation status of a peptide match. If the match was manually validated nothing will be changed.- Parameters:
identification- the identification objectidentificationFeaturesGenerator- the identification features generatorsequenceProvider- a protein sequence providerproteinDetailsProvider- a protein details providerspectrumProvider- The spectrum provider.geneMaps- the gene mapsidentificationParameters- the identification parameterspeptideMap- the peptide level target/decoy scoring mappeptideKey- the key of the peptide match of interest
-
updateSpectrumMatchValidationLevel
public static void updateSpectrumMatchValidationLevel(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, 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.parameters.identification.IdentificationParameters identificationParameters, TargetDecoyMap psmMap, long spectrumMatchKey, boolean applyQCFilters) Updates the validation status of a spectrum match. If the match was manually validated nothing will be changed.- Parameters:
identification- the identification objectidentificationFeaturesGenerator- the identification features generatorsequenceProvider- a protein sequence providerproteinDetailsProvider- a protein details providerspectrumProvider- The spectrum provider.geneMaps- the gene mapsidentificationParameters- the identification parameterspsmMap- the PSM level target/decoy scoring mapspectrumMatchKey- the key of the spectrum match of interestapplyQCFilters- if true quality control filters will be used
-
updatePeptideAssumptionValidationLevel
public static void updatePeptideAssumptionValidationLevel(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, 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.parameters.identification.IdentificationParameters identificationParameters, InputMap inputMap, long spectrumMatchKey, com.compomics.util.experiment.identification.spectrum_assumptions.PeptideAssumption peptideAssumption, boolean applyQCFilters) Updates the validation status of a peptide assumption. If the match was manually validated nothing will be changed.- Parameters:
identification- the identification object containing the match to filteridentificationFeaturesGenerator- the identification features generatorsequenceProvider- a protein sequence providerproteinDetailsProvider- a protein details providerspectrumProvider- The spectrum provider.identificationParameters- the identification parametersinputMap- the target decoy map of all search engine scoresspectrumMatchKey- the key of the spectrum match having this assumptionpeptideAssumption- the peptide assumption of interestapplyQCFilters- boolean indicating whether QC filters should be applied
-
fillPeptideMaps
public void fillPeptideMaps(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.identification.peptide_shaker.Metrics metrics, com.compomics.util.waiting.WaitingHandler waitingHandler, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider) Fills the peptide specific map.- Parameters:
identification- the identification class containing the matches to validatemetrics- if provided fraction information and found modifications will be saved while iterating the matcheswaitingHandler- the handler displaying feedback to the useridentificationParameters- the identification parameterssequenceProvider- the sequence providerspectrumProvider- The spectrum provider.
-
attachPeptideProbabilities
public void attachPeptideProbabilities(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.io.biology.protein.FastaParameters fastaParameters, com.compomics.util.waiting.WaitingHandler waitingHandler) Attaches the peptide posterior error probabilities to the peptide matches.- Parameters:
identification- the identification class containing the matches to validatefastaParameters- the FASTA file parameterswaitingHandler- the handler displaying feedback to the user
-
fillProteinMap
public void fillProteinMap(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, com.compomics.util.waiting.WaitingHandler waitingHandler) Fills the protein map.- Parameters:
identification- the identification class containing the matches to validatespectrumProvider- The spectrum provider.waitingHandler- the handler displaying feedback to the user
-
attachProteinProbabilities
public void attachProteinProbabilities(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider, com.compomics.util.experiment.io.biology.protein.FastaParameters fastaParameters, com.compomics.util.experiment.identification.peptide_shaker.Metrics metrics, com.compomics.util.waiting.WaitingHandler waitingHandler, com.compomics.util.parameters.identification.advanced.FractionParameters fractionParameters) Attaches the protein posterior error probability to the protein matches.- Parameters:
identification- the identification class containing the matches to validatesequenceProvider- the sequence providerfastaParameters- the FASTA file parametersmetrics- if provided fraction informationwaitingHandler- the handler displaying feedback to the userfractionParameters- the fraction parameters
-
getPsmMap
Returns the PSM scoring specific map.- Returns:
- the PSM scoring specific map
-
setPsmMap
Sets the PSM scoring specific map.- Parameters:
psmMap- the PSM scoring specific map
-
getPeptideMap
Returns the peptide scoring specific map.- Returns:
- the peptide scoring specific map
-
setPeptideMap
Sets the peptide scoring specific map.- Parameters:
peptideMap- the peptide scoring specific map
-
getProteinMap
Returns the protein scoring map.- Returns:
- the protein scoring map
-
setProteinMap
Sets the protein scoring map.- Parameters:
proteinMap- the protein scoring map
-
setDefaultMatchesQCFilters
public static void setDefaultMatchesQCFilters(com.compomics.util.parameters.identification.advanced.ValidationQcParameters validationQCParameters) Sets the default matches quality control filters.- Parameters:
validationQCParameters- the default matches quality control filters
-