GWAS on your notebook: fast semi-parallel linear and logistic regression for genome-wide association studies

BackgroundGenome-wide association studies have become very popular in identifying genetic contributions to phenotypes. Millions of SNPs are being tested for their association with diseases and traits using linear or logistic regression models. This conceptually simple strategy encounters the following computational issues: a large number of tests and very large genotype files (many Gigabytes) which cannot be directly loaded into the software memory. One of the solutions applied on a grand scale is cluster computing involving large-scale resources. We show how to speed up the computations using matrix operations in pure R code.ResultsWe improve speed: computation time from 6 hours is reduced to 10-15 minutes. Our approach can handle essentially an unlimited amount of covariates efficiently, using projections. Data files in GWAS are vast and reading them into computer memory becomes an important issue. However, much improvement can be made if the data is structured beforehand in a way allowing for easy access to blocks of SNPs. We propose several solutions based on the R packages ff and ncdf.We adapted the semi-parallel computations for logistic regression. We show that in a typical GWAS setting, where SNP effects are very small, we do not lose any precision and our computations are few hundreds times faster than standard procedures.ConclusionsWe provide very fast algorithms for GWAS written in pure R code. We also show how to rearrange SNP data for fast access.

[1]  G. Abecasis,et al.  MaCH: using sequence and genotype data to estimate haplotypes and unobserved genotypes , 2010, Genetic epidemiology.

[2]  Teri A Manolio,et al.  Genomewide association studies and assessment of the risk of disease. , 2010, The New England journal of medicine.

[3]  A. Agresti Categorical data analysis , 1993 .

[4]  Yurii S. Aulchenko,et al.  ProbABEL package for genome-wide association analysis of imputed data , 2010, BMC Bioinformatics.

[5]  G. Abecasis,et al.  Genotype imputation. , 2009, Annual review of genomics and human genetics.

[6]  Ying Liu,et al.  FaST linear mixed models for genome-wide association studies , 2011, Nature Methods.

[7]  T. Manolio,et al.  How to Interpret a Genome-wide Association Study Topic Collections , 2022 .

[8]  Yurii S. Aulchenko,et al.  BIOINFORMATICS APPLICATIONS NOTE doi:10.1093/bioinformatics/btm108 Genetics and population analysis GenABEL: an R library for genome-wide association analysis , 2022 .

[9]  Manuel A. R. Ferreira,et al.  PLINK: a tool set for whole-genome association and population-based linkage analyses. , 2007, American journal of human genetics.

[10]  Tobias A. Knoch,et al.  GRIMP: a web- and grid-based tool for high-speed analysis of large-scale genome-wide association using imputed data , 2009, Bioinform..

[11]  Albert Hofman,et al.  Fast linear mixed model computations for genome‐wide association studies with longitudinal data , 2013, Statistics in medicine.

[12]  Eleazar Eskin,et al.  Improved linear mixed models for genome-wide association studies , 2012, Nature Methods.

[13]  Andrey A. Shabalin,et al.  Matrix eQTL: ultra fast eQTL analysis via large matrix operations , 2011, Bioinform..