@parameterized.parameters(((n_ref, n_alt_fraction) for n_ref in [1000, 10000, 100000, 1000000] for n_alt_fraction in [0.0, 0.01, 0.02]))
def test_handles_large_reference_counts(self, n_ref, n_alt_fraction):
    "Tests that we don't blow up when the coverage gets really high."
    caller = PlaceholderVariantCaller(0.01, 100)
    n_alt = int((n_alt_fraction * n_ref))
    (gq, likelihoods) = caller._calc_reference_confidence(n_ref, (n_ref + n_alt))
    self.assertTrue(np.isfinite(likelihoods).all(), 'Non-finite likelihoods {}'.format(likelihoods))
    self.assertEqual(100, gq)
Tests that we don't blow up when the coverage gets really high.
@parameterized.parameters(((n_ref, n_alt_fraction) for n_ref in [1000, 10000, 100000, 1000000] for n_alt_fraction in [0.0, 0.01, 0.02]))
def test_handles_large_reference_counts(self, n_ref, n_alt_fraction):
    
    caller = PlaceholderVariantCaller(0.01, 100)
    n_alt = int((n_alt_fraction * n_ref))
    (gq, likelihoods) = caller._calc_reference_confidence(n_ref, (n_ref + n_alt))
    self.assertTrue(np.isfinite(likelihoods).all(), 'Non-finite likelihoods {}'.format(likelihoods))
    self.assertEqual(100, gq)