Class SnrScore
java.lang.Object
com.compomics.util.experiment.identification.psm_scoring.psm_scores.SnrScore
This score uses the intensity distribution of the peaks to evaluate an SNR
score.
- Author:
- Marc Vaudel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the score.doubleReturns the score.doublegetScore(Peptide peptide, String spectrumFile, String spectrumTitle, Spectrum spectrum, AnnotationParameters annotationSettings, SpecificAnnotationParameters specificAnnotationSettings, PeptideSpectrumAnnotator peptideSpectrumAnnotator, ModificationParameters modificationParameters, SequenceProvider sequenceProvider, SequenceMatchingParameters modificationSequenceMatchingParameters) Returns the score.
-
Constructor Details
-
SnrScore
public SnrScore()Constructor.
-
-
Method Details
-
getScore
public double getScore(Peptide peptide, String spectrumFile, String spectrumTitle, Spectrum spectrum, AnnotationParameters annotationSettings, SpecificAnnotationParameters specificAnnotationSettings, PeptideSpectrumAnnotator peptideSpectrumAnnotator, ModificationParameters modificationParameters, SequenceProvider sequenceProvider, SequenceMatchingParameters modificationSequenceMatchingParameters) Returns the score.- Parameters:
peptide- the peptide of interestspectrumFile- the file of the spectrumspectrumTitle- the title of the spectrumspectrum- the spectrum of interestannotationSettings- the general spectrum annotation settingsspecificAnnotationSettings- the annotation settings specific to this PSMpeptideSpectrumAnnotator- the spectrum annotator to usemodificationParameters- the modification parameterssequenceProvider- a provider for the protein sequencesmodificationSequenceMatchingParameters- the sequence matching preferences for modification to peptide mapping- Returns:
- the score of the match
-
getScore
Returns the score.- Parameters:
peptide- the peptide of interestspectrum- the spectrum of interestionMatchesList- the ion matches obtained from spectrum annotation- Returns:
- the score of the match
-
getScore
public double getScore(Peptide peptide, Spectrum spectrum, HashMap<Double, ArrayList<IonMatch>> ionMatches) Returns the score.- Parameters:
peptide- the peptide of interestspectrum- the spectrum of interestionMatches- the ion matches obtained from spectrum annotation indexed by mz- Returns:
- the score of the match
-