Class DifferentialExpressionResultPrecisionTest

java.lang.Object
ubic.gemma.model.analysis.expression.diff.DifferentialExpressionResultPrecisionTest

public class DifferentialExpressionResultPrecisionTest extends Object
Wire-form guards for the differential-expression statistics, which serialize on every route that carries these value objects — /resultSets/{id} and the /datasets/analyses/differential/results family among them.
Author:
paul
  • Constructor Details

    • DifferentialExpressionResultPrecisionTest

      public DifferentialExpressionResultPrecisionTest()
  • Method Details

    • testResultStatisticsSerializeRounded

      @Test public void testResultStatisticsSerializeRounded() throws Exception
      Throws:
      Exception
    • testAVerySmallPvalueSurvives

      @Test public void testAVerySmallPvalueSurvives() throws Exception
      Four significant digits still resolves a p-value at the bottom of the double range, which is why the rule is significant digits rather than decimal places.
      Throws:
      Exception
    • testTheInMemoryStatisticIsNotRounded

      @Test public void testTheInMemoryStatisticIsNotRounded() throws Exception
      Rounding happens at serialization, so the in-memory value the diff-ex ranking sorts on stays exact.
      Throws:
      Exception
    • testContrastStatisticsSerializeRounded

      @Test public void testContrastStatisticsSerializeRounded() throws Exception
      Throws:
      Exception
    • testNullStatisticsAreStillNull

      @Test public void testNullStatisticsAreStillNull() throws Exception
      Throws:
      Exception
    • testNestedContrastsAreRoundedInsideAResult

      @Test public void testNestedContrastsAreRoundedInsideAResult() throws Exception
      The result value object carries its contrasts inline, so the nested statistics have to round too.
      Throws:
      Exception