Class QuantitationTypeParameterGuesser
- java.lang.Object
-
- ubic.gemma.core.loader.expression.geo.QuantitationTypeParameterGuesser
-
public class QuantitationTypeParameterGuesser extends Object
Has the unpleasant task of figuring out what the quantitation type should look like, given a description and name string.
-
-
Constructor Summary
Constructors Constructor Description QuantitationTypeParameterGuesser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static Boolean
guessIsBackground(String name, String description)
protected static PrimitiveType
guessPrimitiveType(String name, String description, Object exampleValue)
static void
guessQuantitationTypeParameters(QuantitationType qt, String name, String description)
static void
guessQuantitationTypeParameters(QuantitationType qt, String name, String description, Object exampleValue)
Attempt to fill in the details of the quantitation type.protected static ScaleType
guessScaleType(String name, String description)
protected static StandardQuantitationType
guessType(String name, String description)
protected static boolean
isBackgroundSubtracted(String name, String description)
protected static boolean
isNormalized(String name, String description)
protected static boolean
isPreferred(QuantitationType qt)
Determine if a quantitation type is 'preferred'.protected static boolean
isRatio(String name, String description)
protected static boolean
maybeBackground(String namelc, String descriptionlc)
protected static boolean
maybeDerivedSignal(String name)
protected static boolean
maybeMeasuredSignal(String name)
protected static boolean
maybeRatio(String name)
-
-
-
Method Detail
-
guessQuantitationTypeParameters
public static void guessQuantitationTypeParameters(QuantitationType qt, String name, String description)
-
guessQuantitationTypeParameters
public static void guessQuantitationTypeParameters(QuantitationType qt, String name, String description, Object exampleValue)
Attempt to fill in the details of the quantitation type.- Parameters:
qt
- QuantitationType to fill in details for.name
- of the quantitation type from the GEO sample columndescription
- of the quantitation type from the GEO sample columnexampleValue
- to help conversion test whether the parameters match.
-
guessPrimitiveType
protected static PrimitiveType guessPrimitiveType(String name, String description, Object exampleValue)
-
guessType
protected static StandardQuantitationType guessType(String name, String description)
-
isBackgroundSubtracted
protected static boolean isBackgroundSubtracted(String name, String description)
-
isPreferred
protected static boolean isPreferred(QuantitationType qt)
Determine if a quantitation type is 'preferred'.- Parameters:
qt
- QT- Returns:
- is preferred
-
maybeDerivedSignal
protected static boolean maybeDerivedSignal(String name)
-
maybeMeasuredSignal
protected static boolean maybeMeasuredSignal(String name)
-
maybeRatio
protected static boolean maybeRatio(String name)
-
-