Class ModificationProfile

java.lang.Object
com.compomics.util.gui.protein.ModificationProfile

public class ModificationProfile
extends Object
A simple modification profile object.
Author:
Harald Barsnes
  • Field Details

  • Constructor Details

    • ModificationProfile

      public ModificationProfile()
      Empty default constructor
    • ModificationProfile

      public ModificationProfile​(String ptmName, double[][] profile, Color color)
      Modification profile constructor.
      Parameters:
      ptmName - the PTM name
      profile - the PTM profile
      color - the PTM color
  • Method Details

    • getPtmName

      public String getPtmName()
      Returns the PTM name.
      Returns:
      the ptmName
    • setPtmName

      public void setPtmName​(String ptmName)
      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

      public Color getColor()
      Returns the PTM color.
      Returns:
      the color
    • setColor

      public void setColor​(Color color)
      Sets the PTM color.
      Parameters:
      color - the color to set