Literature DB >> 31878869

ICGRM: integrative construction of genomic relationship matrix combining multiple genomic regions for big dataset.

Dan Jiang1, Cong Xin2, Jinhua Ye3, Yingbo Yuan1, Ming Fang4.   

Abstract

BACKGROUND: Genomic prediction is an advanced method for estimating genetic values, which has been widely accepted for genetic evaluation in animal and disease-risk prediction in human. It estimates genetic values with genome-wide distributed SNPs instead of pedigree. The key step of it is to construct genomic relationship matrix (GRM) via genome-wide SNPs; however, usually the calculation of GRM needs huge computer memory especially when the SNP number and sample size are big, so that sometimes it will become computationally prohibitive even for super computer clusters. We herein developed an integrative algorithm to compute GRM. To avoid calculating GRM for the whole genome, ICGRM freely divides the genome-wide SNPs into several segments and computes the summary statistics related to GRM for each segment that requires quite few computer RAM; then it integrates these summary statistics to produce GRM for whole genome.
RESULTS: It showed that the computer memory of ICGRM was reduced by 15 times (from 218Gb to 14Gb) after the genome SNPs were split into 5 to 200 parts in terms of the number of SNPs in our simulation dataset, making it computationally feasible for almost all kinds of computer servers. ICGRM is implemented in C/C++ and freely available via https://github.com/mingfang618/CLGRM.
CONCLUSIONS: ICGRM is computationally efficient software to build GRM and can be used for big dataset.

Entities:  

Keywords:  Gblup; Genomic relationship matrix; Genomic selection

Mesh:

Year:  2019        PMID: 31878869      PMCID: PMC6933885          DOI: 10.1186/s12859-019-3319-y

Source DB:  PubMed          Journal:  BMC Bioinformatics        ISSN: 1471-2105            Impact factor:   3.169


Background

Majority of economic traits in animal and human diseases have polygenic nature, the precise estimate of genetic value is important for animal breeding and disease-risk evaluation in human. Henderson [1] proposed a best linear unbiased estimate (BLUP) to estimate genetic value, which takes advantage of the inheritance similarities among individuals based on pedigree information. With the development of sequencing technique, using whole genome-wide SNPs to calculate the similarities among individuals has been well developed [2], in which the pairwise kinship among individuals is usually described with a matrix called genomic relationship matrix (GRM). The method using GRM instead of pedigree to estimate breeding value is called genomic best linear unbiased estimate (GBLUP), which has been widely applied to estimate breeding value in the animal breeding program for dairy cattle and pig [3-5] instead of BLUP method. Recently, whole-genome re-sequencing technique has been applied to genomic selection, by which millions of SNPs can be genotyped. Although it is able to increase the accuracy of breeding-value estimate, the computational RAM is very demanding. Furthermore, for some species, such as dairy cattle, usually animals from multiple breeding farms and countries are combined for breeding value prediction, which increases the RAM requirement cubically. Therefore, it is very meaningful to develop new software to solve this problem. Sophisticated statistical method plays an important role on discovery of important biology law, especially in the genomic era [6, 7], it also helps to accelerate the computational speed or decrease the computer memory [8]. Current method for GRM construction is largely based on VanRaden’s algorithm [9-13], although it is mathematically simple, the computer RAM cost is very big especially when the number of individual and SNPs are huge. However, we found the equation of VanRaden’s algorithm is additive for both numerator and denominator. It motives us to factorize VanRaden’s equation into two parts and calculates numerator and denominator respectively. Taking advantage of such additive character, we are able to use split and combine strategy to reduce the computational burden. We herein develop a package, called ICGRM, which splits the genome SNPs into several parts and calculate the summary statistics for each part that only needs very few computer RAM; then combines the summary statistics for each part to produce GRM. ICGRM avoids calculating GRM for the whole genome at the same time; thus it makes the construction of the GRM more efficient for big dataset. The other feature of ICGRM is that it can assign a weight for each SNP effect in the construction of the GRM, by which it further increases the prediction accuracy for breeding value estimate.

Implementation

We use Intel Math Kernel Library (Intel MKL) with BLAS routine to perform matrix operation. BLAS implementations are optimized for speed on a machine in parallel, which greatly reduces the computational time. We wrap the algorithm to computational package ICGRM, which is implemented with a command line script, including two parts, GRM calculation and integration routines. The command lines to achieve the task are below. ./clgrm_grm --in_file --weight_file --out_file -–threads_num ./clgrm_combine The first command line is to construct GRM matrix for a specific genome segment, by which ICGRM calculates GRM for each segment separately, where users can optionally define the weight of SNP effect with “--weight_file”; and the second command line is to combine each GRM from each segment/loci for generation of the final GRM.

Results

The idea of the proposed method is that it firstly splits the genome SNPs into d segments, for each segment, it calculates the summary statistics related to each GRM; finally, it combines these summary statistics to produce the GRM (see Fig. 1).
Fig. 1

The flowchart of the ICGRM

The flowchart of the ICGRM

Integrating summary statistics to GRM

Suppose there are k SNPs in genome, in VanRaden’s equation (VanRaden 2008), the GRM is expressed as: Specifically, for two individual m and n with K SNPs investigated, the relationship for individual m and n can be expressed as Both numerator and denominator is the sum over statistics of K SNPs, respectively, which motivates us to split k SNPs into d segments, each containing k1, k2, ⋯, and k SNPs, respectively, and K= . Then we calculate the two statistics for each segment. Specifically, for segment s with k SNPs, we calculate and , respectively, for s = 1, 2, ⋯, d and k0 = 1. After calculating these summary statistics, we save them on computer disk, and then use them to calculate GRM for whole genome using the eq. (3).

Weighted GRM with SNPs

As suggested by Fragomeni et al. (2017), the accuracy of the GBLUP can be further increased by taking the weight of SNP effect into account and the weighted GRM can be written as where, D is a diagonal matrix with the diagonal entry d being the weight of each SNP effect. For two individual m and n, which shows that the numerator and denominator are also additive for each SNP or segment, suggesting that our split-combine strategy is also applicable for this case. We also add this function into our package ICGRM for ease of use.

Simulations

To illustrate the performance of the proposed method, we simulate a genome with the number of individuals from 5000 to 30,000; and the number of SNPs ranged from 0.1 to 10 million. As shown in Table 1, when the number of SNPs is greater than 10 million and the number of individuals is greater than 10,000, the computational memory cost is greater than 250G, which has already been difficult for many computer servers to run the job and we also do not complete the job due to computer memory limitation. We therefore employ ICGRM to achieve this. For comparison, we keep using 10 CPU threads for calculation although we can use more. We conduct an experiment using datasets with 10 million SNPs and 5000, 10,000, 20,000, 30,000 individuals, respectively. To decrease the memory use, for each setup, we split dataset into 5, 10, 20, 50, 100 and 200 parts, respectively, in terms of SNP number; we calculate summary statistics for each part, separately, and then integrate them together to produce GRM. The memory and computational time cost are shown in Fig. 2a. It can be seen that when the dataset is split into more parts, the memory cost decreased dramatically (~ 15 times reduction from 5 to 200 parts); specifically, when the individual number is set at 30,000, the memory cost reduces from 218Gb to 14Gb, making it computationally feasible for almost all kinds of computer server. We also summarize the total computational time in Fig. 2b. It shows that when data are split into 5 to 50 parts, the total computational time cost is reduced about 7 times (using server with Intel Xeon CPU and total RAM 384Gb); but when the number of splitting parts is greater than 50, the computational time is starting to increase, and most of the computational time is consumed during data writing process.
Table 1

The computer memory cost at different level of individuals and SNPs

0.1 Million SNPs0.5 Million SNPs1 Million SNPs10 Million SNPs
50003. 9G11.4G20.7G181.2Gb
10,0006.4G21.2G39.9G
20,00012.3G42.1G79.4G
30,00019.8G64.5G118.3 G
Fig. 2

The computational memory (a) and time cost (b) at different number of individuals and splitting parts

The computer memory cost at different level of individuals and SNPs The computational memory (a) and time cost (b) at different number of individuals and splitting parts

Discussion

We have developed a computational efficient algorithm and software ICGRM, which is useful for big dataset. When the number of SNPs is greater than 10 million and number of individual is greater than 10,000, the current method is not able to run due to the computer memory limit, but ICGRM solves this problem by splitting the dataset and merging the summary statistics, which reduces the computer memory dramatically. The software will be useful in future for prediction of genomic breeding value for big dataset.

Conclusions

ICGRM is computational efficient software to build GRM and can be used for big dataset.

Availability and requirements

Project name: CLGRM. Project home page: https://github.com/mingfang618/CLGRM Operating system(s): Linux. Programming language: C++. License: No. Any restrictions to use by non-academics: Communication with author.
  9 in total

1.  Prediction of total genetic value using genome-wide dense marker maps.

Authors:  T H Meuwissen; B J Hayes; M E Goddard
Journal:  Genetics       Date:  2001-04       Impact factor: 4.562

2.  Single-step methods for genomic evaluation in pigs.

Authors:  O F Christensen; P Madsen; B Nielsen; T Ostersen; G Su
Journal:  Animal       Date:  2012-04-05       Impact factor: 3.240

3.  Efficient methods to compute genomic predictions.

Authors:  P M VanRaden
Journal:  J Dairy Sci       Date:  2008-11       Impact factor: 4.034

4.  Genomic Prediction Using Individual-Level Data and Summary Statistics from Multiple Populations.

Authors:  Jeremie Vandenplas; Mario P L Calus; Gregor Gorjanc
Journal:  Genetics       Date:  2018-07-18       Impact factor: 4.562

5.  Genomic imputation and evaluation using high-density Holstein genotypes.

Authors:  P M VanRaden; D J Null; M Sargolzaei; G R Wiggans; M E Tooker; J B Cole; T S Sonstegard; E E Connor; M Winters; J B C H M van Kaam; A Valentini; B J Van Doormaal; M A Faust; G A Doak
Journal:  J Dairy Sci       Date:  2012-10-11       Impact factor: 4.034

6.  A single-step genomic model with direct estimation of marker effects.

Authors:  Z Liu; M E Goddard; F Reinhardt; R Reents
Journal:  J Dairy Sci       Date:  2014-07-11       Impact factor: 4.034

7.  Large-scale genomic prediction using singular value decomposition of the genotype matrix.

Authors:  Jørgen Ødegård; Ulf Indahl; Ismo Strandén; Theo H E Meuwissen
Journal:  Genet Sel Evol       Date:  2018-02-28       Impact factor: 4.297

Review 8.  Recovering complete and draft population genomes from metagenome datasets.

Authors:  Naseer Sangwan; Fangfang Xia; Jack A Gilbert
Journal:  Microbiome       Date:  2016-03-08       Impact factor: 14.650

9.  Estimates of genetic trend for single-step genomic evaluations.

Authors:  Karin Meyer; Bruce Tier; Andrew Swan
Journal:  Genet Sel Evol       Date:  2018-08-03       Impact factor: 4.297

  9 in total
  1 in total

Review 1.  Machine and Deep Learning in Molecular and Genetic Aspects of Sleep Research.

Authors:  Michael Elgart; Susan Redline; Tamar Sofer
Journal:  Neurotherapeutics       Date:  2021-04-07       Impact factor: 6.088

  1 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.