Class PrecursorAccuracy
java.lang.Object
com.compomics.util.experiment.identification.psm_scoring.psm_scores.PrecursorAccuracy
public class PrecursorAccuracy extends Object
The precursor accuracy as a score.
- Author:
- Marc Vaudel
-
Constructor Summary
Constructors Constructor Description PrecursorAccuracy()
Empty default constructor -
Method Summary
-
Constructor Details
-
PrecursorAccuracy
public PrecursorAccuracy()Empty default constructor
-
-
Method Details
-
getScore
public double getScore(Peptide peptide, int identificationCharge, Precursor precursor, boolean ppm, int minIsotope, int maxIsotope)Scores the match between the given peptide and spectrum using the precursor m/z accuracy.- Parameters:
peptide
- the peptide of interestidentificationCharge
- the charge of the identificationprecursor
- the precursor of this peptideppm
- indicates whether the ms1 error is in ppmminIsotope
- the minimal isotopemaxIsotope
- the maximal isotope- Returns:
- the score of the match
-