public class ExportableFieldFactory extends Object
Constructor and Description |
---|
ExportableFieldFactory() |
Modifier and Type | Method and Description |
---|---|
static AnnotationAssayField |
annotation(AnnotationType at,
Formatter<?> formatter)
Create an annotation assay field.
|
static AnnotationAssayField |
annotation(AnnotationType at,
String title,
Formatter<?> formatter)
Create an annotation assay field, overriding the title
of the annotation type.
|
static AssayPropertyField |
assayProperty(String property,
String title,
Type type,
Formatter<?> formatter)
Create a property assay field.
|
static SimpleDynamicField |
channel(int channel,
String title,
Formatter<?> formatter)
Create a simple dynamic field that exports the channel intensity
of the given channel.
|
static JepDynamicField |
extraValue(ExtraValueType extra,
String title,
Formatter<?> formatter)
Create a JEP dynamic field that exports an extra value.
|
static JepDynamicField |
formula(Formula f,
String title,
Formatter<?> formatter)
Create a JEP dynamic field that exports the result of
the JEP expression in a formula.
|
static JepDynamicField |
jep(String jep,
String title,
Type type,
Formula.AverageMethod averageMethod,
Formatter<?> formatter)
Create a JEP dynamic field.
|
static SimpleDynamicField |
rawData(RawDataProperty property,
String title,
Formatter<?> formatter)
Create a simple dynamic field that exports a raw data value.
|
static SimpleDynamicField |
rawData(String property,
String title,
Type type,
Formula.AverageMethod averageMethod,
Formatter<?> formatter)
Create a simple dynamic field that exports a raw data value.
|
static SimpleDynamicField |
reporter(ExtendedProperty property,
String title,
Formatter<?> formatter)
Create a simple dynamic field that exports reporter annotation values.
|
static DynamicField |
reporter(String property,
String title,
Type type,
Formula.AverageMethod averageMethod,
Formatter<?> formatter)
Create a simple dynamic field that exports reporter annotation values.
|
static SimpleDynamicField |
simple(Expression e,
String title,
Type type,
Formula.AverageMethod averageMethod,
Formatter<?> formatter)
Create a simple dynamic field.
|
public static AnnotationAssayField annotation(AnnotationType at, Formatter<?> formatter)
at
- The annotation typeformatter
- A formatter or nullAnnotationAssayField
public static AnnotationAssayField annotation(AnnotationType at, String title, Formatter<?> formatter)
at
- The annotation typetitle
- A custom title for the assay field, or null to use the
name of the annotation typeformatter
- A formatter or nullAnnotationAssayField
public static AssayPropertyField assayProperty(String property, String title, Type type, Formatter<?> formatter)
property
- The property to export, see Metadata.getPropertyPath(String, boolean)
for more information about the syntax of this parameter.title
- The column titleformatter
- A formatter or nullAssayPropertyField
objectpublic static SimpleDynamicField simple(Expression e, String title, Type type, Formula.AverageMethod averageMethod, Formatter<?> formatter)
e
- The expression to exporttitle
- The column titleaverageMethod
- Average method to use or null to use the
average method specified by the bioassay setformatter
- A formatter or nullSimpleDynamicField
public static JepDynamicField jep(String jep, String title, Type type, Formula.AverageMethod averageMethod, Formatter<?> formatter)
jep
- The JEP expressiontitle
- The column titletype
- The data type of the expressionaverageMethod
- Average method to use or null to use the
average method specified by the bioassay setformatter
- A formatter or nullpublic static SimpleDynamicField channel(int channel, String title, Formatter<?> formatter)
Dynamic.column(VirtualColumn)
and VirtualColumn.channelRaw(int)
to generate the expression. It
uses the average method specified by the bioassay set.channel
- The channel numbertitle
- The column title. If null, the title is generated as 'intensity' + channelformatter
- A formatter for numeric data or nullpublic static SimpleDynamicField rawData(RawDataProperty property, String title, Formatter<?> formatter)
Dynamic.rawData(String)
to generate the
expression and uses the average method specified by the raw data
property.property
- The raw data propertytitle
- The column title, or null to use the title of
the propertyformatter
- A formatter or nullpublic static SimpleDynamicField rawData(String property, String title, Type type, Formula.AverageMethod averageMethod, Formatter<?> formatter)
Dynamic.rawData(String)
to generate the
expression.property
- The raw data propertytitle
- The column title, or null to use the property
as titleaverageMethod
- Average method to use or null to use
Formula.AverageMethod.NONE
formatter
- A formatter or nullpublic static SimpleDynamicField reporter(ExtendedProperty property, String title, Formatter<?> formatter)
Dynamic.reporter(String)
to generate the
expression and uses the average method specified by the reporter
property.property
- The reporter propertytitle
- The column title, or null to use the title of
the propertyformatter
- A formatter or nullpublic static DynamicField reporter(String property, String title, Type type, Formula.AverageMethod averageMethod, Formatter<?> formatter)
Dynamic.reporter(String)
to generate the
expression.property
- The reporter propertytitle
- The column title, or null to use the property
as titleaverageMethod
- Average method to use or null to use
Formula.AverageMethod.NONE
formatter
- A formatter or nullpublic static JepDynamicField formula(Formula f, String title, Formatter<?> formatter)
f
- The formulatitle
- The column title, or null to use the
name of the formula as the titleformatter
- A formatter or nullpublic static JepDynamicField extraValue(ExtraValueType extra, String title, Formatter<?> formatter)
extra
- The extra value typetitle
- The column title, or null to use the
name of the formula as the titleformatter
- A formatter or null