Class PrecursorIon
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.biology.ions.Ion
com.compomics.util.experiment.biology.ions.impl.PrecursorIon
- All Implemented Interfaces:
Serializable
A precursor ion.
- 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 intFor now only one type of precursor implemented.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
ConstructorsConstructorDescriptionConstructor for a generic ion without neutral losses.PrecursorIon(double theoreticMass) Constructor for a generic ion without neutral losses.PrecursorIon(double theoreticMass, NeutralLoss[] neutralLosses) Constructor.PrecursorIon(NeutralLoss[] neutralLosses) Constructor for a generic ion. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name of the ion.Returns the possible neutral losses of this ion type.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 ion subtype.Returns the subtype as string.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
-
PRECURSOR
public static final int PRECURSORFor now only one type of precursor implemented.- See Also:
-
-
Constructor Details
-
PrecursorIon
Constructor.- Parameters:
theoreticMass- the theoretic massneutralLosses- the neutral losses
-
PrecursorIon
Constructor for a generic ion.- Parameters:
neutralLosses- the neutral losses
-
PrecursorIon
public PrecursorIon()Constructor for a generic ion without neutral losses. -
PrecursorIon
public PrecursorIon(double theoreticMass) Constructor for a generic ion without neutral losses.- Parameters:
theoreticMass- the theoretic mass of the precursor
-
-
Method Details
-
getName
Description copied from class:IonReturns the name of the ion. The name should be short enough to be displayed on a spectrum. -
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
-
getPossibleSubtypes
public static int[] getPossibleSubtypes()Returns the possible subtypes.- Returns:
- the possible subtypes
-
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
-
isSameAs
Description copied from class:IonReturns a boolean indicating whether the ion is the same as another ion.
-