<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Testing and controlling for horizontal pleiotropy with probabilistic Mendelian randomization in transcriptome-wide association studies</title></titleStmt>
			<publicationStmt>
				<publisher>Nature Communications</publisher>
				<date>12/01/2020</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10480494</idno>
					<idno type="doi">10.1038/s41467-020-17668-6</idno>
					<title level='j'>Nature Communications</title>
<idno>2041-1723</idno>
<biblScope unit="volume">11</biblScope>
<biblScope unit="issue">1</biblScope>					

					<author>Zhongshang Yuan</author><author>Huanhuan Zhu</author><author>Ping Zeng</author><author>Sheng Yang</author><author>Shiquan Sun</author><author>Can Yang</author><author>Jin Liu</author><author>Xiang Zhou</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[<title>Abstract</title> <p>Integrating results from genome-wide association studies (GWASs) and gene expression studies through transcriptome-wide association study (TWAS) has the potential to shed light on the causal molecular mechanisms underlying disease etiology. Here, we present a probabilistic Mendelian randomization (MR) method, PMR-Egger, for TWAS applications. PMR-Egger relies on a MR likelihood framework that unifies many existing TWAS and MR methods, accommodates multiple correlated instruments, tests the causal effect of gene on trait in the presence of horizontal pleiotropy, and is scalable to hundreds of thousands of individuals. In simulations, PMR-Egger provides calibrated type I error control for causal effect testing in the presence of horizontal pleiotropic effects, is reasonably robust under various types of model misspecifications, is more powerful than existing TWAS/MR approaches, and can directly test for horizontal pleiotropy. We illustrate the benefits of PMR-Egger in applications to 39 diseases and complex traits obtained from three GWASs including the UK Biobank.</p>]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>G</head><p>enome-wide association studies (GWASs) have identified many SNPs associated with common diseases and disease related traits. Parallel expression quantitative trait loci (eQTL) mapping studies have also identified many cis-acting SNPs associated with gene expression level. Integrating the existing association results from both GWASs and eQTL mapping studies has the potential to shed light on the molecular mechanisms underlying disease etiology. Several statistical methods have been recently proposed for such integrative analysis. For example, PrediXcan 1 performs a weighted SNP set test in GWAS using SNP weights inferred from eQTL studies. TWAS <ref type="bibr">2</ref> infers the association between gene expression and disease trait by leveraging cis-SNP information. SMR <ref type="bibr">3</ref> or GSMR <ref type="bibr">4</ref> directly tests the causal association between gene expression and disease trait under a Mendelian randomization (MR) framework, using either a single instrument or multiple independent instruments. While each of these integrative methods was originally proposed to solve a different problem, as we will show here, all of them can be viewed as a two-sample MR method with different modeling assumptions. Because of their relationship to MR, these methods effectively attempt to identify genes causally associated with diseases or complex traits in the context of transcriptome-wide association studies (TWAS).</p><p>MR analysis is a form of instrumental variable analysis for causal inference <ref type="bibr">5</ref> . MR aims to determine the causal relationship between an exposure variable (e.g., gene expression) and an outcome variable (e.g., complex trait) in observational studies. MR treats SNPs as instrumental variables for the exposure variable and uses these SNP instruments to estimate and test the causal effect of the exposure on the outcome. MR methods have been widely applied to investigate the causal relationship among various complex traits <ref type="bibr">6</ref> , and, through a two-sample design, can be easily adapted to settings where the exposure and outcome are measured on two different sets of individuals. However, MR analysis for TWAS applications is not straightforward and requires the development of new methods that can accommodate two important features of TWAS analysis.</p><p>First, both GWASs and eQTL mapping studies collect SNPs that are in high linkage disequilibrium (LD) with each other. Traditional MR methods, such as the random effects version or the fixed effect version of the inverse variance weighted regression <ref type="bibr">7</ref> , MR-Egger 8 , median-based regression <ref type="bibr">9</ref> , SMR <ref type="bibr">3</ref> , or GSMR <ref type="bibr">4</ref> , can only make use of a single SNP instrument or multiple independent SNP instruments. Handling only independent SNPs is restrictive, as most exposure variables/molecular traits are polygenic/omnigenic in nature and are influenced by multiple SNPs that are in potential LD with each other. Consequently, incorporating multiple correlated SNPs can often help explain a greater proportion of variance in the exposure than using independent SNPs and improve MR power <ref type="bibr">5,</ref><ref type="bibr">[10]</ref><ref type="bibr">[11]</ref><ref type="bibr">[12]</ref> . Due to the benefits of using multiple correlated instruments, most TWAS methods (e.g., PrediXcan 1 , TWAS 2 , CoMM <ref type="bibr">13</ref> , DPR <ref type="bibr">14</ref> , TIGAR <ref type="bibr">15</ref> ) rely on polygenic modeling assumptions to incorporate all cis-SNPs that are in high LD for TWAS applications. By incorporating all cis-SNPs, as we will show below, these methods can lead to substantial power improvement over standard MR approaches that use only a few independent SNPs. Unfortunately, many TWAS methods rely on a two-stage MR inference procedure: they estimate SNP effect sizes in the exposure study and plug in these estimates to the outcome study for causal effect inference. The two-stage inference procedure in MR fails to account for the uncertainty in parameter estimates in the exposure study, which can lead to biased causal effect estimates and power loss <ref type="bibr">5,</ref><ref type="bibr">11,</ref><ref type="bibr">13</ref> . Therefore, it is important to incorporate multiple correlated instruments in a likelihood inference framework for MR analysis in TWAS applications.</p><p>Second, perhaps more importantly, SNP instruments exhibit pervasive horizontal pleiotropic effects <ref type="bibr">16</ref> . Horizontal pleiotropy occurs when a genetic variant affects the outcome variable through pathways other than or in addition to the exposure variable <ref type="bibr">17</ref> . Horizontal pleiotropy is widely distributed across the genome, affects a wide spectrum of complex traits, and can be driven by LD and extreme polygenicity of traits <ref type="bibr">16,</ref><ref type="bibr">18</ref> . Despite its wide prevalence, however, only a limited number of MR methods have been developed to test and control for horizontal pleiotropy; even fewer are applicable for TWAS applications. For example, some existing methods (e.g., MR-PRESSO <ref type="bibr">16</ref> ) test for horizontal pleiotropic effects without directly controlling for them. Some methods (e.g., CaMMEL <ref type="bibr">19</ref> ) control for horizontal pleiotropic effects without directly testing them <ref type="bibr">20,</ref><ref type="bibr">21</ref> . Some methods (e.g., Egger regression <ref type="bibr">8,</ref><ref type="bibr">22</ref> , GLIDE <ref type="bibr">23</ref> , GSMR <ref type="bibr">4</ref> , MR-median method <ref type="bibr">9</ref> , profile score approach <ref type="bibr">24</ref> , MRMix <ref type="bibr">25</ref> , and Bayesian MR <ref type="bibr">26,</ref><ref type="bibr">27</ref> ) test and control for horizontal pleiotropic effects, but can only accommodate independent instruments. As far as we are aware, there is only one two-sample MR method currently developed for testing and controlling for pleiotropic effects in the presence of correlated instruments: LDA MR-Egger <ref type="bibr">28</ref> . Unfortunately, as we will show below, LDA MR-Egger cannot handle realistic LD pattern among cis-SNPs for TWAS applications.</p><p>Here, we develop a generative two-sample MR method in a likelihood framework, which we refer to as the probabilistic twosample Mendelian randomization (PMR), to perform MR analysis using multiple correlated instruments for TWAS applications. Within the PMR framework, we focus on a particular horizontal pleiotropy effect modeling assumption based on the burden test assumption commonly used for rare variant test. This particular horizontal pleiotropy effect effectively generalizes the Egger-regression assumption commonly used for MR analysis to correlated instruments. We refer to our method as PMR-Egger. With simulations and real data applications, we show that PMR-Egger provides calibrated type I error for causal effect testing in the presence of horizontal pleiotropic effects, is more powerful than existing MR approaches, can directly test for horizontal pleiotropy, and is scalable to hundreds of thousands of individuals.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Results</head><p>Method overview. PMR-Egger is described in the Methods, with technical details provided in the Supplementary Notes. PMR-Egger relies on a MR likelihood framework (Supplementary Fig. <ref type="figure">1</ref>) that unifies many existing TWAS and MR methods (Table <ref type="table">1</ref>), facilitating the understanding of these existing TWAS/ MR approaches. For TWAS applications, PMR-Egger examines one gene at a time and estimates and tests its causal effect on a trait of interest. PMR-Egger models multiple correlated instruments, performs MR inference in a maximum likelihood inference framework, is capable of testing and controlling for horizontal pleiotropic effects commonly encountered in TWAS, and is computationally efficient (Table <ref type="table">2</ref>).</p><p>Simulations: testing and estimating the causal effect. We performed simulations to examine the effectiveness of PMR-Egger, and compared it with existing MR approaches. Simulation details are provided in the Methods. Our first set of simulations is focused on causal effect testing. We compared PMR-Egger with five methods that include SMR, PrediXcan, TWAS, CoMM, and LDA MR-Egger. We first examined type I error control of different methods under the null (&#945; = 0). In the absence of horizontal pleiotropic effects, PMR-Egger, together with PrediXcan, TWAS, and CoMM, all provides calibrated type I error (Fig. <ref type="figure">1a</ref>). In contrast, SMR produces overly conservative/deflated p-values as previously observed <ref type="bibr">29</ref> while LDA MR-Egger produces inflated p-values. The poor performance of LDA MR-Egger is presumably due to its fixed effect assumption on &#946;, which is not expected to work well in TWAS setting, where the number of SNPs is on the same order of the sample size in gene expression study and where the cis-SNPs are all highly correlated with each other due to LD (Supplementary Fig. <ref type="figure">2</ref>). In the presence of horizontal pleiotropic effects, PMR-Egger becomes the only method that produces calibrated (or slightly conservative) p-values (Fig. <ref type="figure">1b-d</ref>). In contrast, the p-values from all other methods become inflated, and more so with increasingly large horizontal pleiotropic effect. For example, when &#947; is 5 &#215; 10 -4 , the genomic control factors from PMR-Egger, SMR, PrediXcan, TWAS, CoMM, and LDA MR-Egger are 0.93, 1.30, 1.33, 1.33, 1.49, and 2.61, respectively. When &#947; is increased to 1 &#215; 10 -3 , the genomic control factors from PMR-Egger, SMR, PrediXcan, TWAS, CoMM, and LDA MR-Egger become 0.93, 2.39, 2.27, 2.46, 4.03, and 2.57 respectively. The null p-value distributions from different methods remain largely similar regardless whether the genetic architecture underlying gene expression is sparse or polygenic (Supplementary Fig. <ref type="figure">3</ref>), regardless of the gene expression heritability (Supplementary Fig. <ref type="figure">4</ref>), and regardless whether the SNP effects on gene expression are simulated to be correlated with respect to LD or not (Supplementary Fig. <ref type="figure">5a</ref>, <ref type="figure">b</ref>).</p><p>Like MR-Egger, PMR-Egger also makes a relatively strong assumption on pleiotropy that all SNPs have the same horizontal pleiotropic effect. To examine robustness of such assumption, besides the above settings where either 0 or 100% SNPs have horizontal pleiotropic effects, we varied the proportion of horizontal pleiotropic SNPs to be either 10%, 30%, or 50%. We found that PMR-Egger p-values remain calibrated regardless of the sparsity of the horizontal pleiotropic SNPs (Supplementary Fig. <ref type="figure">6</ref>). In addition, besides the above directional pleiotropy settings where the ratio of SNPs with negative vs positive effects is set to be 0:10, we also examined two approximately directional pleiotropy settings (1:9 or 3:7) and one balanced setting (5:5). We found that PMR-Egger p-values remain calibrated in either the approximately directional pleiotropy settings or the balanced setting when the horizontal pleiotropic effect is small or moderate (&#947; = 1 &#215; 10 -4 , 5 &#215; 10 -4 , or 1 &#215; 10 -3 ; Supplementary Fig. <ref type="figure">7a-c</ref>). However, when horizontal pleiotropic effect is large (&#947; = 2 &#215; 10 -3 ), as one would expect, PMR-Egger p-values become inflated, with genomic control factor being 1.08, 1.31, and 1.37, for settings where the ratio is 1:9, 3:7, and 5:5, respectively (Supplementary Fig. <ref type="figure">7d</ref>). Cross-gene-based simulations also provide consistent results (Supplementary Figs. <ref type="figure">8</ref><ref type="figure">9</ref><ref type="figure">10</ref><ref type="figure">11</ref><ref type="figure">12</ref>). Although we code genotypes based on allele frequency and kept such coding consistent between simulation and analysis, we found that the results remain consistent when we randomly flip the genotypes of a fraction of SNPs before analysis so that genotype coding does not match between simulation and analysis (Supplementary Fig. <ref type="figure">13</ref>). Orienting genotypes based on the sign of SNP effects on gene expression <ref type="bibr">22</ref> in the analysis also yielded largely consistent results with small deflation of p-values observable in the presence of large horizontal pleiotropic effects (Supplementary Fig. <ref type="figure">14a-c</ref>).</p><p>Next, we examined the power of different methods to detect non-zero causal effect across various causal effect sizes &#945;. Because the same p-value from different methods may correspond to different type I errors, we computed power based on false discovery rate (FDR) of 0.1 instead of a nominal p-value threshold to allow for fair comparison among methods. When horizontal pleiotropic effects are absent or small, PMR-Egger, TWAS and CoMM have similar power, all outperforming the other three methods, highlighting the importance of making polygenic assumptions on &#946; and modeling all cis-SNPs together (Fig. <ref type="figure">2a</ref>, <ref type="figure">b</ref>). The power of PMR-Egger is slightly lower than the other two, presumably because PMR-Egger uses extra parameters to model horizontal pleiotropy, which leads to a loss of degrees of freedom and subsequent loss of power in the absence of horizontal pleiotropy. The power of all methods increases with &#945;, though their relative performance rank does not change. In the presence of horizontal pleiotropy, the power of all methods reduces (Fig. <ref type="figure">2c</ref>, <ref type="figure">d</ref>). However, the power reduction from PMR-Egger is substantially smaller than the other methods. In terms of &#946; (Supplementary Fig. <ref type="figure">15</ref>), we found that the power of different methods in the setting where 10% of SNPs have non-zero effects on gene expression are similar to the baseline setting where all SNPs have non-zero effects, either in the absence (Supplementary Fig. <ref type="figure">15e</ref> vs Fig. <ref type="figure">2a</ref>) or presence of horizontal pleiotropic effects (Supplementary Fig. <ref type="figure">15f</ref> vs Fig. <ref type="figure">2d</ref>). However, the relative performance of different methods changes when only one SNP or 1% of SNPs have non-zero effect on gene expression. Specifically, in the absence of horizontal pleiotropic effects, the power of both PrediXcan and SMR become slightly higher than PMR-Egger, TWAS and CoMM, all of which have substantially higher power than LDA MR-Egger (Supplementary Fig. <ref type="figure">15a</ref>, <ref type="figure">c</ref>). The higher power of PrediXcan and SMR in the sparse setting is presumably because the ElasticNet estimation procedure in PrediXcan favors a sparse set of eQTLs while SMR explicitly makes a single eQTL assumption. In the presence of horizontal pleiotropic effects, however, PMR-Egger remains the most powerful, even in the setting where only one SNP has non-zero effect on gene expression (Supplementary Fig. <ref type="figure">15b</ref>, <ref type="figure">d</ref>). Cross-gene-based simulations also provide consistent results (Supplementary Figs. 16-17). Orienting genotypes based on the sign of SNP effects on gene expression <ref type="bibr">22</ref> yielded close to zero power, presumably because such approach violates the normality assumption on &#946; (Supplementary Fig. <ref type="figure">14d</ref>). Finally, PMR-Egger produces accurate estimate of the causal effect &#945;, both under the null and under various alternatives, in the presence or absence of horizontal pleiotropic effects (Supplementary Fig. <ref type="figure">18</ref>), and regardless of the directionality of horizontal pleiotropy (Supplementary Fig. <ref type="figure">19a</ref>, <ref type="figure">c</ref>, <ref type="figure">e</ref>).</p><p>Simulations: testing and estimating pleiotropic effect. Our second set of simulations focus on horizontal pleiotropic effect testing. We compared PMR-Egger with LDA MR-Egger and MR-PRESSO. All three methods examine one gene at a time and test whether cis-SNPs within the gene exhibit non-zero horizontal pleiotropic effects.</p><p>We first examined type I error control of different methods under the null. We found that PMR-Egger provide calibrated type I error control under a range of causal effect sizes &#945; (Fig. <ref type="figure">3</ref>). However, p-values from both LDA MR-Egger and MR-PRESSO are inflated, and more so with increasingly large &#945;. The overly inflated p-values from LDA MR-Egger is presumably due to its fixed effect modeling assumption on &#946; and the subsequent failure to control for realistic LD patterns. The inflation of MR-PRESSO p-values is presumably because MR-PRESSO can only handle independent instruments and thus does not fare well in TWAS settings. Importantly, PMR-Egger p-values remain calibrated regardless of the genetic architecture underlying gene expression (Supplementary Fig. <ref type="figure">20</ref>) and regardless whether the SNP effects on the gene expression are correlated with respect to LD or not (Supplementary Fig. <ref type="figure">5c</ref>, <ref type="figure">d</ref>). Cross-gene-based simulations also provide consistent results (Supplementary Figs. <ref type="figure">21</ref> and <ref type="figure">22</ref>).</p><p>Next, we examined the power of different methods in detecting non-zero horizontal pleiotropic effect based on an FDR of 0.1. We dropped MR-PRESSO due to its heavy computational burden. We found that the power of PMR-Egger and LDA MR-Egger increases with increasing horizontal pleiotropy, with PMR-Egger outperforming LDA MR-Egger across a range of settings (Fig. <ref type="figure">2e</ref>, <ref type="figure">f</ref>). The power of both methods is not influenced by the sparsity level of &#946; (Supplementary Fig. <ref type="figure">23</ref>) but depends on the sparsity level of &#947; (Supplementary Fig. <ref type="figure">24a</ref>). Specifically, power of both methods reduces with increasing sparsity of &#947;, though PMR-Egger remains more powerful than LDA MR-Egger across a range of sparsity values. Similarly, the power of both methods to detect pleiotropic effects also suffers in the absence of directional pleiotropic effect (Supplementary Fig. <ref type="figure">24b</ref>). Cross-gene-based simulations provide consistent results (Supplementary Figs. <ref type="figure">25</ref> and <ref type="figure">26</ref>).</p><p>PMR-Egger can estimate the horizontal pleiotropic effect accurately in the presence of directional pleiotropic effect (Supplementary Fig. <ref type="figure">27</ref>). However, in the absence of directional pleiotropic effect, as expected, the estimates of pleiotropic effects become downward biased, more so in the balanced setting than in the approximately directional pleiotropy settings (Supplementary Fig. <ref type="figure">19b</ref>, <ref type="figure">d</ref>, <ref type="figure">f</ref>).</p><p>Real data applications. We performed TWAS to detect genes causally associated with each of the 39 phenotypes from three GWASs (details in Methods). The gene expression data are obtained from the GEUVADIS study and contains</p><p>15,810 genes. The phenotypes include seven common diseases from Wellcome Trust Case Control study (WTCCC), 22 diseases from Kaiser Permanente/UCSF Genetic Epidemiology Research Study on Adult Health and Aging (GERA), and ten quantitative traits from UK Biobank. The GWAS sample size ranges from 4,686 (for Crohn's disease (CD) in WTCCC) to 337,198 (for UK Biobank).</p><p>The p-values for testing the causal effect of each gene on the phenotype from different methods are shown for WTCCC traits (Fig. <ref type="figure">4a</ref>, <ref type="figure">b</ref>; Supplementary Fig. <ref type="figure">28</ref>), GERA traits (Fig. <ref type="figure">5a</ref>, <ref type="figure">b</ref>; Supplementary Fig. <ref type="figure">29</ref>), and UK Biobank traits (Fig. <ref type="figure">6a</ref>, b; Supplementary Fig. <ref type="figure">30</ref>); with genomic control factors listed in Supplementary Table <ref type="table">1</ref> and visualized in (Figs. 4c, 5c and 6c). Note that the higher genomic control factor in UK Biobank as compared to WTCCC and GERA is expected under polygenic architecture <ref type="bibr">30</ref> and reflects at least in part the higher power in the UK Biobank as compared to GERA and WTCCC. While these main analyses use phenotypic residuals after regressing out the effects of top 10 genotype PCs, parallel analysis where the original phenotype was used as the outcome and the top 10 genotype PCs was used as covariates yielded consistent results (Supplementary Figs. 31-33). For illustration purpose, we display qq-plots for two selected traits in each data, one with a relatively low number of gene associations and the other with a relatively high number of gene associations. Among the selected six traits, the one with zero number of associated genes (bipolar disorder (BD) in WTCCC) and the one with one associated gene (irritable bowel syndrome in GERA), represent approximately null traits with no apparently associated genes. For the six selected traits, consistent with simulations, we found that PMR-Egger p-values are well calibrated, at least more so than the other methods. p-values from CoMM, TWAS, PrediXcan and especially LDA MR-Egger are inflated, while p-values from SMR are overly conservative. The results observed in these exemplary traits generalize to all other examined traits.</p><p>We examined the number of associated genes detected by different methods based on a Bonferroni corrected transcriptome-wide threshold (Figs. 4d, 5d and 6d; Supplementary Table <ref type="table">2</ref>). The number of detected genes based on this p-value threshold may artificially favor those methods that have inflated type I error control. For this analysis, we excluded LDA MR-Egger for comparison, as its p-values are overly inflated. Consistent with simulations, we found that SMR can barely detect any genes significantly associated with traits across all three data, much less so than that detected by the other four methods. We found that the number of gene-trait pairs detected by CoMM and PMR-Egger is higher than that detected by TWAS and PrediXcan in all three GWASs, again consistent with simulations as well as previous observations that likelihood-based inference often achieves higher power than two-stage inference. However, we do notice that PMR-Egger detects slightly lower number of gene-trait pairs than CoMM based on the same genome-wide pvalue threshold, consistent with the inflated genomic inflation factors observed for CoMM. Indeed, we found that the estimated j &#945; &#947; j for the common set of genes detected by both CoMM and PMR-Egger is higher than the set of genes only detected by CoMM across traits (Supplementary Fig. <ref type="figure">34</ref>). Therefore, the genes detected by CoMM but not PMR-Egger tend to have large &#947; j j and small j&#945;j, likely reflecting false associations due to horizontal pleiotropic confounding.</p><p>Overall, by controlling for horizontal pleiotropic effects, PMR-Egger detected many likely causal genes that other methods failed to detect. For example, the LNK/SH2B3 gene is only identified by PMR-Egger to be associated with platelet count in the UK Biobank (PMR-Egger p = 1.17 &#215; 10 -221 ; CoMM p = 0.98; TWAS p = 8.6 &#215; 10 -5 ; PrediXcan p = 0.68; SMR p = 0.024). The association between LNK and plate count is consistent with results from recent large-scale GWASs <ref type="bibr">31</ref> . LNK/SH2B3 encodes the lymphocyte adaptor protein (LNK) that is primarily expressed in hematopoietic and endothelial cells <ref type="bibr">32</ref> . In hematopoietic cells, LNK functions as a negative regulator of cell proliferation and the thrombopoietin-mediated cytokine signaling pathway, which is a key signaling pathway that promotes megakaryocytes to form platelets <ref type="bibr">32</ref> . Indeed, platelets are overproduced and accumulated in Lnk knockdown cells as well as Lnkknockout mouse <ref type="bibr">33</ref> , supporting a causal role of LNK in platelets production. As the second example, the NOD2 gene is identified by PMR-Egger to be associated with Crohn's disease (CD; p = 6.1 &#215; 10</p><p>-19 ), and, with a PVE zy Power a CoMM PMR-Egger TWAS LDA MR-Egger SMR PrediXcan b c Power e PMR-Egger LDA MR-Egger 0.002 0.003 0.004 0.005 0.006 0.0 0.2 0.4 0.6 PVE zy Power 0.002 0.003 0.004 0.005 0.006 0.0 0.2 0.4 0.6 PVE zy Power 0.002 0.003 0.004 0.005 0.006 0.0 0.2 0.4 0.6 PVE zy Power 0.002 0.003 0.004 0.005 0.006 PVE zy 0.002 0.003 0.004 0.005 0.006 0.0 0.2 0.4 0.6 PVE zy Power d 0.002 0.003 0.004 0.005 0.006 0.0 0.2 0.4 0.6 0.00 0.01 0.02 0.03 0.04 0.05 slightly less significance, also by CoMM (p = 7.8 &#215; 10 -15 ). The association between NOD2 and CD was not identified by the other methods (TWAS p = 0.005; PrediXcan p = 0.92; SMR p = 0.15). NOD2 encodes a cytosolic pattern recognition receptor that acts both as a cytoplasmic sensor of microbial products and as an important mediator of innate immunity and inflammatory response <ref type="bibr">34</ref> . The NOD2 gene is a well-known susceptible gene for CD and is perhaps one of the first genes ever implied for CD. Multiple SNPs in NOD2 have been found to be associated with CD in both early linkage studies <ref type="bibr">35</ref> and many recent GWASs <ref type="bibr">36</ref> . NOD2 variants associated with CD often reside in the ligand recognition domain of NOD2 and can lead to aberrant bacterial handling and antigen presentation <ref type="bibr">37</ref> . Indeed, Nod2-deficient mice displays dysregulated bacterial community in the ileum and Nod2-deficient ileal epithelia exhibit impaired ability of inducing immune responses for bacteria elimination <ref type="bibr">38</ref> . It is thus hypothesized that mis-regulation of NOD2 can causally lead to altered interactions between ileal microbiota and mucosal immunity, resulting in increased disease susceptibility to CD <ref type="bibr">38</ref> . As a third example, the TFRC gene is identified by PMR-Egger to be associated with red blood cell distribution width (RDW) in the UK Biobank (p = 3.3 &#215; 10 -17 ). Such association is not identified by the other methods (CoMM p = 0.95; TWAS p = 0.76; PrediXcan p = 0.97; SMR p = 0.38). TFRC encodes the classical transferrin receptor that is involved in cellular iron uptake <ref type="bibr">39</ref> .</p><p>Multiple SNPs in TFRC have been established to be associated with various erythrocyte phenotypes in GWASs <ref type="bibr">40</ref> . These associated erythrocyte phenotypes include the mean corpuscular hemoglobin (MCH) and mean corpuscular volume (MCV, the average volume of red blood cells) which is directly related to RDW <ref type="bibr">39,</ref><ref type="bibr">40</ref> . The variants in TFRC likely lead to decreased iron availability for red cell precursors, as has been observed in mice deficient in Tfrc, thus resulting in a compensatory increase of red blood cell size as measured by RDW 41 . The regional association plots for these three genes are presented in Supplementary Figs. 35-37.  We also compared the results from different MR methods with a recently published TWAS fine-mapping method, FOCUS <ref type="bibr">42</ref> (analysis details in "Methods" section). Briefly, we follow <ref type="bibr">42</ref> and focused on independent and non-overlapping genomic regions that harbor at least one genome-wide significant SNP and at least one significant TWAS gene (Supplementary Table <ref type="table">3</ref>). Due to the small number of associated genes detected in WTCCC, we focus mainly in GERA and UK Biobank. There, we found that the results from PMR-Egger is largely consistent with that of FOCUS, more so than the other methods (Supplementary Fig. <ref type="figure">38</ref>).</p><p>Next, we shift our focus to testing horizontal pleiotropic effects. The p-values for testing the horizontal pleiotropy effect of each gene on phenotype are shown for WTCCC traits (Fig. <ref type="figure">4e</ref>, <ref type="figure">f</ref>; Supplementary Fig. <ref type="figure">28</ref>), GERA traits (Fig. <ref type="figure">5e</ref>, <ref type="figure">f</ref>; Supplementary 4 Observed (-log 10 p value) Expected (-log 10 p value) 2 2 4 6 6 4 Observed (-log 10 p value) Expected (-log 10 p value) 2 2 4 6 6 4 Observed (-log 10 p value) Expected (-log 10 p value) 2 2 4 6 6 4 Observed (-log 10 p value) Expected (-log 10 p value) 2 2 4 6 CoMM PMR-Egger LDA MR-Egger PMR-Egger LDA MR-Egger TWAS SMR PrediXcan 1.4 1.2 1.0 Genomic inflation factor 0.8 0.6 150 100 Number of significant genes 50 0 15 10 Number of significant genes 5 0 1 2 3 WTCCC traits 4 5 6 7 1.4 1.2 1.0 Genomic inflation factor 0.8 0.6 1 2 3 WTCCC traits 4 5 6 7 1 2 3 WTCCC traits 4 5 6 7 1 2 3 WTCCC traits 4 5 6 7 CoMM PMR-Egger PMR-Egger TWAS SMR PrediXcan a b c d h g f e Fig. <ref type="figure">4</ref> TWAS analysis results by different methods for WTCCC traits. Compared methods include CoMM (turquoise), PMR-Egger (magenta), TWAS (blue), LDA MR-Egger (black), SMR (orange), and PrediXcan (purple). a Quantile-quantile plot of -log10 p-values from different methods for testing the causal effect for an exemplary trait BD. b Quantile-quantile plot of -log10 p-values from different methods for testing the causal effect for another exemplary trait T1D. c Genomic inflation factor for testing the causal effect for each of the seven traits by different methods. d Number of causal genes identified for each of the seven traits by different methods. e Quantile-quantile plot of -log10 p-values from different methods for testing the horizontal pleiotropic effect for an exemplary trait BD. f Quantile-quantile plot of -log10 p-values from different methods for testing the horizontal pleiotropic effect for another exemplary trait T1D. g Genomic inflation factor for testing the horizontal pleiotropic effect for each of the seven traits by different methods. h Number of genes identified to have significant horizontal pleiotropic effect for each of the 7 traits by different methods. For c, d, g, h, the number on the x axis represents seven traits in order: T1D, CD, RA, BD, T2D, CAD, HT.</p><p>6 4 Observed (-log 10 p value) Expected (-log 10 p value) 2 2 4 6 6 4 Observed (-log 10 p value) Expected (-log 10 p value) 2 2 4 6 6 4 Observed (-log 10 p value) Expected (-log 10 p value) 2 2 4 6 6 4 Observed (-log 10 p value) Expected (-log 10 p value) 2 2 4 6 CoMM PMR-Egger LDA MR-Egger PMR-Egger LDA MR-Egger TWAS SMR PrediXcan 1.6 1.2 Genomic inflation factor 0.8 0.4 60 30 40 50 Number of significant genes 20 10 0 12 10 Number of significant genes 6 8 0 2 4 1 3 5 7 9 GERA traits 11 14 17 20 1 3 5 7 9 GERA traits 11 14 17 20 1 3 5 7 9 GERA traits 11 14 17 20 1 3 5 7 9 GERA traits 11 14 17 20 1.1 Genomic inflation factor 0.9 0.5 0.7 PMR-Egger a b c d h g f e CoMM PMR-Egger TWAS SMR PrediXcan</p><p>Fig. <ref type="figure">5</ref> TWAS analysis results by different methods for GERA traits. Compared methods include CoMM (turquoise), PMR-Egger (magenta), TWAS (blue), LDA MR-Egger (black), SMR (orange), and PrediXcan (purple). a Quantile-quantile plot of -log10 p-values from different methods for testing the causal effect for an exemplary trait irritable bowel syndrome. b Quantile-quantile plot of -log10 p-values from different methods for testing the causal effect for another exemplary trait asthma. c Genomic inflation factor for testing the causal effect for each of the 22 traits by different methods. d Number of causal genes identified for each of the 22 traits by different methods. e Quantile-quantile plot of -log10 p-values from different methods for testing the horizontal pleiotropic effect for an exemplary trait irritable bowel syndrome. f Quantile-quantile plot of -log10 p-values from different methods for testing the horizontal pleiotropic effect for another exemplary trait Asthma. g Genomic inflation factor for testing the horizontal pleiotropic effect for each of the 22 traits by different methods. h Number of genes identified to have significant horizontal pleiotropic effect for each of the 22 traits by different methods. For c, d, g, h, the number on the x axis represents 22 traits in order: asthma, allergic rhinitis, CARD, cancers, depressive disorder, dermatophytosis, T2D, dyslipidemia, HT, hemorrhoids, abdominal hernia, insomnia, iron deficiency, irritable bowel syndrome, macular degeneration, osteoarthritis, osteoporosis, PVD, peptic ulcer, psychiatric disorders, stress disorders, varicose veins. Fig. <ref type="figure">39</ref>), and UK Biobank traits (Fig. <ref type="figure">6e</ref>, f; Supplementary Fig. <ref type="figure">40</ref>); with genomic control factors visualized in (Figs. <ref type="figure">4g</ref>, <ref type="figure">5g</ref>, and <ref type="figure">6g</ref>). We also display qq-plots for the previously selected exemplary traits in (Figs. 4e, f, 5e, f, and 6e, f). Consistent with simulations, p-values from PMR-Egger are well behaved while p-values from LDA MR-Egger display substantial inflation. For example, the genomic control factor from PMR-Egger ranges from 0.93 to 1.01 in WTCCC, from 0.92 to 1.09 in GERA, and from 1.13 to 1.71 in UK Biobank. In contrast, the genomic control factor from LDA MR-Egger ranges from 34.00 to 36.00 in WTCCC, from 69.82 to 72.19 in GERA and from 17.75 to 29.85 in UK Biobank (Supplementary Table <ref type="table">1</ref>). With the same Bonferroni adjusted transcriptome-wide p-value threshold, PMR-Egger detected 33 gene-trait pairs in WTCCC in which the cis-SNPs exhibit significant horizontal pleiotropy, 37 gene-trait pairs in GERA, and 626 gene-trait pairs in the UK Biobank. The detected horizontal pleiotropic effect tests can help us explain some of the discrepancy in terms of the causal associations detected by PMR-Egger and the other methods (Supplementary Notes).</p><p>We note that an important feature of PMR-Egger is its ability to test both causal effect and horizontal pleiotropy effect. We contrast the p-values obtained from these two different tests across genes (Supplementary Figs. <ref type="figure">41</ref><ref type="figure">42</ref><ref type="figure">43</ref>). We found that different traits exhibit different gene association patterns. For example, some traits may only contain genes with a significant causal effect but without a significant horizontal pleiotropic effect (e.g., CD and coronary artery disease (CAD) in WTCCC; allergic rhinitis, irritable bowel syndrome and psychiatric disorders in GERA). Some traits may only contain genes with a significant horizontal pleiotropic effect but without a significant causal effect (e.g., dermatophytosis in GERA). Some traits may contain genes with a significant causal effect as well as genes with a significant horizontal pleiotropic effect, but with the two sets of genes being non-overlapped (e.g., asthma, dyslipidemia, hypertension (HT), abdominal hernia and macular degeneration in GERA; fored vitral capacity in UK Biobank). While the majority of traits contain genes with both a significant causal effect and a significant horizontal pleiotropic effect. Being capable of testing both causal effect and horizontal pleiotropy effect facilitates our understanding of the gene association pattern with various complex traits.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Discussion</head><p>We have presented a data generative model and a likelihood framework for MR analysis that unifies many existing TWAS/MR methods. Under the framework, we have presented PMR-Egger, a new method that conducts MR analysis using multiple correlated instruments while controlling for horizontal pleiotropic effects. By controlling for horizontal pleiotropic effects and making inference under a likelihood framework, PMR-Egger yields calibrated p-values across a wide range of scenarios and improves power of MR analysis over existing approaches. Improving the power of TWAS can increase the number of true positives and reduce the number of false positives in the top gene list, potentially leading to better replication and experimental validation on the top identified genes. We have illustrated the benefits of PMR-Egger through extensive simulations and multiple real data applications of TWAS.</p><p>One important modeling assumption in PMR-Egger is that the horizontal pleiotropic effects of all SNPs equal. The equal effect assumption directly follows the commonly used Egger assumption for MR analysis and is analogous to the burden assumption commonly used for rare variant tests. Consistent with existing literature on applications of Egger regression and burden test, we also found that equal effect size assumption employed in PMR-Egger works reasonably robust for causal effect estimation and testing with respect to a range of model mis-specifications and appears to be effective in several real data applications examined here. However, we acknowledge that the equal effect assumption in PMR-Egger can be overly restrictive in many settings. For example, as described in the Results, in the absence of direction pleiotropy, the pleiotropic effect estimate becomes downward biased and the pleiotropic effect test loses power. We have attempted to alleviate this restrictive Egger modeling assumption by imposing an alternative modeling assumption on the horizontal effect sizes based on variance component assumption. Specifically, we have attempted to assume that the horizontal pleiotropic effect of each SNP follows a normal distribution with mean zero and a certain variance component parameter, i.e., analogous to the SKAT assumption <ref type="bibr">43</ref> . We refer to the resulting model as PMR-VC. Unfortunately, inference for PMR-VC is challenging. Specifically, due to estimation uncertainty in the hyper-parameter estimates, the p-values from PMR-VC becomes severely deflated even under simple null simulations (Supplementary Fig. <ref type="figure">44</ref>). Such deflation of p-values has been previously observed in variance component tests for microbiome applications <ref type="bibr">44</ref> . Only few methods exist to address such p-value incalibration issue resulting from hyper-parameter estimation uncertainty <ref type="bibr">45</ref> , and it is not straightforward to adapt any of these to PMR-VC. In addition, neither PMR-Egger nor PMR-VC can account for correlation between horizontal pleiotropic effects &#947; and SNP effects on gene expression &#946;. Therefore, while we view PMR-Egger as in important first step towards effective control of horizontal pleiotropic effects in TWAS applications, we emphasize that imposing more realistic modeling assumptions on the horizontal pleiotropic effects in the PMR framework will likely yield more fruitful results in the future.</p><p>We have primarily focused on modeling continuous traits with PMR-Egger. For case control studies, we have followed previous approaches and directly treated binary phenotypes as continuous outcomes <ref type="bibr">14,</ref><ref type="bibr">[46]</ref><ref type="bibr">[47]</ref><ref type="bibr">[48]</ref> , which appears to work well in both WTCCC and GERA data applications we examined. Treating binary phenotypes as continuous outcomes can be justified by recognizing the linear model as a first order Taylor approximation to a generalized linear model <ref type="bibr">46</ref> . However, it would be desirable in the future to extend PMR-Egger to accommodate case control data or other discrete data types in a principled way, by, for example, extending PMR-Egger into the generalized linear model framework.</p><p>We have primarily focused on modeling individual-level data with PMR-Egger. However, like many other linear model-based methods in statistical genetics, PMR-Egger can also be easily extended to make use of summary statistics. The summary statistics version of PMR-Egger is described in detail in the Supplementary Notes and implemented in the same software. Briefly, the summary statistics version of PMR-Egger requires marginal SNP effect size estimates and their standard errors, both on the gene expression and on the trait of interest. In addition, it requires a SNP by SNP correlation matrix that can be constructed based on a reference panel. We validated the implementation of the summary statistics-based approach of PMR-Egger through simulations (details in Methods). Specifically, we constructed the SNP by SNP correlation matrix from four different reference panels: all individuals from the GWAS data; 10% randomly selected individuals from GWAS; individuals of European or African ancestry from the 1000 Genomes project. We applied the summary statistics version of PMR-Egger to each reference panel and compared results with the individual-level data-based PMR-Egger that was applied to the complete data. As expected, except in the case when the reference panel is completely unmatched to the original data (i.e., with the African reference panel), the pvalues from both approaches for testing causal effects as well as for testing pleiotropy effects are largely consistent with each other, demonstrating the effectiveness of the summary statistics version of PMR-Egger (Supplementary Fig. <ref type="figure">45</ref>).</p><p>Finally, in addition to what we have already mentioned in the Methods, we emphasize again that while we have followed the previous MR literature and use "causal effect" through the text, the effect is causal only when certain MR modeling assumptions hold. These MR assumptions are often not straightforward to validate as it is impossible to measure all confounding factors in the study. Therefore, we caution against the over-interpretation of causal inference in observation studies such as TWAS applications. However, we do believe MR is an important step that allows us to move beyond standard linear regressions and is an important analysis that can provide potentially more trustworthy evidence with regard to causality as compared to simpler regression approaches.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Methods</head><p>PMR-Egger overview. We consider a probabilistic Mendelian randomization framework for performing two-sample Mendelian randomization analysis with correlated SNP instruments. Two-sample Mendelian randomization analysis aims to estimate and test for the causal effect of an exposure on an outcome in the setting where the exposure and outcome variables are measured in two separate studies with no sample overlap. In the TWAS applications we consider here, the exposure variable is gene expression level that is measured in a gene expression study, while the outcome variable is a quantitative trait or a dichotomous disease status that is measured in a GWAS. Oftentimes, the gene expression study and GWAS are performed on two separate samples. Although we mostly focus on TWAS applications in the present study, we note that the two-sample Mendelian randomization is also commonly performed in settings where both the exposure and outcome variables are complex traits that are measured in two separate GWASs. An illustrative diagram of MR analysis is displayed in Supplementary Fig. <ref type="figure">1</ref>.</p><p>We denote x as an n 1 -vector of exposure variable (i.e., gene expression measurements) that is measured on n 1 individuals in the gene expression study and denote Z x as an n 1 by p matrix of genotypes for p instruments (i.e., cis-SNPs) in the same study. Note that, unlike standard MR methods that select independent instruments, we follow existing TWAS approaches and use all cis-SNPs that are in LD as instruments. We denote y as an n 2 -vector of outcome variable (i.e., trait) that is measured on n 2 individuals in the GWAS and denote Z y as an n 2 by p matrix of genotypes for the same p instruments there. For both Z x and Z y , we coded their genotypes based on minor allele count, where the minor allele is defined in the GWAS data. We examined the robustness of such genotype coding in simulations through genotype flipping. We consider three linear regressions to model the two studies separately</p><p>where the Eq. ( <ref type="formula">1</ref>) is for the gene expression data and the Eqs. ( <ref type="formula">2</ref>) and ( <ref type="formula">3</ref>) are for the GWAS data. Here, &#956; x and &#956; y are the intercepts; x is an unobserved n 2 -vector of exposure variable on the n 2 individuals in the GWAS; &#946; is a p-vector of instrumental effect sizes on the exposure variable; &#945; is a scalar that represents the causal effect of the exposure variable on the outcome variable; &#947; is a p-vector of horizontal pleiotropic effect sizes of p instruments on the outcome variable; &#949; x is an n 1 -vector of residual error with each element independently and identically distributed from a normal distribution N 0; &#963; 2 x &#192; &#193; ; &#949; x is an n 2 -vector of residual error with each element independently and identically distributed from the same normal distribution N 0; &#963; 2 x &#192; &#193; ; and &#1013; is an n 2 -vector of residual error with each element independently and identically distributed from a normal distribution N 0; &#963; 2 y . We note that while the above three equations are specified based on two separate studies, they are joined together with the common parameter &#946; and the unobserved gene expression measurements x. Equations (2-3) can also be combined into</p><p>Our key parameter of interest in the above joint model is the causal effect &#945;. The causal interpretation of &#945; requires two assumptions of MR analysis to hold: (i) instruments are associated with the exposure; (ii) instruments are not associated with any other confounders that may be associated with both exposure and outcome. Note that our model no longer requires the general exclusion restriction condition of traditional MR (i.e., instruments only influence the outcome through the path of exposure), as we make explicite modeling assumptions on the horizontal pleiotropy effects &#947;. Certainly, PMR-Egger still need to satisfy the InSIDE assumption that the instrument-exposure effects and instrument-outcome effects are independent of each other, which is sometimes refered to as the weak exclusion restriction condition <ref type="bibr">8</ref> . In our model, we derive the causal interpretation and identification of &#945; under the decision-theoretic framework of causal inference <ref type="bibr">26,</ref><ref type="bibr">[49]</ref><ref type="bibr">[50]</ref><ref type="bibr">[51]</ref> (details in Supplementary Notes). Because the causal effect interpretation of &#945; depends on MR assumptions as well as other explicit modeling assumptions, many of which are not easily testable in practice, MR analysis in observational studies likely provides weaker causality evidence than randomized clinical trials. Therefore, while we follow standard MR analysis and use the term "causal effect" through the text, we only intend to use this term to emphasize the fact that &#945; estimate from an MR analysis is more trustworthy than the effect size estimate in a standard linear regression of y on x.</p><p>Because p is often larger than n 1 , we will need to make additional modeling assumptions on &#946; to make the model identifiable. In addition, the two instrumental effect terms defined in Eq. ( <ref type="formula">4</ref>), the vertical pleiotropic effect Z y &#946;&#945; and the horizontal pleiotropic effect Z y &#947;, are also not identifiable from each other, unless we make additional modeling assumptions on &#947;. Here, we follow standard polygenic model and assume that all elements in &#946; are non-zero and that each follows a normal distribution N 0; &#963; 2</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>&#946;</head><p>. In addition, we follow the burden test assumption commonly used for rare variant test and assume equal horizontal pleiotropic effects across SNPs &#947; j = &#947; for j = 1,&#8230;p. With the burden test assumption on the horizontal pleiotropic effects &#947;, our model becomes a generalization of the commonly used MR-Egger regression model. In the special case where instruments are independent and treated as fixed effects and where a two-stage estimation procedure is used for inference, our model reduces to MR-Egger. However, our method can handle general cases where MR-Egger does not apply to. In particular, unlike MR-Egger, our method can handle multiple correlated instruments and perform inference in a likelihood framework.</p><p>In the above model, we are interested in estimating the causal effect &#945; and testing the null hypothesis H 0 :&#945; = 0 in the presence of horizontal pleiotropy effects &#947;. In addition, we are interested in estimating the horizontal pleiotropic effect size &#947; and testing the null hypothesis H 0 :&#947; = 0. We accomplish both tasks through the maximum likelihood inference framework. In particular, we develop an expectation maximization (EM) algorithm for parameter inference by maximizing the joint likelihood defined based on Eqs. (1, 4) (details in Supplementary Notes). The EM algorithm allows us to obtain the maximum likelihood of the joint model, together with maximum likelihood estimates for both &#945; and &#947;. In addition, we apply the EM algorithm to two reduced models, one without &#945; and the other without &#947;, to obtain the corresponding maximum likelihoods. Afterwards, we perform likelihood ratio tests for either H 0 :&#945; = 0 or H 0 :&#947; = 0, by contrasting the maximum likelihood obtained from the joint model to that obtained from each of the two reduced models, respectively. We refer to the above inference procedure as probabilistic, as we place estimation and testing into a maximum likelihood framework. Our inference procedure is in contrast to the commonly used two-stage estimation procedure (as used in, for example, Egger regression <ref type="bibr">8,</ref><ref type="bibr">22</ref> , PrediXcan 1 and TWAS 2 ), which estimates &#946; from Eq. (1) first and then plug in the estimates into Eq. ( <ref type="formula">4</ref>) for inference. The previous two-stage estimation procedure fails to properly account for the estimation uncertainty in &#946; and is known to lose power compared to a formal likelihood inference procedure <ref type="bibr">5,</ref><ref type="bibr">11,</ref><ref type="bibr">13</ref> .</p><p>We refer to our model and algorithm together as the two-sample probabilistic Mendelian randomization with Egger regression (PMR-Egger). As explained above, we use "probabilistic" to refer to both the data generative model and the maximum likelihood inference procedure. We use "Egger" to refer to the horizontal pleiotropic assumption on &#947; that effectively generalizes the Egger-regression assumption to correlated instruments. We also note that the joint generative Mendelian randomization model defined in Eqs. (1, 4) is a useful conceptual framework that unifies many existing MR methods. In particular, almost all existing MR methods are built upon the joint model, but with different modeling assumptions on &#946; and &#947;, and with different inference procedures (Table <ref type="table">1</ref>). Compared with these existing MR approaches, PMR-Egger is capable of modeling multiple correlated instruments, effectively controls for horizontal pleiotropy, and places inference into a likelihood framework.</p><p>Simulations. We performed simulations to assess the performance of PMR-Egger and compare it with existing approaches. To do so, we first obtained 556 cis-SNPs for the gene BACE1 on chromosome 11 from the GEUVADIS data <ref type="bibr">52</ref> (data processing details in the next section) and simulated gene expression values. We used the gene BACE1 because the number of cis-SNPs in this gene represents the median of all genes. With the scaled genotype data Z x , we simulated SNP effect sizes &#946; from a normal distribution N(0,PVE zx /556), where the scalar PVE zx represents the proportion of gene expression variance explained by genetic effects. We summed the genetic effects across all cis-SNPs as Z x &#946;. In addition, we simulated residual errors &#949; x from a normal distribution N&#240;0; 1 &#192; PVE zx &#222;. We then summed the genetic effects and residual errors to yield the simulated gene expression level.</p><p>Next, we obtained genotypes for the same 556 SNPs from 2000 randomly selected control individuals in the Kaiser Permanente/UCSF Genetic Epidemiology Research Study on Adult Health and Aging (GERA) <ref type="bibr">53,</ref><ref type="bibr">54</ref> and simulated a quantitative trait. Here, we directly used &#946; from the gene expression data, which, when paired with the causal effect &#945;, yielded the vertical pleiotropic effects &#945;&#946;. We set &#945; &#188; ffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi ffi PVE zy =PVE zx q , and we simulated residual errors &#949; y from a normal distribution N&#240;0; 1 &#192; PVE zy &#222;. Here, the scalar parameter PVE zy represents the proportion of phenotypic variance explained by vertical pleiotropic effects in the absence of horizontal pleiotropic effects. Afterwards, we simulated horizontal pleiotropic effects &#947; for these SNPs (more details below). We summed the horizontal pleiotropic effects, vertical pleiotropic effects, and residual errors to yield the simulated trait.</p><p>In the simulations, we first examined a baseline simulation setting where we set PVE zx = 10%, PVE zy = 0, with all &#947; j = 0. On top of the baseline setting, we varied one parameter at a time to examine the influence of various parameters. For PVE zx , we set it to be either 1%, 5%, or 10%, close to the median gene expression heritability estimates across genes <ref type="bibr">55,</ref><ref type="bibr">56</ref> . For &#946;, we examined alternative SNP effect size distributions that deviate from the polygenic assumption in the baseline setting. Specifically, we randomly selected either 1 SNP, 1%, 10%, or 100% of the SNPs to have non-zero effect, and simulated their effects from a normal distribution to explain a fixed PVE zx in total. In addition, we examined the case of correlated &#946;, where the SNP effects on gene expression is generated from a multivariate normal distribution with the covariance matrix w&#8721;. Here, &#8721; is the LD matrix among SNPs and w is a scalar that is chosen to ensure that PVE zx equal to 10%. For PVE zy , we varied its value to be either 0% (for null simulations), 0.2%, 0.4%, or 0.6% (for power simulations). For the horizontal pleiotropy effects &#947;, we randomly assigned a fixed proportion of &#947; j to be non-zero (proportion equals 10%, 30%, 50%, or 100%). Afterwards, we set the absolute value of non-zero &#947; j to be the same value of &#947;. As a sensitivity analysis, we also randomly assigned some of their signs to be positive and some of their signs to be negative, with the ratio of positive effects to negative effects being either 1:9, 3:7, or 5:5. Here, we set &#947; to be 1 &#215; 10 -4 , 5 &#215; 10 -4 , 1 &#215; 10 -3 , or 2 &#215; 10 -3 , which corresponds to the 50%, 70%, 90%, 95% quantiles of horizontal pleiotropic effect estimates across all genes and all traits in the WTCCC data (more details below), respectively. While genotype coding is based on allele frequency in both simulations and analysis, we also examined cases where we randomly flipped the genotypes of a fraction of SNPs before analysis so that genotype coding does not match between simulation and analysis. The faction of flipped genotype SNPs is set to be either 10%, 30%, or 50%. In addition, we conducted analysis by orienting SNP genotypes based on its estimated effect sign on the gene expression, to examine whether such "positive orientation" strategy can improve the performance of PMR-Egger. For null simulations and type I error control examination, we performed 10,000 simulation replicates for each simulation scenario described above. For power calculation, for each scenario, we performed 1000 alternative simulations together with 9000 null simulations and calculated power based on false discovery rate (FDR).</p><p>While we applied PMR-Egger to analyze individual-level data from all simulations, we also applied PMR-Egger to analyze summary statistics in a subset of simulations to validate the implementation of the summary statistics-based PMR-Egger algorithm. These results are presented in the Discussion section. Here, we considered the simulation settings with a fixed sample size (n 1 = 465, n 2 = 2000), different causal effect sizes (PVE zy = 0 or 0.6%) and different pleiotropy effect sizes (&#947; = 0 or 0.0005). In the analysis, we calculated the LD matrix in the eQTL data using the observed individual-level genotypes in the eQTL study. We calculated the LD matrix in the GWAS data from a reference panel. The reference panel is constructed in four different ways, by using individual-level genotypes from either all individuals in the GWAS (n = 2000), 10% of randomly selected individuals from the GWAS (n = 200), individuals with European ancestry (n = 503) or individuals with African ancestry (n = 611) from the 1000 Genomes project phase 3. Note that the African ancestry panel includes 99 Esan in Nigeria (ESN), 113 Gambian in Western Division, Mandinka (GWD), 99 Luhya in Webuye, Kenya (LWK), 85 Mende in Sierra Leone (MSL), 108 Yoruba in Ibadan, Nigeria (YRI), 96 African Caribbean in Barbados (ACB), and 61 people with African Ancestry in Southwest USA (ASW).</p><p>Besides the single gene-based simulations, we also conducted cross-gene simulations. Specifically, we randomly selected 10,000 genes from GEUVADIS. We extracted cis-SNPs for these 10,000 genes, obtaining a median of 576 cis-SNPs per gene (min = 11; max = 7409). For each gene in turn, we used its cis-SNPs to simulate its gene expression level as described above. Afterwards, we applied different methods to analyze simulated data. The cross-gene-based simulations reflect the varying LD pattern and the varying number of cis-SNPs across genes that we observe in real data, and thus are likely to be more realistic than the single gene-based simulations. We performed cross-gene simulations under all simulation settings described above, including settings with varying gene expression heritability, varying genetic architectures underlying gene expression, as well as varying causal and horizontal pleiotropy effects.</p><p>Real data applications. We applied our method to perform TWAS by integrating gene expression data with several GWASs. Specifically, we obtained GEUVADIS data <ref type="bibr">52</ref> as the gene expression data and examined 39 phenotypes from three GWASs. The three GWASs include the Wellcome Trust Case Control study (WTCCC) <ref type="bibr">57</ref> , the Kaiser Permanente/UCSF Genetic Epidemiology Research Study on Adult Health and Aging (GERA) <ref type="bibr">53,</ref><ref type="bibr">54</ref> , and the UK Biobank <ref type="bibr">58</ref> .</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>NATURE COMMUNICATIONS | (2020) 11:3861 | https://doi.org/10.1038/s41467-020-17668-6 | www.nature.com/naturecommunications</p></note>
		</body>
		</text>
</TEI>
