AnalysisBuilder { public AnalysisBuilder addPhivePrioritiser() { addPrioritiserStepIfHpoIdsNotEmpty(priorityFactory.makePhivePrioritiser()); return this; } AnalysisBuilder(GenomeAnalysisServiceProvider genomeAnalysisServiceProvider, PriorityFactory priorityFactory, OntologyService ontologyService); Analysis build(); AnalysisBuilder vcfPath(Path vcfPath); AnalysisBuilder genomeAssembly(GenomeAssembly genomeAssembly); AnalysisBuilder pedigree(Pedigree pedigree); AnalysisBuilder probandSampleName(String sampleName); AnalysisBuilder hpoIds(List<String> hpoIds); AnalysisBuilder inheritanceModes(InheritanceModeOptions inheritanceModeOptions); AnalysisBuilder analysisMode(AnalysisMode analysisMode); AnalysisBuilder frequencySources(Set<FrequencySource> frequencySources); AnalysisBuilder pathogenicitySources(Set<PathogenicitySource> pathogenicitySources); AnalysisBuilder addFailedVariantFilter(); AnalysisBuilder addIntervalFilter(GeneticInterval interval); AnalysisBuilder addIntervalFilter(Collection<ChromosomalRegion> chromosomalRegions); AnalysisBuilder addGeneIdFilter(Set<String> entrezIds); AnalysisBuilder addVariantEffectFilter(Set<VariantEffect> variantEffects); AnalysisBuilder addQualityFilter(double cutoff); AnalysisBuilder addKnownVariantFilter(); AnalysisBuilder addFrequencyFilter(float cutOff); AnalysisBuilder addFrequencyFilter(); AnalysisBuilder addPathogenicityFilter(boolean keepNonPathogenic); AnalysisBuilder addPriorityScoreFilter(PriorityType priorityType, float minPriorityScore); AnalysisBuilder addRegulatoryFeatureFilter(); AnalysisBuilder addInheritanceFilter(); AnalysisBuilder addOmimPrioritiser(); AnalysisBuilder addPhivePrioritiser(); AnalysisBuilder addHiPhivePrioritiser(); AnalysisBuilder addHiPhivePrioritiser(HiPhiveOptions hiPhiveOptions); AnalysisBuilder addPhenixPrioritiser(); AnalysisBuilder addExomeWalkerPrioritiser(List<Integer> seedGenes); AnalysisBuilder addAnalysisStep(AnalysisStep analysisStep);  }
@Test public void testAddPhivePrioritiserThrowsExcptionWhenHpoIdsNotDefined() { assertThrows(IllegalArgumentException.class, () -> analysisBuilder.addPhivePrioritiser()); }