Class FactorValueUtils
java.lang.Object
ubic.gemma.model.expression.experiment.FactorValueUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringProduce a summary string for this factor value.static StringgetSummaryString(FactorValue fv, String statementDelimiter) static StringgetSummaryString(FactorValue fv, Characteristic category, String statementDelimiter) static StringgetValue(FactorValue fv, String delimiter) Produce a value for representing a factor value.static String[]getValues(FactorValue fv)
-
Constructor Details
-
FactorValueUtils
public FactorValueUtils()
-
-
Method Details
-
getValue
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
-
getSummaryString
Produce a summary string for this factor value. -
getSummaryString
-
getSummaryString
public static String getSummaryString(FactorValue fv, @Nullable Characteristic category, String statementDelimiter)
-