Exomiser { public AnalysisResults run(Analysis analysis) { GenomeAssembly genomeAssembly = analysis.getGenomeAssembly(); AnalysisMode analysisMode = analysis.getAnalysisMode(); logger.info("Running analysis using {} assembly with mode: {}", genomeAssembly, analysisMode); AnalysisRunner analysisRunner = analysisFactory.getAnalysisRunner(genomeAssembly, analysisMode); return analysisRunner.run(analysis); } @Autowired  Exomiser(AnalysisFactory analysisFactory); AnalysisBuilder getAnalysisBuilder(); AnalysisResults run(Analysis analysis);  }
@Test public void canRunAnalysisFull() { Analysis analysis = makeAnalysisWithMode(AnalysisMode.FULL); AnalysisResults analysisResults = instance.run(analysis); assertThat(analysisResults.getGenes().size(), equalTo(2)); }
@Test public void canRunAnalysisPassOnly() { Analysis analysis = makeAnalysisWithMode(AnalysisMode.PASS_ONLY); AnalysisResults analysisResults = instance.run(analysis); assertThat(analysisResults.getGenes().size(), equalTo(2)); }