Class Glycan
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.biology.ions.Ion
com.compomics.util.experiment.biology.ions.impl.Glycan
- All Implemented Interfaces:
Serializable
This class represents a glycan.
- 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 intFinal index for deuteroacetylated masses.static final intFinal index for deuteromethylated masses.static final intFinal index for peracetylated masses.static final intFinal index for permethylated masses.static final intFinal index for underivated masses.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMass(int massType, double value) Add a mass for this glycan.doublegetMass(int aType) Get the glycan mass.getName()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
-
UNDERIVATED_MASS
public static final int UNDERIVATED_MASSFinal index for underivated masses.- See Also:
-
PERMETHYLATED_MASS
public static final int PERMETHYLATED_MASSFinal index for permethylated masses.- See Also:
-
DEUTEROMETHYLATED_MASS
public static final int DEUTEROMETHYLATED_MASSFinal index for deuteromethylated masses.- See Also:
-
PERACETYLATED_MASS
public static final int PERACETYLATED_MASSFinal index for peracetylated masses.- See Also:
-
DEUTEROACETYLATED_MASS
public static final int DEUTEROACETYLATED_MASSFinal index for deuteroacetylated masses.- See Also:
-
-
Constructor Details
-
Glycan
public Glycan()Empty default constructor -
Glycan
Constructor for a glycan.- Parameters:
name- The name of the glycanlongName- A shortened name for the glycan
-
-
Method Details
-
addMass
public void addMass(int massType, double value) Add a mass for this glycan.- Parameters:
massType- mass type indexed according to the static fieldvalue- Value of the mass
-
getMass
public double getMass(int aType) Get the glycan mass.- Parameters:
aType- Type of mass requested indexed according to static int.- Returns:
- the requested mass
-
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.
-