Class TagFragmentIon
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.biology.ions.Ion
com.compomics.util.experiment.biology.ions.impl.TagFragmentIon
- All Implemented Interfaces:
Serializable
A fragment ion obtained from a tag.
- Author:
- Marc Vaudel
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.compomics.util.experiment.biology.ions.Ion
Ion.IonType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier for an a ion.static final intIdentifier for a b ion.static final intIdentifier for a c ion.static final intIdentifier for an x ion.static final intIdentifier for a y ion.static final intIdentifier for a z ion.Fields inherited from class com.compomics.util.experiment.biology.ions.Ion
atomChain, theoreticMass1, typeFields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
ConstructorsConstructorDescriptionEmpty default constructorTagFragmentIon(int fragmentType) Constructor for a generic ion without neutral losses.TagFragmentIon(int fragmentType, int number, int subNumber, double mass, NeutralLoss[] neutralLosses, double massGap) Constructor.TagFragmentIon(int fragmentType, NeutralLoss[] neutralLosses) Constructor for a generic ion. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the mass gap comprised in this ion.getName()Returns the name of the ion.Returns the name with number and mass gap.Returns the name with number.Returns the possible neutral losses of this ion type.intReturns the number of the fragment in the tag.static int[]Returns the possible subtypes.Returns the CV term adapted to the fragment ion.Returns the CV term adapted to the fragment ion.intReturns the number of the fragment in the current amino acid sequence.intReturns the ion subtype.Returns the subtype as string.static StringgetSubTypeAsString(int subType) Returns the type of fragment ion as a letter.booleanReturns a boolean indicating whether the ion is the same as another ion.Methods inherited from class com.compomics.util.experiment.biology.ions.Ion
getAtomicComposition, getGenericIon, getGenericIon, getImplementedIonTypes, getNeutralLossesAsString, getNeutralLossesAsString, getPossibleSubtypes, getPossibleSubtypesAsSet, getTheoreticMass, getTheoreticMz, getType, getTypeAsString, getTypeAsString, hasNeutralLosses, setAtomicComposition, setTheoreticMassMethods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Field Details
-
A_ION
public static final int A_IONIdentifier for an a ion.- See Also:
-
B_ION
public static final int B_IONIdentifier for a b ion.- See Also:
-
C_ION
public static final int C_IONIdentifier for a c ion.- See Also:
-
X_ION
public static final int X_IONIdentifier for an x ion.- See Also:
-
Y_ION
public static final int Y_IONIdentifier for a y ion.- See Also:
-
Z_ION
public static final int Z_IONIdentifier for a z ion.- See Also:
-
-
Constructor Details
-
TagFragmentIon
public TagFragmentIon()Empty default constructor -
TagFragmentIon
public TagFragmentIon(int fragmentType, int number, int subNumber, double mass, NeutralLoss[] neutralLosses, double massGap) Constructor.- Parameters:
fragmentType- the type of peptide fragment ion as indexed by the static fieldsnumber- the number of the fragment ionsubNumber- the number of the fragment ion in the current amino acid sequencemass- the mass of the fragment ionneutralLosses- the neutral losses of the ionmassGap- the mass gap before this tag fragment ions
-
TagFragmentIon
Constructor for a generic ion.- Parameters:
fragmentType- the type of peptide fragment ion as indexed by the static fieldsneutralLosses- the neutral losses of the ion
-
TagFragmentIon
public TagFragmentIon(int fragmentType) Constructor for a generic ion without neutral losses.- Parameters:
fragmentType- the type of peptide fragment ion as indexed by the static fields
-
-
Method Details
-
getNumber
public int getNumber()Returns the number of the fragment in the tag. 0 based.- Returns:
- the number of the fragment in the tag
-
getSubNumber
public int getSubNumber()Returns the number of the fragment in the current amino acid sequence. 0 based.- Returns:
- the number of the fragment in the current amino acid sequence
-
getNeutralLosses
Description copied from class:IonReturns the possible neutral losses of this ion type. An empty list if none.- Specified by:
getNeutralLossesin classIon- Returns:
- the possible neutral losses of this ion type
-
getName
Description copied from class:IonReturns the name of the ion. The name should be short enough to be displayed on a spectrum. -
getNameWithNumber
Returns the name with number. For example b5-H2O.- Returns:
- the name with number
-
getNameWithGapAndNumber
Returns the name with number and mass gap. For example 110.0...b5-H2O.- Returns:
- the name with number
-
getPrideCvTerm
Description copied from class:IonReturns the CV term adapted to the fragment ion. Null if none corresponding.- Specified by:
getPrideCvTermin classIon- Returns:
- the CV term adapted to the fragment ion. Null if none corresponding
-
getPsiMsCvTerm
Description copied from class:IonReturns the CV term adapted to the fragment ion. Null if none corresponding.- Specified by:
getPsiMsCvTermin classIon- Returns:
- the CV term adapted to the fragment ion. Null if none corresponding
-
getSubType
public int getSubType()Description copied from class:IonReturns the ion subtype.- Specified by:
getSubTypein classIon- Returns:
- the ion subtype as integer
-
getSubTypeAsString
Description copied from class:IonReturns the subtype as string.- Specified by:
getSubTypeAsStringin classIon- Returns:
- the subtype as string
-
getSubTypeAsString
Returns the type of fragment ion as a letter.- Parameters:
subType- the subtype- Returns:
- the type of fragment ion as a letter
-
getPossibleSubtypes
public static int[] getPossibleSubtypes()Returns the possible subtypes.- Returns:
- the possible subtypes
-
isSameAs
Description copied from class:IonReturns a boolean indicating whether the ion is the same as another ion. -
getMassGap
public double getMassGap()Returns the mass gap comprised in this ion.- Returns:
- the mass gap
-