Analysis { public InheritanceModeOptions getInheritanceModeOptions() { return inheritanceModeOptions; } private  Analysis(Builder builder); Path getVcfPath(); GenomeAssembly getGenomeAssembly(); Pedigree getPedigree(); String getProbandSampleName(); InheritanceModeOptions getInheritanceModeOptions(); List<String> getHpoIds(); AnalysisMode getAnalysisMode(); Set<FrequencySource> getFrequencySources(); Set<PathogenicitySource> getPathogenicitySources(); List<AnalysisStep> getAnalysisSteps(); @JsonIgnore PriorityType getMainPrioritiserType(); @JsonIgnore List<List<AnalysisStep>> getAnalysisStepsGroupedByFunction(); @JsonCreator static Builder builder(); Builder copy(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void modeOfInheritanceDefaultsToEmpty() { assertThat(DEFAULT_ANALYSIS.getInheritanceModeOptions(), equalTo(InheritanceModeOptions.empty())); }
@Test public void canSetModeOfInheritanceDefaults() { Analysis instance = newBuilder() .inheritanceModeOptions(InheritanceModeOptions.defaults()) .build(); assertThat(instance.getInheritanceModeOptions(), equalTo(InheritanceModeOptions.defaults())); }
@Test public void testCanMakeAnalysisWithInheritanceModesFromMap() { Map<SubModeOfInheritance, Float> inheritanceMap = ImmutableMap.of(SubModeOfInheritance.AUTOSOMAL_RECESSIVE_COMP_HET, 2.0f); Analysis instance = newBuilder() .inheritanceModeOptions(inheritanceMap) .build(); assertThat(instance.getInheritanceModeOptions(), equalTo(InheritanceModeOptions.of(inheritanceMap))); }
@Test public void testCanMakeAnalysisWithInheritanceModesFromInheritanceModeOptions() { Map<SubModeOfInheritance, Float> inheritanceMap = ImmutableMap.of(SubModeOfInheritance.AUTOSOMAL_RECESSIVE_COMP_HET, 2.0f); InheritanceModeOptions inheritanceModeOptions = InheritanceModeOptions.of(inheritanceMap); Analysis instance = newBuilder() .inheritanceModeOptions(inheritanceModeOptions) .build(); assertThat(instance.getInheritanceModeOptions(), equalTo(inheritanceModeOptions)); }