CaddScore extends ScaledPathogenicityScore { public static CaddScore of(float phredScaledScore) { float score = 1 - (float) Math.pow(10, -(phredScaledScore / 10)); return new CaddScore(phredScaledScore, score); } private  CaddScore(float rawScore, float scaledScore); static CaddScore of(float phredScaledScore);  }
@Test public void testGetSource() { assertThat(CaddScore.of(1.0f).getSource(), equalTo(PathogenicitySource.CADD)); }
@Test void testScaling() { assertThat(CaddScore.of(10f).getScore(), equalTo(0.90f)); assertThat((double) CaddScore.of(13f).getScore(), closeTo(0.95f, 0.1f)); assertThat(CaddScore.of(20f).getScore(), equalTo(0.99f)); }
@Test public void testToString() { System.out.println(CaddScore.of(10f)); }