Class FactorValueUtils

java.lang.Object
ubic.gemma.model.expression.experiment.FactorValueUtils

public class FactorValueUtils extends Object
  • Constructor Details

    • FactorValueUtils

      public FactorValueUtils()
  • Method Details

    • getValue

      @Nullable public static String getValue(FactorValue fv, String delimiter)
      Produce a value for representing a factor value.

      For continuous factors, this will return the value of the measurement. For categorical factors, this will be the subject (or |-delimited concatenation of subjects) of the statements. If there are no statements, FactorValue.getValue() will be used as a fallback.

      This value is suitable for displaying in a flat file format. If you need a human-readable summary of the factor value, consider using getSummaryString(FactorValue) instead.

      Parameters:
      delimiter - delimiter used when joining multiple values from statements
    • getValues

      public static String[] getValues(FactorValue fv)
    • getSummaryString

      public static String getSummaryString(FactorValue fv)
      Produce a summary string for this factor value.
    • getSummaryString

      public static String getSummaryString(FactorValue fv, String statementDelimiter)
    • getSummaryString

      public static String getSummaryString(FactorValue fv, @Nullable Characteristic category, String statementDelimiter)