java.lang.Object
ubic.gemma.model.analysis.expression.diff.Contrast

@ParametersAreNonnullByDefault public class Contrast extends Object
Represents a contrast.
Author:
poirigui
  • Method Details

    • continuous

      public static Contrast continuous(ExperimentalFactor ef)
      Create a contrast for a continuous factor.
    • categorical

      public static Contrast categorical(FactorValue fv)
      Create a contrast for a categorical factor.
    • interaction

      public static Contrast interaction(FactorValue fv1, FactorValue fv2)
      Create an interaction of two categorical factors.
    • getExperimentalFactor

      public ExperimentalFactor getExperimentalFactor()
    • getFactorValue

      @Nullable public FactorValue getFactorValue()
    • getSecondFactorValue

      @Nullable public FactorValue getSecondFactorValue()
    • getFactorValues

      public List<FactorValue> getFactorValues()
    • isContinuous

      public boolean isContinuous()
      Indicate if this contrast is continuous.
    • isInteraction

      public boolean isInteraction()
      Indicate if this contrast is an interaction of two or more factors.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object