Efficient management and analysis of large-scale genome-wide data with two R packages: bigstatsr and bigsnpr
Preprint
Abstract
Motivation: Genome-wide datasets produced for association studies have dramatically increased in size over the past few years, with modern datasets commonly including millions of variants measured in dozens of thousands of individuals. This increase in data size is a major challenge severely slowing down genomic analyses. Specialized software for every part of the analysis pipeline have been developed to handle large genomic data. However, combining all these software into a single data analysis pipeline might be technically difficult. Results: Here we present two R packages, bigstatsr and bigsnpr, allowing for management and analysis of large scale genomic data to be performed within a single comprehensive framework. To address large data size, the packages use memory-mapping for accessing data matrices stored on disk instead of in RAM. To perform data pre-processing and data analysis, the packages integrate most of the tools that are commonly used, either through transparent system calls to existing software, or through updated or improved implementation of existing methods. In particular, the packages implement a fast derivation of Principal Component Analysis, functions to remove SNPs in Linkage Disequilibrium, and algorithms to learn Polygenic Risk Scores on millions of SNPs. We illustrate applications of the two R packages by analysing a case-control genomic dataset for the celiac disease, performing an association study and computing Polygenic Risk Scores. Finally, we demonstrate the scalability of the R packages by analyzing a simulated genome-wide dataset including 500,000 individuals and 1 million markers on a single desktop computer. Availability: https://privefl.github.io/bigstatsr/ & https://privefl.github.io/bigsnpr/ Contact: florian.prive@univ-grenoble-alpes.fr & michael.blum@univ-grenoble-alpes.fr Supplementary information: Supplementary data are available at Bioinformatics online.Keywords
All Related Versions
- Published version: Bioinformatics, 34 (16), 2781.
This publication has 37 references indexed in Scilit:
- Fast Principal-Component Analysis Reveals Convergent Evolution of ADH1B in Europe and East AsiaThe American Journal of Human Genetics, 2016
- PRSice: Polygenic Risk Score softwareBioinformatics, 2014
- Fast Principal Component Analysis of Large-Scale Genome-Wide DataPLOS ONE, 2014
- Correction: Power and Predictive Accuracy of Polygenic Risk ScoresPLOS Genetics, 2013
- Population structure, migration, and diversifying selection in the NetherlandsEuropean Journal of Human Genetics, 2013
- SparSNP: Fast and memory-efficient analysis of all SNPs for phenotype predictionBMC Bioinformatics, 2012
- The variant call format and VCFtoolsBioinformatics, 2011
- ProbABEL package for genome-wide association analysis of imputed dataBMC Bioinformatics, 2010
- Multiple common variants for celiac disease influencing immune gene expressionNature Genetics, 2010
- A Unified Approach to Genotype Imputation and Haplotype-Phase Inference for Large Data Sets of Trios and Unrelated IndividualsThe American Journal of Human Genetics, 2009