public class PeptideSpectrumAnnotator extends SpectrumAnnotator
fragmentFactory, intensityLimit, ionMatchKeysCache, isPpm, massShift, massShiftCTerm, massShiftNTerm, maxIsotopicCorrection, minIsotopicCorrection, mzTolerance, pickMostAccuratePeak, precursorCharge, specificAnnotationSettings, spectrumAnnotation, subtractIsotope, theoreticalFragmentIons, unmatchedIons
Constructor and Description |
---|
PeptideSpectrumAnnotator()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
HashMap<Integer,ArrayList<IonMatch>> |
getCoveredAminoAcids(AnnotationSettings annotationSettings,
SpecificAnnotationSettings specificAnnotationSettings,
MSnSpectrum spectrum,
Peptide peptide)
Returns the ion matches corresponding to fragment ions indexed by amino
acid number in the sequence.
|
ArrayList<IonMatch> |
getCurrentAnnotation(MSnSpectrum spectrum,
AnnotationSettings annotationSettings,
SpecificAnnotationSettings specificAnnotationSettings)
Returns the currently matched ions with the given settings.
|
Peptide |
getCurrentlyLoadedPeptide()
Returns the currently inspected peptide.
|
static NeutralLossesMap |
getDefaultLosses(Peptide peptide,
SequenceMatchingPreferences sequenceMatchingSettings,
SequenceMatchingPreferences ptmSequenceMatchingSettings)
Returns the possible neutral losses expected by default for a given
peptide.
|
HashMap<Integer,ArrayList<Ion>> |
getExpectedIons(SpecificAnnotationSettings specificAnnotationSettings,
Peptide peptide)
Returns the expected ions in a map indexed by the possible charges.
|
HashMap<Integer,ArrayList<Ion>> |
getExpectedIons(SpecificAnnotationSettings specificAnnotationSettings,
Peptide peptide,
HashMap<Integer,HashMap<Integer,ArrayList<Ion>>> possibleFragmentIons)
Returns the expected ions in a map indexed by the possible charges.
|
ArrayList<IonMatch> |
getSpectrumAnnotation(AnnotationSettings annotationSettings,
SpecificAnnotationSettings specificAnnotationSettings,
MSnSpectrum spectrum,
Peptide peptide)
Returns the spectrum annotations of a spectrum in a list of IonMatches.
|
ArrayList<IonMatch> |
getSpectrumAnnotation(AnnotationSettings annotationSettings,
SpecificAnnotationSettings specificAnnotationSettings,
MSnSpectrum spectrum,
Peptide peptide,
HashMap<Integer,HashMap<Integer,ArrayList<Ion>>> possiblePeptideFragments)
Returns the spectrum annotations of a spectrum in a list of IonMatches.
|
ArrayList<IonMatch> |
matchPeak(Peptide peptide,
SpecificAnnotationSettings specificAnnotationSettings,
Peak peak)
This method matches the potential fragment ions of a given peptide with a
given peak according to the annotation settings.
|
void |
setPeptide(Peptide peptide,
HashMap<Integer,HashMap<Integer,ArrayList<Ion>>> possibleFragmentIons,
int precursorCharge,
SpecificAnnotationSettings specificAnnotationSettings)
Sets a new peptide to match.
|
void |
setPeptide(Peptide peptide,
int precursorCharge,
SpecificAnnotationSettings specificAnnotationSettings)
Sets a new peptide to match.
|
chargeValidated, getCurrentlyLoadedSpectrumKey, getDefaultLosses, getExpectedIons, getMassShift, getMassShiftCTerm, getMassShiftNTerm, getSpectrumAnnotation, isAccounted, lossesValidated, matchInSpectrum, matchPeak, matchReporterIon, setMassShift, setMassShifts, setMassTolerance, setSpectrum, setTerminalMassShifts, updateMassShifts
public void setPeptide(Peptide peptide, int precursorCharge, SpecificAnnotationSettings specificAnnotationSettings)
peptide
- the new peptideprecursorCharge
- the new precursor chargespecificAnnotationSettings
- if provided, only the ions detectable
using these settings will be selectedpublic void setPeptide(Peptide peptide, HashMap<Integer,HashMap<Integer,ArrayList<Ion>>> possibleFragmentIons, int precursorCharge, SpecificAnnotationSettings specificAnnotationSettings)
peptide
- the new peptidepossibleFragmentIons
- the possible fragment ions of the peptideprecursorCharge
- the new precursor chargespecificAnnotationSettings
- if provided, only the ions detectable
using these settings will be selectedpublic ArrayList<IonMatch> matchPeak(Peptide peptide, SpecificAnnotationSettings specificAnnotationSettings, Peak peak)
peptide
- the peptidespecificAnnotationSettings
- the specific annotation settingspeak
- the peak to matchpublic ArrayList<IonMatch> getSpectrumAnnotation(AnnotationSettings annotationSettings, SpecificAnnotationSettings specificAnnotationSettings, MSnSpectrum spectrum, Peptide peptide)
annotationSettings
- the annotation settingsspecificAnnotationSettings
- the specific annotation settingsspectrum
- the spectrum to matchpeptide
- the peptide of interestpublic ArrayList<IonMatch> getSpectrumAnnotation(AnnotationSettings annotationSettings, SpecificAnnotationSettings specificAnnotationSettings, MSnSpectrum spectrum, Peptide peptide, HashMap<Integer,HashMap<Integer,ArrayList<Ion>>> possiblePeptideFragments)
annotationSettings
- the annotation settingsspecificAnnotationSettings
- the specific annotation settingsspectrum
- the spectrum to matchpeptide
- the peptide of interestpossiblePeptideFragments
- the possible peptide fragments for this peptidepublic HashMap<Integer,ArrayList<IonMatch>> getCoveredAminoAcids(AnnotationSettings annotationSettings, SpecificAnnotationSettings specificAnnotationSettings, MSnSpectrum spectrum, Peptide peptide)
annotationSettings
- the annotation settingsspecificAnnotationSettings
- the specific annotation settingsspectrum
- The spectrum to matchpeptide
- The peptide of interestpublic HashMap<Integer,ArrayList<Ion>> getExpectedIons(SpecificAnnotationSettings specificAnnotationSettings, Peptide peptide)
specificAnnotationSettings
- the specific annotation settingspeptide
- The peptide of interestpublic HashMap<Integer,ArrayList<Ion>> getExpectedIons(SpecificAnnotationSettings specificAnnotationSettings, Peptide peptide, HashMap<Integer,HashMap<Integer,ArrayList<Ion>>> possibleFragmentIons)
specificAnnotationSettings
- the specific annotation settingspeptide
- The peptide of interestpossibleFragmentIons
- the possible fragment ions for the given
peptidepublic ArrayList<IonMatch> getCurrentAnnotation(MSnSpectrum spectrum, AnnotationSettings annotationSettings, SpecificAnnotationSettings specificAnnotationSettings)
SpectrumAnnotator
getCurrentAnnotation
in class SpectrumAnnotator
spectrum
- the spectrum of interestannotationSettings
- the annotation settingsspecificAnnotationSettings
- the specific annotation settingspublic static NeutralLossesMap getDefaultLosses(Peptide peptide, SequenceMatchingPreferences sequenceMatchingSettings, SequenceMatchingPreferences ptmSequenceMatchingSettings) throws IOException, InterruptedException, ClassNotFoundException, SQLException
peptide
- the peptide of interestsequenceMatchingSettings
- the sequence matching settings for
peptide to protein mappingptmSequenceMatchingSettings
- the sequence matching settings for PTM
to peptide mappingIOException
- exception thrown whenever an error occurred while
interacting with a file while mapping potential modification sitesInterruptedException
- exception thrown whenever a threading issue
occurred while mapping potential modification sitesClassNotFoundException
- exception thrown whenever an error
occurred while deserializing an object from the ProteinTreeSQLException
- exception thrown whenever an error occurred while
interacting with the ProteinTreepublic Peptide getCurrentlyLoadedPeptide()
Copyright © 2016. All rights reserved.