Class ExperimentExpressionLevelsValueObject
java.lang.Object
ubic.gemma.model.expression.bioAssayData.ExperimentExpressionLevelsValueObject
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPer-gene differential-expression statistics carried alongside expression levels for the/datasets/{dataset}/expressions/differentialendpoint.static classstatic class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExperimentExpressionLevelsValueObject(long datasetId, Map<Gene, List<DoubleVectorValueObject>> vectorsPerGene, boolean keepGeneNonSpecific, String conslidationMode) ExperimentExpressionLevelsValueObject(long datasetId, Map<Gene, List<DoubleVectorValueObject>> vectorsPerGene, boolean keepGeneNonSpecific, String conslidationMode, Map<Gene, ExperimentExpressionLevelsValueObject.GeneDiffExStats> diffExStatsPerGene) Variant that carries per-gene differential-expression statistics for the contrast represented by the result-set used to build the response. -
Method Summary
Modifier and TypeMethodDescriptionlongvoidRound every expression value and per-gene statistic in this response toRoundingUtils.JSON_SIGNIFICANT_DIGITSsignificant digits.
-
Field Details
-
OPT_PICK_MAX
- See Also:
-
OPT_PICK_VAR
- See Also:
-
OPT_AVG
- See Also:
-
-
Constructor Details
-
ExperimentExpressionLevelsValueObject
public ExperimentExpressionLevelsValueObject() -
ExperimentExpressionLevelsValueObject
public ExperimentExpressionLevelsValueObject(long datasetId, Map<Gene, List<DoubleVectorValueObject>> vectorsPerGene, boolean keepGeneNonSpecific, @Nullable String conslidationMode) -
ExperimentExpressionLevelsValueObject
public ExperimentExpressionLevelsValueObject(long datasetId, Map<Gene, List<DoubleVectorValueObject>> vectorsPerGene, boolean keepGeneNonSpecific, @Nullable String conslidationMode, Map<Gene, ExperimentExpressionLevelsValueObject.GeneDiffExStats> diffExStatsPerGene) Variant that carries per-gene differential-expression statistics for the contrast represented by the result-set used to build the response. SeegeneOfficialNameaccessors onExperimentExpressionLevelsValueObject.GeneElementExpressionsValueObjectfor the exposed fields.
-
-
Method Details
-
roundValuesForJson
public void roundValuesForJson()Round every expression value and per-gene statistic in this response toRoundingUtils.JSON_SIGNIFICANT_DIGITSsignificant digits.Gemma's expression data descends from 16-bit measurements and these values are plotted rather than recomputed from; the digits this drops are also incompressible, so they cost the most on the largest responses. The REST layer applies this unless the caller asks for
precise=true.Mutates in place. That is safe here and only here: the producer builds a fresh value object per request, and
VectorElementValueObjectcopies each vector's values into its own map, so the cachedDoubleVectorValueObjectarrays are never reached. -
getDatasetId
public long getDatasetId() -
getGeneExpressionLevels
public LinkedList<ExperimentExpressionLevelsValueObject.GeneElementExpressionsValueObject> getGeneExpressionLevels()
-