QQ Plot
@genomics/qq-plot
Observed vs expected p-values, with λGC.
Preview
12,006 variants \u00b7 4,120 drawn \u00b7 \u03bbGC 1.065
About
A Manhattan plot shows where the signal is; it can't show whether the signal is real. Stratification, cryptic relatedness, and a misspecified model all produce genome-wide 'hits' that look exactly like biology there and are obvious here — under the null, the bulk must lie on the diagonal. λGC puts a number on it (≈1.0 clean, >1.1 needs explaining). Points are thinned before drawing since the null bulk is solid overplotting long before a million variants, but everything above the significance floor is always drawn, so no real hit is ever thinned away.
Usage
import { QqPlot } from "@/components/ui/qq-plot"
<QqPlot pvalues={pvalues} labels={rsids} />Registry dependencies
Source:
components/ui/qq-plot.tsx