Class TagAssumption
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.identification.SpectrumIdentificationAssumption
com.compomics.util.experiment.identification.spectrum_assumptions.TagAssumption
- All Implemented Interfaces:
Serializable
This class represent a tag assumption made by an identification algorithm
based on a sequence tag.
- Author:
- Marc Vaudel
- See Also:
-
Field Summary
Fields inherited from class com.compomics.util.experiment.identification.SpectrumIdentificationAssumption
advocate, aminoAcidScores, identificationCharge, identificationFile, rank, rawScore, scoreFields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for en empty assumption.TagAssumption(int advocate, int rank, Tag tag, int identificationCharge, double rawScore, double score) Constructor.Note: if PsmScores.scoreRoundingDecimal is not null the scored will be floored accordingly. -
Method Summary
Modifier and TypeMethodDescriptiongetPossibleTags(boolean forwardIon, int minCharge, int maxCharge, int maxIsotope) Computes the possible tag assumptions which can be obtained from this one by accounting for other charges and isotopes.getTag()Returns the tag of this assumption.doubleReturns the theoretic mass of the given assumption.doublegetTheoreticMass(boolean includeCTermGap, boolean includeNTermGap) Returns the theoretic mass of the tag, eventually without terminal gaps.doublegetTheoreticMz(boolean includeCTermGap, boolean includeNTermGap) Returns the theoretic mass of the tag, eventually without terminal gaps.reverse(boolean yIon) Returns a new TagAssumption instance where the tag is a reversed version of this tag.voidtoString()Methods inherited from class com.compomics.util.experiment.identification.SpectrumIdentificationAssumption
getAdvocate, getAminoAcidScores, getDeltaMz, getIdentificationCharge, getIdentificationFile, getIsotopeNumber, getPrecursorMatch, getRank, getRawScore, getScore, getTheoreticMz, setAdvocate, setAminoAcidScores, setIdentificationCharge, setIdentificationFile, setRank, setRawScore, setScoreMethods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Constructor Details
-
TagAssumption
public TagAssumption()Constructor for en empty assumption. -
TagAssumption
public TagAssumption(int advocate, int rank, Tag tag, int identificationCharge, double rawScore, double score) Constructor.Note: if PsmScores.scoreRoundingDecimal is not null the scored will be floored accordingly.- Parameters:
advocate- the advocate supporting this assumptionrank- the rank of the assumptiontag- the identified tagidentificationCharge- the identified chargerawScore- the raw score, i.e. the untransformed score given by the search enginescore- the (potentially transformed) score, typically a search engine e-value (whether the score is ascending or descending can be known from the SearchEngine class)
-
-
Method Details
-
getTag
Returns the tag of this assumption.- Returns:
- the tag of this assumption
-
setTag
-
getTheoreticMass
public double getTheoreticMass()Description copied from class:SpectrumIdentificationAssumptionReturns the theoretic mass of the given assumption.- Specified by:
getTheoreticMassin classSpectrumIdentificationAssumption- Returns:
- the theoretic mass of the given assumption
-
getTheoreticMass
public double getTheoreticMass(boolean includeCTermGap, boolean includeNTermGap) Returns the theoretic mass of the tag, eventually without terminal gaps.- Parameters:
includeCTermGap- if true the C-terminal gap will be added if presentincludeNTermGap- if true the N-terminal gap will be added if present- Returns:
- the theoretic mass of the tag
-
getTheoreticMz
public double getTheoreticMz(boolean includeCTermGap, boolean includeNTermGap) Returns the theoretic mass of the tag, eventually without terminal gaps.- Parameters:
includeCTermGap- if true the C-terminal gap will be added if presentincludeNTermGap- if true the N-terminal gap will be added if present- Returns:
- the theoretic mass of the tag
-
getPossibleTags
public ArrayList<TagAssumption> getPossibleTags(boolean forwardIon, int minCharge, int maxCharge, int maxIsotope) Computes the possible tag assumptions which can be obtained from this one by accounting for other charges and isotopes.- Parameters:
forwardIon- indicates whether the tag is based on forward ions (a, b, or c)minCharge- the minimal precursor charge to considermaxCharge- the maximal precursor charge to considermaxIsotope- the maximal isotope number to consider- Returns:
- the possible tag assumptions which can be obtained from this one by accounting for other charges and isotopes
-
reverse
Returns a new TagAssumption instance where the tag is a reversed version of this tag.- Parameters:
yIon- indicates whether the tag is based on y ions- Returns:
- a new TagAssumption instance where the tag is a reversed version of this tag
-
toString
-