public class TagSpectrumAnnotator extends SpectrumAnnotator
fragmentFactory, intensityLimit, isPpm, massShift, massShiftCTerm, massShiftNTerm, mzTolerance, precursorCharge, spectrumAnnotation, subtractIsotope, theoreticalFragmentIons, unmatchedIons| Constructor and Description |
|---|
TagSpectrumAnnotator() |
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<IonMatch> |
getCurrentAnnotation(MSnSpectrum spectrum,
java.util.HashMap<Ion.IonType,java.util.ArrayList<java.lang.Integer>> iontypes,
NeutralLossesMap neutralLosses,
java.util.ArrayList<java.lang.Integer> charges)
Returns the currently matched ions with the given settings.
|
static NeutralLossesMap |
getDefaultLosses(Tag tag,
AminoAcidPattern.MatchingType matchingType,
double mzTolerance)
Returns the possible neutral losses expected by default for a given
peptide.
|
java.util.ArrayList<IonMatch> |
getSpectrumAnnotation(java.util.HashMap<Ion.IonType,java.util.ArrayList<java.lang.Integer>> iontypes,
NeutralLossesMap neutralLosses,
java.util.ArrayList<java.lang.Integer> charges,
int precursorCharge,
MSnSpectrum spectrum,
Tag tag,
double intensityLimit,
double mzTolerance,
boolean isPpm)
Returns the spectrum annotations of a spectrum in a list of IonMatches.
|
Tag |
getTag()
Returns the tag to annotate.
|
void |
setTag(Tag newTag,
int precursorCharge)
Sets a new peptide to match.
|
chargeValidated, getCurrentlyLoadedSpectrumKey, getDefaultLosses, getExpectedIons, getMassShift, getMassShiftCTerm, getMassShiftNTerm, getSpectrumAnnotation, isAccounted, lossesValidated, matchInSpectrum, matchPeak, matchReporterIon, setMassShift, setMassShifts, setMassTolerance, setSpectrum, setTerminalMassShiftspublic Tag getTag()
public void setTag(Tag newTag, int precursorCharge)
newTag - the new peptideprecursorCharge - the new precursor chargepublic static NeutralLossesMap getDefaultLosses(Tag tag, AminoAcidPattern.MatchingType matchingType, double mzTolerance) throws java.io.IOException, java.lang.IllegalArgumentException, java.lang.InterruptedException, java.io.FileNotFoundException, java.lang.ClassNotFoundException
tag - the tag of interestmatchingType - the matching type to map ptms on the peptide sequencemzTolerance - the ms2 m/z tolerance to usejava.io.IOExceptionjava.lang.IllegalArgumentExceptionjava.lang.InterruptedExceptionjava.io.FileNotFoundExceptionjava.lang.ClassNotFoundExceptionpublic java.util.ArrayList<IonMatch> getSpectrumAnnotation(java.util.HashMap<Ion.IonType,java.util.ArrayList<java.lang.Integer>> iontypes, NeutralLossesMap neutralLosses, java.util.ArrayList<java.lang.Integer> charges, int precursorCharge, MSnSpectrum spectrum, Tag tag, double intensityLimit, double mzTolerance, boolean isPpm)
iontypes - The expected ions to look forneutralLosses - Map of expected neutral losses: neutral loss ->
first position in the sequence (first aa is 1). let null if neutral
losses should not be considered.charges - List of expected chargesprecursorCharge - the precursor chargespectrum - The spectrum to matchtag - The tag of interestintensityLimit - The intensity limit to usemzTolerance - The m/z tolerance to useisPpm - a boolean indicating whether the mass tolerance is in ppm or
in Dapublic java.util.ArrayList<IonMatch> getCurrentAnnotation(MSnSpectrum spectrum, java.util.HashMap<Ion.IonType,java.util.ArrayList<java.lang.Integer>> iontypes, NeutralLossesMap neutralLosses, java.util.ArrayList<java.lang.Integer> charges)
SpectrumAnnotatorgetCurrentAnnotation in class SpectrumAnnotatorspectrum - the spectrum of interestiontypes - The expected fragment ions to look forneutralLosses - Map of expected neutral losses: neutral loss ->
first position in the sequence (first aa is 1). let null if neutral
losses should not be considered.charges - List of expected chargesCopyright © 2014. All Rights Reserved.