Class DifferentialExpressionAnalyzerServiceDeleteOthersTest

java.lang.Object
ubic.gemma.core.analysis.expression.diff.DifferentialExpressionAnalyzerServiceDeleteOthersTest

@ExtendWith(org.mockito.junit.jupiter.MockitoExtension.class) public class DifferentialExpressionAnalyzerServiceDeleteOthersTest extends Object
A fresh run with deleteOtherAnalyses saves its analyses first, then deletes the experiment's other analyses on the same subset factor.

Paul, 2026-09-15: the DEA CLI needs a "delete others" option, and it should not "replace analyses that don't need to be updated". Until then the route was deleteDiffEx followed by diffExAnalyze; on GSE90654 the experiment had no analysis between the two calls.

Author:
gembro
  • Constructor Details

    • DifferentialExpressionAnalyzerServiceDeleteOthersTest

      public DifferentialExpressionAnalyzerServiceDeleteOthersTest()
  • Method Details

    • setUp

      @BeforeEach public void setUp()
    • testTheOtherAnalysesAreDeletedAfterTheNewOneIsSaved

      @Test public void testTheOtherAnalysesAreDeletedAfterTheNewOneIsSaved()
      Includes the analysis on the same factors, which a run without the option deletes before saving. The subset analysis is on another subset factor, so it stays.
    • testASubsetRunReplacesOnlyTheAnalysesOfThatFactorsSubsets

      @Test public void testASubsetRunReplacesOnlyTheAnalysesOfThatFactorsSubsets()
    • testAnAnalysisOutsideTheRunIsNotChecked

      @Test public void testAnAnalysisOutsideTheRunIsNotChecked()
      An analysis the run does not replace cannot refuse it.
    • testNothingIsDeletedWhenTheAnalysisFails

      @Test public void testNothingIsDeletedWhenTheAnalysisFails()
    • testNothingIsDeletedWhenNoAnalysisIsProduced

      @Test public void testNothingIsDeletedWhenNoAnalysisIsProduced()
    • testAnAnalysisThatCannotBeDeletedRefusesTheRunBeforeItStarts

      @Test public void testAnAnalysisThatCannotBeDeletedRefusesTheRunBeforeItStarts()
      Checked before the analysis runs, so a refusal costs nothing and leaves nothing half-replaced.
    • testARedoRefusesTheOption

      @Test public void testARedoRefusesTheOption()