What a GWAS Quantile-Quantile Plot Shows
A GWAS quantile-quantile plot compares the observed distribution of association-test p-values with the distribution expected under a reference null model. Its value is not that it labels particular variants as associated; it gives a compact view of whether the collection of test results looks broadly compatible with that reference, and where departures occur. Reading the center and the extreme tail separately is essential: a few very small p-values can produce a striking tail departure without moving most of the plot.
For a scan of \(m\) variants, write the p-values in descending order as \(p_{(1)} \ge p_{(2)} \ge \cdots \ge p_{(m)}\). One common plotting convention assigns the \(i\)th ordered p-value the expected null quantile
The horizontal coordinate is \(x_i=-\log_{10}(q_i)\), and the vertical coordinate is \(y_i=-\log_{10}(p_{(i)})\). With this ordering, both coordinates increase toward the most extreme, smallest p-values. Some software uses slightly different plotting positions, so exact coordinates can vary a little between implementations; the broad pattern is the same.
The interpretation assumes that each null p-value is correctly calibrated: under its null hypothesis it is uniformly distributed on \([0,1]\) in the continuous case. It also assumes that the reference distribution used for the plot is appropriate for the tests being displayed. A p-value that is too small too often because of a model or calibration problem can produce a plot that departs from the diagonal, just as genuine associations can. The plot shows a pattern; it does not, by itself, establish which explanation is responsible.
Why the Reference Line Is Diagonal
Under a complete null with independent, continuous, correctly calibrated p-values, the ordered p-values have known expected ranks. To see why, let \(P_1,\ldots,P_m\) be independent Uniform\((0,1)\) random variables and let \(P_{[i]}\) denote the \(i\)th smallest. Its density is
Integrating \(u f_{P_{[i]}}(u)\) from 0 to 1 gives \(E[P_{[i]}]=i/(m+1)\). The \(i\)th largest p-value is \(P_{[m+1-i]}\), so its expected value is \((m+1-i)/(m+1)=q_i\). Thus, if observed p-values follow this reference distribution, their ranked values should generally track the expected quantiles. Applying the same transformation, \(-\log_{10}(\cdot)\), to both gives the diagonal reference line.
This argument explains the reference, not a guarantee that every point will sit on the line. Ordered values vary from scan to scan, and the ranks are not independent of one another. In GWAS, variants can also be correlated through linkage disequilibrium. That dependence affects the variability and clustering of points, even when individual null p-values are calibrated. A visual comparison with a diagonal is therefore a diagnostic, not a formal test that the whole scan is null.
Reading the Center and the Tail
The central region contains the bulk of the ranked tests. If it tracks the diagonal reasonably well, the middle of the p-value distribution is broadly consistent with the reference. This is reassuring about overall calibration, but it does not prove that every model assumption holds or that there are no associations. The center can also shift if many variants have genuine effects, if p-values are systematically miscalibrated, or if the reference assumptions do not match the data.
The extreme tail corresponds to the smallest p-values and the largest values of \(-\log_{10}(p)\), near the upper right of the plot. A pronounced upward bend or a few points well above the diagonal means that the most extreme results are stronger than the reference predicts. If only a small number of variants are strongly associated, they can separate from the diagonal at the far end while the much larger set of other variants keeps the center close to it. This is a reason to read the tail independently of the center, not to regard an extreme point as proof of a particular biological or technical explanation.
A broad upward departure, extending through much of the plot rather than being confined to a few extreme points, indicates that more of the observed tests are stronger than expected under the reference. That pattern may arise for multiple reasons, including genuine widespread association or problems with calibration. The shape and extent of a departure help describe what is happening in the distribution; they do not identify its cause.
Worked Example: A Plot That Mostly Follows the Reference
Suppose a hypothetical scan tests \(m=1000\) variants. Using \(q_i=(m+1-i)/(m+1)\), examine three ranked points: \(i=501\), \(i=901\), and \(i=1000\). Their observed p-values are, respectively, 0.510, 0.102, and 0.00105.
At \(i=501\), the expected quantile is \(q_{501}=500/1001=0.4995\), so \(x=-\log_{10}(0.4995)=0.3015\). The observed coordinate is \(y=-\log_{10}(0.510)=0.2924\). This central point is close to the diagonal.
At \(i=901\), \(q_{901}=100/1001=0.09990\), giving \(x=1.0004\); the observed value gives \(y=-\log_{10}(0.102)=0.9914\). At \(i=1000\), \(q_{1000}=1/1001=0.0009990\), giving \(x=3.0004\), while \(y=-\log_{10}(0.00105)=2.9788\). These selected points are also close to the reference.
The arithmetic supports the limited description that these points are broadly compatible with the diagonal. It does not prove that the full plot follows the reference, nor does it establish that every test is correctly calibrated; that would require examining the full pattern and the assumptions behind the tests.
Worked Example: A Few Strong Results in the Extreme Tail
In a hypothetical scan of \(m=10{,}000\) variants, suppose the central and most of the intermediate points follow the diagonal, but the three smallest p-values are \(2.0\times10^{-5}\), \(4.0\times10^{-6}\), and \(1.0\times10^{-7}\). These occupy ranks \(i=9998\), \(9999\), and \(10000\) in descending order.
For \(i=9998\), \(q_i=3/10001=0.00029997\), so \(x=3.523\). The observed coordinate is \(y=-\log_{10}(2.0\times10^{-5})=4.699\), well above the expected value.
For \(i=9999\), \(q_i=2/10001=0.00019998\), giving \(x=3.699\); the observed p-value gives \(y=-\log_{10}(4.0\times10^{-6})=5.398\). For \(i=10000\), \(q_i=1/10001=0.00009999\), giving \(x=4.000\), while \(y=-\log_{10}(1.0\times10^{-7})=7.000\).
All three points are substantially above the diagonal, while the stated rest of the plot remains near it. That pattern is consistent with a small number of results driving an extreme-tail departure. The plot alone cannot determine whether these are genuine associations, artifacts, or some combination; each result needs appropriate follow-up and interpretation.
Worked Example: A Broad Shift Is Not a Cause
Consider another hypothetical scan of \(m=10{,}000\) variants. Suppose points across a broad range sit above the diagonal. At rank \(i=5001\), \(q_i=5000/10001=0.49995\), so \(x=0.3011\). If the observed p-value there is 0.300, then \(y=-\log_{10}(0.300)=0.5229\), a visible upward departure.
At rank \(i=9001\), \(q_i=1000/10001=0.09999\), giving \(x=1.0000\). If the observed p-value is 0.060, then \(y=-\log_{10}(0.060)=1.2218\), again above the reference. Suppose points nearer the lower end also show a similar broad displacement. This is not the pattern of only three isolated extreme results: many ranks depart.
The defensible reading is that the observed p-value distribution is broadly stronger than the chosen reference predicts. This does not establish why. Genuine effects affecting many variants and systematic departures from the assumed test calibration are different possible explanations, and the QQ plot alone does not distinguish them.
Diagnostics, Alternatives, and Limitations
When reading a plot, first check the axes and ordering. With \(-\log_{10}(p)\) on both axes, larger values mean smaller p-values, and points above the diagonal are more extreme than expected. A reversed axis convention or a different statistic can change the visual direction, so confirm how the plot was made before interpreting it. Also check whether the displayed tests use comparable null distributions and whether the p-values are valid for their stated tests.
Look at the center and tail separately, and describe the shape before proposing an explanation. A localized tail departure can be driven by a small number of strong results. A broad displacement indicates a more widespread distributional difference. A plot that appears close to the line can still hide individual errors, and a few extreme points can be visually dominant even when most tests follow the reference.
A reference line alone does not show how much random variation is expected around it. If uncertainty bands are added, their construction matters: bands based on independent uniform p-values may not reflect dependence among variants. A calibrated simulation or other reference that accounts for the relevant dependence can provide a more suitable comparison. Even then, a band is a diagnostic for deviation from a specified reference, not a procedure that assigns a cause.
A QQ plot preserves the ranked pattern across the scan, unlike a single summary number that compresses the distribution. Conversely, it does not identify which genomic locations produce a departure; it summarizes ranks rather than genomic position. Reviewing individual association results addresses a different question. No one view replaces checking test assumptions, data quality, and the context of the analysis.
The main limitations are therefore interpretive. The plot depends on valid p-values and an appropriate reference; dependence can alter the expected scatter; and visual departures are not causal diagnoses. A careful reading states what part of the distribution departs, how broadly it departs, and what the figure cannot establish.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions below.
- On a plot of \(-\log_{10}(p)\) against expected \(-\log_{10}(p)\), what does a point above the diagonal mean?
- For \(m=999\) tests, find \(q_i\) and the expected horizontal coordinate at rank \(i=999\).
- A hypothetical scan follows the diagonal through its center but has four points well above it at the extreme end. What is a reasonable description, and what conclusion is not justified?
- Why can linkage disequilibrium affect the scatter around the reference even when individual null p-values are calibrated?
Solutions. (1) The observed p-value is smaller, and its test result more extreme, than the expected value at that rank under the reference. It does not establish the cause. (2) \(q_{999}=(999+1-999)/(999+1)=1/1000=0.001\). Thus \(x=-\log_{10}(0.001)=3\). (3) The departure is localized to a few extreme results, consistent with a small number of strong results affecting the tail. It is not justified to conclude from the plot alone that those results are genuine associations. (4) Correlated variants make the test results dependent, changing the variability and clustering of ranked values compared with the independent-p-value reference; marginal calibration does not make the joint results independent.