Package com.compomics.util.gui.protein
Class ModificationProfile
java.lang.Object
com.compomics.util.gui.protein.ModificationProfile
A simple modification profile object.
- Author:
- Harald Barsnes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe score above the sequence row index.static final intThe score under the sequence row index. -
Constructor Summary
ConstructorsConstructorDescriptionEmpty default constructorModificationProfile(String ptmName, double[][] profile, Color color) Modification profile constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetColor()Returns the PTM color.double[][]Returns the profile.Returns the PTM name.voidSets the PTM color.voidsetProfile(double[][] profile) Sets the profile.voidsetPtmName(String ptmName) Sets the PTM name.
-
Field Details
-
SCORE_1_ROW_INDEX
public static final int SCORE_1_ROW_INDEXThe score above the sequence row index.- See Also:
-
SCORE_2_ROW_INDEX
public static final int SCORE_2_ROW_INDEXThe score under the sequence row index.- See Also:
-
-
Constructor Details
-
ModificationProfile
public ModificationProfile()Empty default constructor -
ModificationProfile
Modification profile constructor.- Parameters:
ptmName- the PTM nameprofile- the PTM profilecolor- the PTM color
-
-
Method Details
-
getPtmName
Returns the PTM name.- Returns:
- the ptmName
-
setPtmName
Sets the PTM name.- Parameters:
ptmName- the ptmName to set
-
getProfile
public double[][] getProfile()Returns the profile. Delta scores in the first row and a score in the second row, i.e., [d1][SCORE_1_ROW_INDEX] and [a1][SCORE_2_ROW_INDEX].- Returns:
- the profile
-
setProfile
public void setProfile(double[][] profile) Sets the profile. Delta scores in the first row and a score in the second row, i.e., [d1][SCORE_1_ROW_INDEX] and [a1][SCORE_2_ROW_INDEX].- Parameters:
profile- the profile to set
-
getColor
Returns the PTM color.- Returns:
- the color
-
setColor
Sets the PTM color.- Parameters:
color- the color to set
-