Class PrecursorAnnotator
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 Summary
Constructors Constructor Description PrecursorAnnotator()
Empty default constructorPrecursorAnnotator(Peptide peptide, String[] fixedModifications)
Constructor. -
Method Summary
Modifier and Type Method Description ArrayList<IonMatch>
getIonMatches(SpectrumIndex spectrumIndex, int peptideCharge, int isotopeMax)
Returns the ions matched in the given spectrum at the given charge.
-
Constructor Details
-
PrecursorAnnotator
public PrecursorAnnotator()Empty default constructor -
PrecursorAnnotator
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 spectrumpeptideCharge
- the charge of the peptideisotopeMax
- the maximal isotopic value to annotate (inclusive)- Returns:
- the ions matched in the given spectrum at the given charge
-