GWAS & PRS tutorial

502 views
Skip to first unread message

Sintia Belangero

unread,
Jun 6, 2022, 6:43:46 AM6/6/22
to plink2...@googlegroups.com
Hi all, 
I have wondered whether there is a plink2 standardized script for GWAS and PRS or another option for getting set up. That will be super helpful for grad student with starting to analyzing, a step-by-step tutorial considering QC and PC/ ancestry steps. 
Thank you in advance. 
Sintia Belangero 
--

-----------------------------------
  Sintia I. Belangero
  -Associate Professor, Department of Morphology and Genetics 
  -Coordinator of The Lab of Integrative Neuroscience (LINC)
  Universidade Federal de São Paulo
  São Paulo-SP / Brazil




Christopher Chang

unread,
Jun 6, 2022, 10:28:14 AM6/6/22
to plink2-users
For a plink-and-PRS tutorial that includes a PCA step, see https://choishingwan.github.io/PRS-Tutorial/plink/ .  With the exception of --clump, all steps can currently be performed with plink 2.0 instead of 1.9.

From there, simple GWAS can be done with

plink2 \
  --bfile <input fileset prefix> \
  --glm \
  --pheno <phenotype file> \
  --covar <.eigenvec file from --pca> \
  --out <output prefix>

Let me know if you need more assistance.

Yuyang Luo

unread,
Jul 2, 2022, 10:35:32 AM7/2/22
to plink2-users
Hi,

I am wondering how to extract the residual for GWAS results using plink1.9 or plink2. Thanks!

Best,
Yuyang

Christopher Chang

unread,
Jul 4, 2022, 7:23:36 PM7/4/22
to plink2-users
If you want every single residual value, see https://groups.google.com/g/plink2-users/c/fNNGzvEXC58/m/u5KxpwGTBAAJ .  It doesn't really make sense for plink2 to report these values directly, since the output file would often be gigantic.

If you want a more narrow statistic, can you clarify exactly what you want and what you are using it for?

Yuyang Luo

unread,
Jul 5, 2022, 10:26:21 AM7/5/22
to plink2-users
Thanks! 
As you mentioned, what I would like to calculate is the difference between the estimated phenotype value (which you compute from the regression coefficients, genotype value, and covariates) and the actually-observed phenotype value.

I would to check the normal distribution of residuals for our GWAS. Can we calculate it based on the GWAS summary report? Thanks.

Best,
Yuyang

Yuyang Luo

unread,
Jul 5, 2022, 11:01:39 AM7/5/22
to plink2-users
I am wondering how to calculate estimated phenotype data for each subject based on GWAS summary table. Thanks

Christopher Chang

unread,
Jul 5, 2022, 5:12:25 PM7/5/22
to plink2-users
No, you can't calculate the entire distribution of residuals from the GWAS summary report alone.

However, if you run --linear/--logistic/--glm with the "intercept" modifier, you can load the resulting coefficients and the genotype/covariate data, compute the predicted phenotype values, and subtract them from the actual phenotype values.

Reply all
Reply to author
Forward
0 new messages