GGenomics UI
Components/Clinical & stats

QQ Plot

@genomics/qq-plot

Observed vs expected p-values, with λGC.

Preview

12,006 variants \u00b7 4,120 drawn \u00b7 \u03bbGC 1.065
Use left and right arrow keys to step between points, Home and End for the first and last, Enter to select, Escape to clear.

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} />
Source: components/ui/qq-plot.tsx