java.lang.Object
com.compomics.util.experiment.identification.spectrum_annotation.simple_annotators.PrecursorAnnotator

public class PrecursorAnnotator
extends Object
Annotator for the precursor peaks.
Author:
Marc Vaudel
  • Constructor Details

    • PrecursorAnnotator

      public PrecursorAnnotator()
      Empty default constructor
    • PrecursorAnnotator

      public PrecursorAnnotator​(Peptide peptide, String[] fixedModifications)
      Constructor. Fixed modifications must be indexed as provided by the peptide class.
      Parameters:
      peptide - the peptide of interest.
      fixedModifications - the fixed modifications
  • Method Details

    • getIonMatches

      public ArrayList<IonMatch> getIonMatches​(SpectrumIndex spectrumIndex, int peptideCharge, int isotopeMax)
      Returns the ions matched in the given spectrum at the given charge.
      Parameters:
      spectrumIndex - the index of the spectrum
      peptideCharge - the charge of the peptide
      isotopeMax - the maximal isotopic value to annotate (inclusive)
      Returns:
      the ions matched in the given spectrum at the given charge