<p>If the GWAS summary statistics file provide SNP effects (BETA), use them directly in PLINK --score to compute PRS. For binary traits, GWAS summary statistics file usually outputs odds ratio (OR), and hence, when constructing PRS using OR, we need to first trasnform OR to BETA (where BETA = log(OR)) and then use the same --score command to generate PRS.</p>
<p>Additional informaion:
Alternatively, <a href="https://github.com/DoviniJ/GxEprs/tree/main" rel="nofollow noreferrer">this R package</a> (<code>GxEprs</code>) can be used to construct PRSs using GWAS summary statistics for both quantitative and binary traits. If you need to opt out of additional OR to BETA transformation step, this R package is useful, as it implements this transformation within its in-built function <code>PRS_binary()</code> for generating PRSs for binary traits.</p>

CC BY-SA 4.0
2024-10-21T00:22:35.283Z
2024-10-21T00:22:35.283Z
Dovini Jayasinghe
<p>I'm conducting a simulation and I need to obtain polygenic risk scores (PRS) using genome wide association studies (GWAS) summary statistics.
It is known that the GWAS will give BETA and OR for quantitative and binary phenotypes respectively.
When conducting the simulation for quantitative traits I used the following code to obtain PRS from GWAS performed:</p>
<pre><code>./plink1.9 --bfile binary_file1_name --linear interaction --pheno pheno_file_name --covar cov_file_name --parameters 1 --allow-no-sex
./plink1.9 --bfile binary_file2_name --score plink.assoc.linear 2 4 7 header --out prs_quantitative
</code></pre>
<p>This is fine, where plink.assoc.linear file contains BETA.</p>
<p>When conducting simulation for binary traits I used the following code to obtain PRS from GWAS performed:</p>
<pre><code>./plink1.9 --bfile binary_file1_name --logistic interaction --pheno pheno_file_name --covar cov_file_name --parameters 1 --allow-no-sex
./plink1.9 --bfile binary_file2_name --score plink.assoc.logistic 2 4 7 header --out prs_binary
</code></pre>
<p>I'm not sure whether we need to transform OR to BETA before inputting the file to --score in performing this for binary traits or, simply use the original plink.assoc.logistic which has OR (instead of BETA) to go ahead.</p>
<p>Simply, do we need to input file containing BETA values &quot;only&quot; for --score or either a file containing OR values or BETA values is fine?</p>

<gwas><plink><polygenic-risk-score>
Input for --score in PLINK 1.9 when generationg PRS using GWAS summary statistics
# Input for --score in PLINK 1.9 when generationg PRS using GWAS summary statistics

(Asked by: username_0 on 2022-12-08)

I'm conducting a simulation and I need to obtain polygenic risk scores (PRS) using genome wide association studies (GWAS) summary statistics.
It is known that the GWAS will give BETA and OR for quantitative and binary phenotypes respectively.
When conducting the simulation for quantitative traits I used the following code to obtain PRS from GWAS performed:
./plink1.9 --bfile binary_file1_name --linear interaction --pheno pheno_file_name --covar cov_file_name --parameters 1 --allow-no-sex
./plink1.9 --bfile binary_file2_name --score plink.assoc.linear 2 4 7 header --out prs_quantitative

This is fine, where plink.assoc.linear file contains BETA.
When conducting simulation for binary traits I used the following code to obtain PRS from GWAS performed:
./plink1.9 --bfile binary_file1_name --logistic interaction --pheno pheno_file_name --covar cov_file_name --parameters 1 --allow-no-sex
./plink1.9 --bfile binary_file2_name --score plink.assoc.logistic 2 4 7 header --out prs_binary

I'm not sure whether we need to transform OR to BETA before inputting the file to --score in performing this for binary traits or, simply use the original plink.assoc.logistic which has OR (instead of BETA) to go ahead.
Simply, do we need to input file containing BETA values "only" for --score or either a file containing OR values or BETA values is fine?

**Tags:** gwas, plink, polygenic-risk-score

---

## 1 answers

### Answer by username_0 on 2024-10-21. Score: 0

If the GWAS summary statistics file provide SNP effects (BETA), use them directly in PLINK --score to compute PRS. For binary traits, GWAS summary statistics file usually outputs odds ratio (OR), and hence, when constructing PRS using OR, we need to first trasnform OR to BETA (where BETA = log(OR)) and then use the same --score command to generate PRS.

Additional informaion:
Alternatively, [this R package](https://github.com/DoviniJ/GxEprs/tree/main) (`GxEprs`) can be used to construct PRSs using GWAS summary statistics for both quantitative and binary traits. If you need to opt out of additional OR to BETA transformation step, this R package is useful, as it implements this transformation within its in-built function `PRS_binary()` for generating PRSs for binary traits.


---

