Tutorials › Statistical Genetics › Calibrating Rare-Variant Filters With Replicates

Rare-Variant Data and Inference · Tutorial 410 of 989

Calibrating Rare-Variant Filters With Replicates

Use replicate concordance and truth-set performance to assess rare-variant filters without mistaking reproducibility for accuracy.

Intermediate 10 min read

What You'll Learn

  • Distinguish replicate agreement from agreement with an independently established truth set
  • Define sensitivity, false-positive rate, specificity, and positive predictive value for filtered calls
  • Calculate call-level reproducibility and truth-set performance from concrete validation data
  • Quantify uncertainty in sensitivity and false-positive-rate estimates
  • Select a filter threshold in view of study priorities and the limits of the validation evidence

Why Calibrate Rare-Variant Filters?

A rare-variant filter is intended to remove unreliable calls while retaining true variants. Its settings therefore affect two kinds of error: a true variant may be filtered out, or an artifact may be retained and treated as a variant. Quality metrics such as those considered in earlier material on rare variant calls can rank or describe calls, but their usefulness depends on how well they distinguish true from false calls in the data and study conditions at hand.

Replicate sequencing and truth sets provide complementary evidence. Replicates show whether the same sample produces consistent results when measured again. A truth set provides calls independently judged to be true or false, allowing direct estimates of filter performance. Neither source is perfect: replicates can share systematic errors, and a truth set may be small, selective, or imperfectly representative of the study data.

Definition: A technical replicate is a repeated measurement of the same biological sample, such as a separately prepared library or sequencing run. A truth set is a set of variant genotypes with status established by an independent, sufficiently reliable reference method. For a specified filter, a true positive (TP) is a truth-set variant retained by the filter; a false negative (FN) is a truth-set variant removed. A false positive (FP) is a truth-set non-variant retained by the filter; a true negative (TN) is a truth-set non-variant removed.

What Replicates Measure

Compare replicate calls at the same sample and genomic positions, using consistent genotype definitions and a pre-specified set of positions that can be assessed in both replicates. Genotype concordance is the proportion of these comparisons with matching genotypes. For rare calls, overall concordance can be misleading: most positions may be reference in both replicates, so many matching reference genotypes can obscure inconsistent alternate calls. Report a rare-call-specific measure as well, such as positive agreement among comparisons where at least one replicate reports the alternate genotype.

Agreement is evidence of reproducibility, not proof of accuracy. Both replicates can make the same error if they share a mapping artifact, a problematic region, or another systematic source of error. Conversely, low agreement may reflect stochastic sampling or differences in coverage rather than a fixed error in one replicate. Analyze only comparable, callable observations and describe how discordances are counted; do not treat a missing genotype as a matching reference genotype.

Worked Example: Reading Replicate Concordance

In a hypothetical technical validation, two sequencing replicates have callable genotypes at 500 sample-position comparisons. They match at 492 positions. Among the comparisons where at least one replicate reports an alternate genotype, 19 have an alternate call in both replicates and 6 have a call in only one.

Overall genotype concordance is

$$ \frac{492}{500}=0.984=98.4\%. $$

For rare-call positive agreement, count each replicate's positive call in the denominator. The 19 pairs with alternate calls in both contribute 38 positive calls; the 6 discordant pairs contribute 6. Thus

$$ \text{positive agreement} =\frac{2(19)}{2(19)+6} =\frac{38}{44} =0.8636=86.4\%. $$

The high overall concordance does not by itself imply that rare calls are highly reproducible: the rare-call-specific agreement is lower. Neither percentage establishes truth, because the replicates have not been compared with an independent reference.

Measuring Performance Against a Truth Set

Let a filter retain a call when its quality score \(Q\) meets a chosen threshold \(t\), using the convention \(Q \ge t\). For each truth-set genotype, compare the filter decision with its established status. A position should be counted as a truth-set negative only when the reference establishes that it is callable and does not carry the variant; an uncertain or unassessed position is not automatically a negative.

Definition: For the truth-set units being evaluated, sensitivity is the fraction of true variants retained, \(TP/(TP+FN)\). The false-positive rate (FPR) is the fraction of truth-set negatives incorrectly retained, \(FP/(FP+TN)\). Specificity is \(TN/(TN+FP)=1-\text{FPR}\). Positive predictive value is \(TP/(TP+FP)\), the fraction of retained calls that are true in the evaluated set.

These measures answer different questions. Sensitivity describes how many true variants survive; FPR describes how often negatives are retained. Positive predictive value is especially dependent on the fraction of true variants among the evaluated units. A truth set deliberately enriched for known variants may therefore yield a positive predictive value unlike that in a study-wide set of candidate calls. Do not infer a study-wide predictive value from a differently composed validation set without accounting for that difference.

Worked Example: Comparing Two Filter Thresholds

Suppose a hypothetical truth set contains 100 established variants and 900 established non-variant units. A more permissive threshold retains 90 variants and 36 negatives. A stricter threshold retains 80 variants and 9 negatives. The remaining truth-set units are removed by each filter.

For the permissive threshold, \(TP=90\), \(FN=10\), \(FP=36\), and \(TN=864\). Therefore,

$$ \text{sensitivity}=\frac{90}{100}=0.900,\qquad \text{FPR}=\frac{36}{900}=0.0400. $$

Its positive predictive value in this particular truth set is \(90/(90+36)=0.7143\), or 71.4%.

For the stricter threshold, \(TP=80\), \(FN=20\), \(FP=9\), and \(TN=891\). Thus,

$$ \text{sensitivity}=\frac{80}{100}=0.800,\qquad \text{FPR}=\frac{9}{900}=0.0100. $$

Its positive predictive value in this truth set is \(80/(80+9)=0.8989\), or 89.9%. The stricter threshold reduces the FPR but also removes more true variants. Neither threshold is best for every study: the appropriate trade-off depends on the consequences of false retained calls and lost true calls, and on whether these validation results apply to the study’s data.

Uncertainty and What the Validation Supports

A measured sensitivity or FPR is an estimate from a finite number of truth-set units. For an estimate based on \(m\) independent units with the same true probability \(\theta\), each unit can be represented as a Bernoulli outcome. The count of successes has a binomial distribution, and the estimated proportion has approximate standard error \(\sqrt{\hat{p}(1-\hat{p})/m}\), where \(\hat{p}\) is the observed proportion. This approximation describes sampling variation; it does not account for incorrect truth labels, selection bias, or differences between validation and study samples.

For example, if sensitivity is estimated from only 30 known variants, each variant has substantial influence on the estimate. A confidence interval communicates that uncertainty. The Wilson interval is one standard interval for a binomial proportion. With \(x\) successes among \(m\) units and \(z=1.96\) for a 95% interval, its center and half-width are

$$ \text{center} =\frac{\hat{p}+z^2/(2m)}{1+z^2/m}, \qquad \text{half-width} =\frac{z\sqrt{\hat{p}(1-\hat{p})/m+z^2/(4m^2)}}{1+z^2/m}, \qquad \hat{p}=\frac{x}{m}. $$

The interval is a method with a long-run coverage interpretation under its binomial assumptions; it is not a probability statement that the fixed parameter is inside this particular interval. With small counts, report the denominators and interval rather than treating a rounded point estimate as precise.

Worked Example: Sensitivity With Few Truth Variants

At one hypothetical threshold, 27 of 30 established variants are retained. The estimated sensitivity is

$$ \hat{p}=\frac{27}{30}=0.900. $$

Using \(m=30\), \(\hat{p}=0.900\), and \(z=1.96\), the Wilson interval has center

$$ \frac{0.900+1.96^2/(2\cdot30)}{1+1.96^2/30} =\frac{0.9640}{1.1281} =0.8546 $$

and half-width

$$ \frac{1.96\sqrt{0.900(0.100)/30+1.96^2/(4\cdot30^2)}}{1+1.96^2/30} =0.1108. $$

The resulting 95% Wilson interval is approximately 0.744 to 0.965. The estimate is 90.0%, but the evidence is compatible with materially lower sensitivity under the interval’s sampling assumptions. In this hypothetical validation, four false positives among 400 truth-set negatives would give \(\widehat{\text{FPR}}=4/400=0.0100\), or 1.00%; that estimate also requires its own uncertainty assessment. The two denominators should be reported separately.

Choosing a Threshold From Validation Evidence

A threshold should be selected by considering both observed performance and the scope of the evidence. First, evaluate candidate thresholds on the same defined truth-set units so that the comparison is fair. Then consider the study’s priorities: a setting intended to minimize false retained calls may tolerate lower sensitivity, while a setting intended to preserve as many true variants as possible may accept a higher FPR. State the relevant measure, its denominator, and the trade-off rather than naming a threshold “optimal” without a criterion.

The validation set should resemble the study data in the conditions that can affect calling and filtering. Relevant checks include sample preparation and sequencing batch, genomic context, coverage, and variant types represented. A validation set that omits a difficult class of regions or contains few rare variants cannot establish performance for that class. If performance varies across important conditions, report the variation and avoid relying only on a pooled average that hides it.

Threshold choice and performance assessment should also be separated when possible. Choosing a threshold to perform well on a small truth set and reporting its performance on that same set can make the result look more favorable than it will be on new data. Use an independent validation set for an unbiased assessment when available. If the available evidence is limited, describe the threshold as supported by that evidence, not universally validated.

Common Mistakes

  • Equating replicate agreement with truth. Matching calls show reproducibility, but shared systematic errors can make both replicates wrong. Compare with an independent truth set to assess accuracy.
  • Reporting only overall concordance. Agreement at common reference positions can dominate the total. Include a measure focused on alternate calls and state its denominator.
  • Reporting sensitivity without its denominator. A sensitivity of 90% based on 10 variants is not as informative as the same estimate based on a much larger, representative set. Report counts and uncertainty.
  • Calling unassessed positions negatives. A truth-set unit must be reliably assessed before it can contribute to the FPR denominator. Keep uncertain and uncallable units out of that calculation.
  • Choosing a threshold from one metric alone. A lower FPR can come with more false negatives. State the study-relevant trade-off and the limits of the validation set.
Key takeaway: Replicates assess reproducibility; truth sets assess accuracy. Evaluate both sensitivity and false-positive rate against appropriate truth labels, quantify uncertainty using the actual denominators, and choose thresholds only as far as the validation evidence supports.

Check Your Understanding

Use the definitions and reasoning in this tutorial to answer the following questions.

  1. Why can high overall genotype concordance coexist with poor reproducibility of rare alternate calls?
  2. A filter retains 45 of 50 truth-set variants and 12 of 300 truth-set negatives. Calculate its sensitivity and false-positive rate.
  3. What does a truth set enriched for known variants imply about interpreting its positive predictive value for a study-wide call set?
  4. Why should an uncallable truth-set position not automatically be counted as a true negative?
  5. A sensitivity estimate is 90% based on 20 truth variants. What additional information should accompany the estimate, and why?
  6. How can choosing and evaluating a threshold on the same small truth set make reported performance misleading?
Clinical Biostats