SAIGE-QTL builds on the previously proposed SAIGE21 and SAIGE-GENE22,23 tools, with some key additions: (1) the phenotype is modeled to follow a Poisson distribution, which is better suited for the single-cell expression count data; (2) random effect accounting for multiple cells per individual (in addition to the random effect accounting for relatedness between individuals); (3) improved computational efficiency for fitting Poisson mixed models with a random intercept; (4) ACAT-V27 test in addition to the Burden and SKAT for set-based tests for less frequent or rare genetic variants with multiple user-specified weights; (5) the Cauchy method (ACAT-O27) for gene-level P value combination to identify cis-eGenes; and (6) cis-window file as an input file to the open-access software to facilitate cis testing, and multi-gene implementation for genome-wide (trans) tests. The key steps are summarized below, and details of our method can be found in Supplementary Note.
SAIGE-QTL
In a scRNA-seq study that sequenced N cells from n individuals, a Poisson generalized linear mixed model is used to model the read counts from the jth cell of the ith individual. Here yij is distributed as (denoted by ~) a Poisson distribution, \({y}_{{ij}}\, \sim {{\rm{Poisson}}}({\mu }_{{ij}})\). Let Xcij denote pc cell-level covariates, such as cell states and cell-level expression PEER factors, including the intercept for the jth cell of the ith individual, and Xdi denote pd individual (donor)-level covariates, such as age, gender and genotype principal components for the ith individual. Let Gi ∈{0,1,2} represent minor allele counts (MACs) for the genetic variant of interest. The Poisson mixed model can be written as \({\mu }_{{ij}}=\exp \left({\eta }_{{ij}}\right)\) and \({\eta }_{{ij}}={X}_{{\rm{d}\it{i}}}{\alpha }_{\rm{d}}+{X}_{{\rm{c}\it{ij}}}{\alpha }_{\rm{c}}+{G}_{i}\beta +{b}_{i}\,\), where β, αd and αc are the regression coefficients of the genotype Gi and the covariates \({X}_{\rm{d}\it{i}}\) and \({X}_{{\rm{c}\it{ij}}}\), respectively. Formulating the model using matrices and vectors, let Z denote the N × n design matrix with 1s and 0s to indicate which individual each cell belongs to. The model can also be written as \(\eta ={X}_{\rm{c}}{\alpha }_{\rm{c}}+Z{X}_{\rm{d}}{\alpha }_{\rm{d}}+{ZG}\beta +Z{b}_{\rm{d}}\), where η is the N × 1 vector of ηij, Xc is the N × (pc + 1) matrix containing the cell-level covariates including the intercept, Xd is the n × pd matrix containing individual (donor)-level covariates and the random effect b = Zbd, where bd is the n × 1 vector of bi and is assumed to follow multivariate normal distribution \({b}_{\rm{d}} \sim {N}\left(0,{\sum }_{k=1}^{K}{\tau }_{k}{\varPsi }_{k}\right)\) with Ψk being the known K variance–covariance matrices, which can include the identity matrix to account for intra-individual variance of read counts across multiple cells and a sparse genetic relationship matrix to account for sample relatedness, if any. We test the null hypothesis of no genetic association: H0, β = 0 versus H1, β ≠ 0.
Estimating the variance component and other model parameters (step 1)
Similar to SAIGE21 and GMMAT51, SAIGE-QTL fit the null model \(\eta ={X}_{\rm{c}}{\alpha }_{\rm{c}}+Z{X}_{\rm{d}}{\alpha }_{\rm{d}}+Z{b}_{\rm{d}}\) in step 1. Model parameters are estimated iteratively using the PQL52 method and the AI-REML algorithm53. At iteration q, let \(\left({{\hat{\tau }}_{k}^{(q)}}\,,\,{{\hat{\alpha }}_{d}^{(q)}},\,{{\hat{\alpha }}_{c}^{(q)}},\,{{\hat{b}}_{d}^{\left(q\right)}}\right)\) be estimated as \(({\hat{\tau }}_{k},\,{\hat{\alpha }}_{\rm{d}},\,{\hat{\alpha }}_{\rm{c}},\,{\hat{b}}_{\rm{d}})\), let \({{\hat{\mu }}_{{ij}}^{(q)}}\) be the estimated mean of yij, \({\hat{W}}^{(q)}={{\rm{diag}}}\left({{\hat{\mu }}_{{ij}}^{(q)}}\right)\) and let \({\hat{\varSigma }}^{(q)}={\left\{{\hat{W}}^{(q)}\right\}}^{-1}\) \(+{\sum }_{k=1}^{K}{{\hat{\tau }}_{k}^{(q)}}{Z\varPsi }_{k}{Z}^{T}\) be an N × N variance matrix of the working vector \(\widetilde{y}={X}_{\rm{c}}{{\hat{\alpha }}_{\rm{c}}^{(q)}}+Z{X}_{\rm{d}}{{\hat{\alpha }}_{\rm{d}}^{(q)}}+Z{{\hat{b}}_{\rm{d}}^{(q)}}+\left(y-{\hat{\mu }}^{(q)}\right)/{\hat{\mu }}^{(q)}\).
The SMW formula is used to efficiently compute the product of \({\left\{{\hat{\varSigma }}^{(q)}\right\}}^{-1}\) and an N × 1 vector, s, at each iteration of model fitting. The SMW formula exploits the low-rank structure of \({\hat{\varSigma }}^{\left(q\right)}={A}^{-1}+{UCV}\), where \(A={\hat{W}}^{(q)},U=Z,C={\sum }_{k=1}^{K}{{\hat{\tau }}_{k}^{(q)}}{\varPsi }_{k}\) and V = ZT. This transforms the N × N matrix inversion problem into solving an n × n system: \({\left\{{\hat{\varSigma }}^{(q)}\right\}}^{-1}s=\)\(A\left(s-U{\left({C}^{-1}+{VAU}\right)}^{-1}{VAs}\right)\). This reduces the computational complexity from O(N3) to \(O\left({{\sum }_{k=1}^{K}{{nnz}}_{k}+{n}}^{2}+N\right)\), where n is the number of donors and nnzk is the number of non-zero elements in the kth n ×n sparse Ψk. When K = 1 with unrelated donors (Ψ1 = I), SMW reduces to closed-form block-wise operations with optimal O(N) complexity. SAIGE-QTL also implements the PCG30 approach for iteratively solving linear systems instead of inverting the N × N matrices directly. Computing the product of \({\hat{\varSigma }}^{(q)}\) and an N × 1 vector, s, requires only consecutive matrix–vector multiplications involving ZT, Ψk, Z and s, without pre-computing and storing the N × N matrix\(\,{Z\varPsi }_{{k}}{Z}^{{T}}.\) This reduces complexity from O(N3) to \(O({q}_{{{\rm{iter}}}}\left({\sum }_{k=1}^{K}{{nnz}}_{k}+N\right))\), where qiter is the number of PCG iterations.
Both approaches are particularly efficient as n ≪ N; for example, when millions of cells are generated from hundreds or thousands of donors. SAIGE-QTL defaults to SMW. When n is large and SMW incurs high memory usage, the PCG approach can be used for improved scalability.
Estimating the variance ratios
A score test statistic for H0, β = 0 is \(T={G}^{T}{Z}^{T}\left(Y-\hat{\mu }\right)\), where G is the n × 1 genotype vector, Y is the N × 1 phenotype vector with read counts from cells and \(\hat{\mu }\) is the N × 1 vector with an estimated mean of Y under H0. The variance of T is \({\rm{Va}}{\rm{r}}_{{H}_{0}}\left(T\right)={\widetilde{G}}^{T}\hat{P}\,\widetilde{G}\), where \(\hat{P}={\hat{\varSigma }}^{-1}-{\hat{\varSigma }}^{-1}X{\left({X}^{{T}}{\hat{\varSigma }}^{-1}X\right)}^{-1}{X}^{{T}}{\hat{\varSigma }}^{-1}\), \(\widetilde{G}\,={ZG}-{X}{({X}^{T}\hat{W}X)}^{-1}{X}^{T}\hat{W}{ZG}\) is the covariate-adjusted genotype vector, \(X\) is the \({N}\times \,({p}_{\rm{c}}+1\,+\,{p}_{\rm{d}})\) matrix with all covariates including the intercept and \(\,{X}=\,\left[{X}_{\rm{c}}Z{X}_{\rm{d}}\right]\). For each genetic variant, given \(\hat{P}\), the calculation of \({\rm{Va}}{\rm{r}}_{{H}_{0}}\left(T\right)\) requires \(O({N}^{2})\) computation. Similar to SAIGE21, BOLT-LMM54 and GRAMMAR-Gamma55, let \({{\rm{Var}}}_{{H}_{0}}\left(T\right)* ={\widetilde{G}}^{T}\hat{W}\widetilde{G}\), which does not incorporate random effects, and it has been shown previously21,54,55,56 that \({\rm{Va}}{\rm{r}}_{{H}_{0}}(T)/{\rm{Va}}{\rm{r}}_{{H}_{0}}{(T)}^{* }\) is approximately constant for all genetic variants with MAC ≥ 20.
Here we estimate two variance ratios. First, similar to what has been used in the GWAS method fastGWA-GLMM57, we use the unadjusted (but mean-centered) genotype data, \({G}_{\rm{c}}\,={Z}(G-\frac{1}{n}({1}^{T}G)1)\,\), where 1 is a column vector of ones of size n × 1, to calculate \({\rm{Va}}{\rm{r}}_{{H}_{0}}{({T}_{\rm{c}})}^{*} \,=\,{{G}_{\rm{c}}^{T}}\hat{W}\,{G}_{\rm{c}}\) and then estimate the variance ratio \({\hat{r}}_{\rm{c}}={\rm{Va}}{\rm{r}}_{{H}_{0}}(T)/{\rm{Va}}{\rm{r}}_{{H}_{0}}{({T}_{\rm{c}})}^{* }\). Second, to approximate \({\rm{Va}}{\rm{r}}_{{H}_{0}}(T)\) more accurately, we incorporate the random effects via \({\hat{\varSigma }}^{-1}\) into the denominator to estimate the variance ratio \(\hat{r}={\rm{Va}}{\rm{r}}_{{H}_{0}}(T)/{\rm{Va}}{\rm{r}}_{{H}_{0}}{(T)}^{* }\), where \({\rm{Va}}{\rm{r}}_{{H}_{0}}{(T)}^{* }={{\widetilde{G}}_{\rm{d}}^{T}}\,{\hat{\varSigma }}^{-1}{\widetilde{G}}_{\rm{d}}.\hat{r}\) has lower variation than \({\hat{r}}_{\rm{c}}\) as previously demonstrated in SAIGE-GENE22. To further improve the computational efficiency, we use the donor-level covariates and intercept-adjusted genotype vector \({\widetilde{G}}_{\rm{d}}\,={ZG}-\,{{ZX}}_{{\rm{d}\it{I}}}\) \({({{X}_{{\rm{d}\it{I}}}}^{T}{Z}^{T}\hat{W}{{ZX}}_{{\rm{d}\it{I}}})}^{-1}\) \({{X}_{{\rm{d}\it{I}}}}^{T}{Z}^{T}\hat{W}{ZG}\) to compute \({\rm{Va}}{\rm{r}}_{{H}_{0}}{(T)}^{* }\) and then estimate \(\hat{r}\). With pre-computed \({Z}^{T}{\hat{\varSigma }}^{-1}Z\) and \({Z}^{T}\hat{W}Z\), the computation cost of \({\rm{Va}}{\rm{r}}{(T)}^{* }\) is \(O((1\,+\,{p}_{\rm{d}}){n}^{2})\) and \({\rm{Va}}{\rm{r}}{({T}_{\rm{c}})}^{* }\) is O(n), respectively, instead of O(N).
We have shown that \(\hat{r}\) and \({\hat{r}}_{\rm{c}}\) are approximately constant for all genetic variants (Supplementary Note). To estimate \(\hat{r}\) and \({\hat{r}}_{\rm{c}}\), we calculate the variance ratios starting with 30 randomly selected genetic variants at an increment of ten genetic variants until the coefficient of variation is smaller than 0.001 and calculate the mean of the variance ratios as \(\hat{r}\) and \({\hat{r}}_{\rm{c}}\), respectively.
Score test for single variants and set-based tests for rare variants (step 2)
Using the estimated variance ratio \({\hat{r}}_{\rm{c}}\), the variance-adjusted test statistic can be calculated as \({T}_{\rm{adj}}=\frac{{G}^{T}{Z}^{{T}}(Y-\hat{\mu })}{\sqrt{{\hat{r}}_{\rm{c}}{{G}_{\rm{c}}}^{T}\hat{W}\,{G}_{\rm{c}}}}\), which, under the null hypothesis, has mean of zero and variance unity. For variants with P < 0.05, we use \(\hat{r}\) to re-calculate \({T}_{\rm{adj}}=\frac{{G}^{T}{Z}^{T}(Y-\hat{\mu })}{\sqrt{{{\hat{r}\widetilde{G}}_{\rm{d}}}^{T}\,{\hat{\varSigma }}^{-1}{\widetilde{G}}_{\rm{d}}}}\). This strategy allows SAIGE-QTL to reduce the computation cost to calculate Tadj from \(O((1\,+\,{p}_{\rm{d}}){n}^{2})\) to O(n) for ~95% of genetic markers. In addition, it has been previously observed that the asymptotic normality assumption of the score test statistic Tadj leads to severe type I error inflation for low-frequency and rare variants in the context of logistic mixed models with unbalanced case–control ratios21,22,23 and the modified Poisson mixed model when the event rate is low56. SPA24 has been used to successfully approximate Tadj for better-controlled type I error rates. In SAIGE-QTL, we also implement and apply SPA to obtain a better approximation of the distribution of Tadj to obtain more accurate P values (Supplementary Note).
For eQTL analysis of rare variants, owing to the lack of power of single-variant tests, SAIGE-QTL conducts set-based tests, including the Burden, SKAT26 and ACAT-V27 tests. Test statistics of the Burden and SKAT tests can be constructed based on score statistics from the marginal model for individual variants in the testing set, and test statistics of the ACAT-V27 test can be constructed using P values from the marginal model for individual variants. Following what has been proposed in SAIGE-GENE+23, to reduce data sparsity owing to ultra-rare variants, before testing each variant set, ultra-rare variants with MAC ≤ 20 are collapsed in SAIGE-QTL to a pseudo-variant, and then the pseudo-variant is tested together with all other variants with MAC > 20. In addition, multiple functional annotations and maximum MAF cutoffs are allowed to be incorporated into the set-based tests to improve power, and P values are combined using the minimum P value or Cauchy combination method27.
Calculating gene-level P values for identifying cis-eGenes (step 3)
In step 3, the gene-level P value for each gene is calculated by combining the variant-level P values of common variants (MAF > 5% is used in the OneK1K study) using the ACAT-V27 test based on the Cauchy combination as recently suggested in the linear mixed model method for eQTL mapping, APEX31. We assume that there are M genetic variants in the cis-region, let \({T}_{{{\rm{ACAT}}}}\,=\,{\sum }_{m=1}^{M}{v}_{{m}}\tan \{(0.5-{p}_{{m}})\uppi \}\), where pm is the P value for the mth variant, vm is the weight for the mth variant and let \(v={\sum }_{m=1}^{M}{v}_{{m}}.\) The P value of ACAT is approximated by \({p}_{{{\rm{ACAT}}}}\approx 1/2\,-\,\{\arctan \,({T}_{{{\rm{ACAT}}}}\,/v)\}/\uppi\). It is a computationally efficient approach to combine P values, which is robust to the correlation between individual P values27. It provides highly concordant gene-level P values compared to those obtained using the beta approximation method32,33 (Extended Data Fig. 2), but is much faster as it does not require any permutations to be performed. It also allows for incorporating variant-level weights; for example, dTSS, to improve the power to detect cis-eGenes.
OneK1K analysis
We consider the OneK1K dataset as it is available from the original publication7. This includes genotypes (from SNP array data) and scRNA-seq from 14 different immune cell types for 1,267,758 peripheral blood mononuclear cells and 982 individuals of European ancestry from the Tasmanian Ophthalmic Biobank in Tasmania, Australia. For eQTL mapping with both SAIGE-QTL and TensorQTL, we considered the same covariates used for eQTL mapping in the original paper: sex and age of the individuals, six genotype principal components and two PEER factors calculated from gene expression from each cell type separately. Given that the original study used pseudobulk aggregate counts, the PEER factors are defined per individual, not cell, so we kept those values here (that is, all cells for a given individual were assigned the same PEER factor value). As in the original publication7, the SCTransform v1 function in the Seurat R package58 was used to normalize read counts by total reads and account for batch and mitochondrial gene percentage, while still returning Poisson counts. The corrected read counts were used as input for step 1 in SAIGE-QTL to fit null Poisson mixed models for each gene in different cell types.
For each gene in each cell type, we calculated the gene-level P value in step 3 based on all genetic variants within a 1 Mb window around the gene body with MAF > 5%. No weights are incorporated in the Cauchy combinations for a fair comparison with the results using TensorQTL.
Data simulation for type I error evaluation
To evaluate false-positive control, we used real OneK1K single-cell read counts with permuted donor genotypes across three representative cell types (CD4NC, BIN and plasma) spanning a range of gene-level expression sparsity (Supplementary Tables 1 and 4). For each gene, we fit the null model on real counts (step 1), then permuted donor identities before single-variant (step 2a) and set-based (step 2b) association testing on chromosome 1, repeating permutations to obtain sufficient tests for evaluating empirical type I error across a range of significance thresholds (Supplementary Tables 5 and 6). The set tests were repeated ten times with permuted individual IDs, and the quantile–quantile plots are shown in Extended Data Fig. 6. Full simulation design and results are in Supplementary Note (Calibration of SAIGE-QTL under permutation).
Data simulation for comparing SAIGE-QTL to pseudobulk eQTL methods
To compare calibration and power against pseudobulk methods (TensorQTL, jaxQTL), we simulated single-cell gene expression using a Poisson mixed-effects model with donor-level random intercepts, based on 2,100 linkage disequilibrium-pruned chromosome 22 variants (MAF > 0.05) from OneK1K, for three representative cell types (CD4NC, BIN and plasma). Type I error was evaluated under the null hypothesis, and we considered even and uneven per-donor cell-count designs and four levels of cell-level expression sparsity (5%, 25%, 75%, 95% non-zero coverage). Power was evaluated by adding a single causal variant (MAF = 0.2), and for each cell type, power was evaluated across four cell coverage levels corresponding to the empirical 25th, 50th, 75th and 90th percentiles of non-zero expression coverage, reflecting empirical single-cell data in which cell-level coverage is often low and highly right-skewed across cell types (Supplementary Fig. 13). Empirical power and corresponding 95% confidence intervals were computed across 500 replicates. We additionally varied cell-level covariate effect size and per-donor cell-count heterogeneity to assess their impact on the relative power of SAIGE-QTL versus pseudobulk methods. Full simulation design and results are in Supplementary Note (Comparison with pseudobulk eQTL methods: cost, calibration and power).
CD4NC cell subsetting
For the subsetting analysis (Fig. 1d), we considered the most abundant cell type from OneK1K: CD4NC. For each percentage level of subsetting (1%, 5%, 10%, 20% and 50%), we subsetted the number of total cells to that percentage, while retaining the cell-to-donor ratio for each individual included. Next, we re-mapped cis-eQTLs using SAIGE-QTL for each set, maintaining all other settings (covariates included, cis-window size). Only genes expressed in at least 1% of the cells were tested, so those numbers decreased for smaller sets. Pseudobulking for TensorQTL was performed post subsetting, by considering the mean expression for each gene, cell type and individual. These values were then logged before eQTL mapping to mirror the approach used in the OneK1K paper7.
Mendelian randomization analysis
To identify genes whose expression levels are associated with human complex disease risk, we used the SMR59 framework and used the top associated cis-eQTL of the gene as an instrumental variable. We input the eQTL summary statistics of the OneK1K cohort from SAIGE-QTL and four GWAS summary statistics of autoimmune diseases: Crohn’s disease37, IBD37, rheumatoid arthritis38 and SLE39. We also ran the SMR tool using the eQTL summary obtained from Matrix eQTL34 for the same 14 cell types as a comparison. A HEIDI (HEterogeneity In Dependent Instruments) test implemented in the SMR framework was further performed to distinguish pleiotropy or causality from linkage. The genes that are not rejected by the HEIDI test indicate that the gene expression levels are associated with the disease risk owing to pleiotropy or causality at one shared genetic variant.
For each cell type, we calculated the q-values of each SNP–gene pair (the SNPs within a 1 Mb window around the gene body) and only tested the genes whose top associated cis-eQTLs passed the threshold of FDR < 5%, to match what we used throughout the study (the thresholds used for each method and cell type are provided as Supplementary Table 14). Specifically, for each cell type, we considered the weakest eGene still under the threshold of FDR < 5%. Then, we considered the smallest P value for that gene across the cis-SNPs tested (note that this necessarily results in the number of genes tested being different between SAIGE-QTL and Matrix eQTL). The significance of the SMR test was determined at a P value from SMR < 0.05 / M, where M is the total number of genes tested in each cell type.
Trans-eQTL mapping
For each of the three representative cell types (CD4NC, BIN and plasma), considering the large number of tests and limited power for detecting trans-eQTLs with low frequency, we conducted genome-wide single-variant tests for all common variants with MAF > 10%. We define trans signals as those outside of a 2 Mb window around the gene on the same chromosome, as well as all inter-chromosome associations. Additionally, we exclude the MHC region on chromosome 6.
We report results at two different significance levels: P < 5 × 10−6 (Supplementary Fig. 5) and P < 5 × 10−8 (Fig. 3). At P < 5 × 10−8, we identified 223 trans-eQTLs for CD4NC, 124 for BIN and 69 for plasma (211, 120 and 69 unique genes, respectively), for a total of 413 trans-eQTLs for 390 unique genes across all three cell types. At P < 5 × 10−6, we identified 47,210 trans-eQTLs for CD4NC, 33,936 for BIN and 13,677 for plasma (12,693, 10,477 and 5,460 unique genes, respectively), for a total of 94,795 trans-eQTLs for 13,159 unique genes across all three cell types.
Rare variant testing
When testing for the effects of rare variation (MAF ≤ 5%) on single-cell gene expression, we used the Burden, SKAT and ACAT-V tests, and used the Cauchy approach to combine P values. We also considered three sets of weights: equal weights, in which each variant is assigned the same weight; weights following a Beta(1,25) distribution, as commonly used in rare variant association tests; and weights based on a variant’s dTSS. For the latter, we followed the procedure outlined by the APEX authors31, in which each variant received a weight proportional to \({{\rm{e}}}^{-\gamma \left|d\right|}\), where d is the number of base pairs between the variant and the TSS and γ = 10−5. Additionally, to determine the independence of these signals from common variant effects, we performed conditional analysis, conditioning on all common variant eQTL signals at FDR < 5%, across all five rounds of conditional analysis (Supplementary Fig. 7).
Inclusion and ethics statement
All collaborators of this study who have fulfilled the criteria for authorship required by Nature Portfolio journals have been included as authors, as their participation was essential for the design and implementation of the study. This work includes findings that are locally relevant, which have been determined in collaboration with local partners. This research was not severely restricted or prohibited in the setting of the researchers, and does not result in stigmatization, incrimination, discrimination or personal risk to participants. Local and regional research relevant to our study was taken into account in citations.
Reporting summary
Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.