QualityRecalibrationFactory { @VisibleForTesting static double recalibratedQual(int refCount, int altCount) { double percent = altCount / (double) (altCount + refCount); return -10 * Math.log10(percent); }  @NotNull static List<QualityRecalibrationRecord> create(@NotNull final Collection<QualityCounter> records);  }
@Test public void testQual() { assertEquals(40, QualityRecalibrationFactory.recalibratedQual(9999, 1), 0.1); assertEquals(30, QualityRecalibrationFactory.recalibratedQual(9990, 10), 0.1); assertEquals(20, QualityRecalibrationFactory.recalibratedQual(9900, 100), 0.1); assertEquals(10, QualityRecalibrationFactory.recalibratedQual(9000, 1000), 0.1); }