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 Details

  • 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 interest
      identificationCharge - the charge of the identification
      precursor - the precursor of this peptide
      ppm - indicates whether the ms1 error is in ppm
      minIsotope - the minimal isotope
      maxIsotope - the maximal isotope
      Returns:
      the score of the match