A method for detecting SNP combinations in GWAS data based on gene pool

The GPBSO algorithm is used to detect SNP combinations in GWAS data, using gene pool and K-means++ initialization, combined with K2 and G-test functions, to solve the problem of insufficient efficiency and accuracy in detecting complex disease-related SNP combinations in the existing technology, and achieve Efficient and automatic high-order combination detection.

CN118522345BActive Publication Date: 2024-09-17CHANGCHUN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410995721.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-09-17
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

Existing methods for detecting complex disease-related SNP combinations in GWAS data have various shortcomings, including a single generation method of individuals, the user needs to specify the epistasis order, ignoring high-order epistasis, local optimal solutions and randomness in cluster initialization. problems, resulting in insufficient detection efficiency and accuracy.

Method used

The GPBSO algorithm using the gene pool concept imports GWAS data, uses the BOOST strategy and K-means++ initialization, and combines the K2 and G-test functions to generate new individuals and optimize the population structure, automatically infer the maximum epistasis order, and detect high-order SNPs combination to reduce the risk of local optimal solutions.

Benefits of technology

Significantly improves the efficiency and accuracy of detecting correlation between SNP combinations and diseases, automatically predicts the maximum epistasis order, detects high-order SNP combinations, jumps out of local optimal solutions, improves the flexibility and adaptability of the algorithm, and enhances brainstorming Algorithm innovation and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118522345B
    Figure CN118522345B
Patent Text Reader

Abstract

A method for detecting SNP combinations on GWAS data based on gene pools belongs to the cross-technical field of computer science and genetics. The invention adopts a brainstorming algorithm to optimize the problem-solving strategy, combined with a Kmeans++ algorithm and a gene pool management method. The algorithm uses the gene pool concept to optimize the calculation process, and efficiently identifies SNP combinations associated with complex diseases through intelligent search strategies and algorithm optimization. The algorithm not only enhances the efficiency of data processing, but also improves the accuracy of detecting complex genetic interactions, thereby providing a new and powerful tool for genetic research on complex diseases.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the cross-technical field of computer science and genetics, and in particular relates to a method for detecting SNP combinations on GWAS data based on a gene pool. Background Art

[0002] Complex diseases, such as heart disease, hypertension, and diabetes, often involve multiple genes and multiple factors, which makes prevention and treatment particularly difficult. Many of these diseases are difficult to cure, and patients need to rely on drugs to maintain their quality of life. Genome-wide association analysis (GWAS) is a method used in genetics to study the relationship between genes and complex diseases. By analyzing the genotypes of hundreds of thousands of SNPs (single nucleotide polymorphisms) on the DNA of thousands of patients and healthy people, GWAS reveals the correlation between SNPs and diseases, which is of great value for understanding the pathogenic mechanism of diseases and their prevention and treatment. However, the widespread epistasis problem in the data, that is, the interaction between different genes, increases the difficulty of identifying disease-associated SNPs. In GWAS, a single SNP may not be significantly associated with the disease, but when combined with other SNPs, the correlation is significantly enhanced. This phenomenon suggests that the combination of multiple SNPs may jointly affect the development of the disease. Therefore, developing new methods that can efficiently and accurately detect SNP combinations associated with complex diseases is a focus of current genetic research.

[0003] At present, there are three main types of methods for epistasis detection: exhaustive search, random search, and heuristic search. Exhaustive search analyzes all pairwise epigenetic interactions in whole genome case-control studies by evaluating the association of all SNP combinations with phenotypes. For example, BOOST (Boolean Operation-based Screening and Testing) analyzes all pairwise epigenetic interactions in whole genome case-control studies in two stages, TEAM uses the structure of the minimum spanning tree to update the probability table and search for double SNP epigenetic interactions, and MDR reduces the search space by dividing genotypes into high- and low-risk groups. This method is currently one of the most popular methods in this field. Although these methods perform well on small-scale datasets, they perform poorly on large-scale datasets due to their exponential time complexity. The performance of random search methods depends on their sampling number and is not suitable for whole genome-scale datasets. For example, epiMODE detects multi-SNP epigenetic interactions by introducing the concept of epigenetic modules and designing Gibbs sampling strategies, epiForest uses random forests to detect epigenetic interactions in case-control studies, and BEAM identifies epigenetic interactions by dividing SNPs into three non-overlapping groups based on a Bayesian approach. Heuristic search methods are based on the introduction of heuristic information and prior knowledge of biological data, and can usually obtain solutions at a significantly reduced time cost. For example, SNPRuler is a method that identifies epigenetic interactions through prediction rules. Although these methods may sometimes miss the global optimal solution and can only obtain a few local optimal solutions, they still have great development prospects. In addition, methods based on ant colony optimization, such as AntEpiSeeker (Ant stands for ant, because it is an ant colony algorithm, Epi stands for epistasis, because it is to find epistatic SNP combinations in the data, and Seeker means that it is a search algorithm), is a method for detecting SNPs based on ant colony optimization algorithms. It uses ant colony algorithms to explore SNP combinations that are significantly associated with diseases, and then further exhaustively searches the results of ant colony algorithms to obtain results. It proposes a method for detecting SNPs using ant colony optimization algorithms, and proves the feasibility of detecting SNPs associated with complex diseases based on swarm intelligence optimization algorithms. AntMiner is a method that adds heuristic information to ant decision rules. Although it has advantages in detection capabilities, its long running time limits its wide application. MACOED (a multi-objective ant colony optimization algorithm for SNP epistasis detection) is a multi-objective ant colony optimization supervised heuristic search method that combines logistic regression and Bayesian networks. It proves that the introduction of multiple objective functions can achieve complementary effects, thereby improving the efficiency of swarm intelligence algorithms in detecting pathogenic SNP combinations.

[0004] Existing methods for detecting SNP combinations associated with complex diseases in GWAS data have the following main disadvantages:

[0005] 1. Most detection methods based on swarm intelligence optimization algorithms have only one way to generate individuals, while the potential pathogenic models of complex diseases are often very complex, and one method cannot fully and reasonably measure the correlation between SNP combinations and diseases.

[0006] 2. Most existing genetic analysis algorithms force users to specify the order of epistasis, but the genetic mechanisms of complex diseases are extensive and profound, often beyond the scope of intuitive prediction. This method that relies on user presets not only limits the scope of application of the algorithm, but may also reduce the accuracy and practicality of the analysis because users cannot accurately predict the potential epistasis order of complex diseases.

[0007] 3. Most algorithms focus on second-order epistasis when they are designed, while ignoring high-order (>=3) epistatic SNP combinations. Experiments on the algorithms are only conducted on simulated data containing pathogenic relationships of second-order epistatic SNPs. Therefore, most algorithms perform poorly in detecting high-order epistatic SNP combinations, resulting in the inability to detect pathogenic high-order SNP combinations.

[0008] 4. The brainstorming algorithm mainly relies on the exchange of ideas within the group in the process of finding solutions, and it is difficult to jump out of the local optimal solution during the iteration process. This is because brainstorming is often limited by the current knowledge and experience of the participants, as well as the resonance of thinking within the team, which may lead to limitations in innovative thinking, making the algorithm inefficient in exploring the vast solution space and difficult to reach a more comprehensive or innovative global optimal solution.

[0009] 5. The brainstorming algorithm is easily affected by the randomly selected initial center point during the clustering initialization stage, which may lead to randomness and instability in the clustering results. Inappropriate initial clustering centers may cause the algorithm to fall into a local optimal solution, affecting the overall search efficiency and the quality of the results, thereby limiting the application effect of the algorithm on complex data sets. Summary of the invention

[0010] The technical problem to be solved by the present invention is to provide a method for detecting SNP combinations on GWAS data based on gene pools, using the gene pool concept to optimize the calculation process, and efficiently identifying SNP combinations associated with complex diseases through intelligent search strategies and algorithm optimization. The present invention not only enhances the efficiency of data processing, but also improves the accuracy of detecting complex genetic interactions, thereby providing a new and powerful tool for genetic research on complex diseases.

[0011] A new method for detecting SNP combinations in GWAS data based on gene pools includes the following steps:

[0012] Step 1: In the GPBSO algorithm, the genome-wide association analysis GWAS data set is imported. According to the BOOST algorithm strategy, the data is stored in binary form, and two three-dimensional arrays are used to record the genotype information of patients and healthy individuals respectively;

[0013] Step 2: Use the maximum epistasis order mo to define the length of the longest SNP combination related to the disease detected by the GPBSO algorithm, calculate the maximum epistasis order and the maximum length ml of the contingency table, control the maximum allowed length of the SNP combination when the GPBSO algorithm is calculated according to different evaluation functions during operation, and fairly evaluate the correlation between the SNP combination and the disease;

[0014] Step 3: Initialize the population of the GPBSO algorithm. Initialize the number of individuals in the population to PopSize. Each individual consists of an integer vector of length mo. Each element in the vector represents the index of a specific single nucleotide polymorphism SNP in the genome-wide association study GWAS data.

[0015] Step 4: Use Kmeans++ to select cluster centers, initialize clustering, and divide each individual into the cluster represented by the cluster center closest to it;

[0016] Step 5: Use the GPBSO algorithm to generate new individuals in three different dimensions, including randomly selecting an individual from a non-empty cluster, randomly selecting two different individuals from a cluster with more than 2 individuals for crossover operation, and directly randomly selecting genes from the gene pool;

[0017] Step 6: Check whether the new individual generated in step 5 is in the taboo table. If there is no match, the new individual is marked as novel for objective function calculation and evaluation;

[0018] Step 7: Use the K2 function as the target of population evolution, establish the target function, calculate the k2 value of the new individual, if the k2 value of the new individual is less than the average k2 value, the algorithm continues to perform subsequent analysis and optimization steps; if the k2 value of the new individual is not less than the average k2 value, repeat steps 3 to 6, update the clustering, and regenerate the new individual;

[0019] Step 8: Use the G-test value to evaluate the statistical significance of the newborn individuals. After passing the G-test significance test, they are added to the population to replace the individuals with poor performance in the population. At the same time, their genes are added to the gene pool to participate in the process of future individual generation.

[0020] Step 9: Update the clusters and continuously optimize the population structure by selecting the individual with the highest fitness in each cluster as the new cluster center.

[0021] The three-dimensional data structure of the data set in step 1 is: the first dimension of the array corresponds to different SNP markers, the second dimension indicates the genotype variation of each SNP, and the third dimension lists the individuals with the SNP genotype.

[0022] The maximum epistasis order mo in step 2 is:

[0023]

[0024] Where mo is the maximum epistasis order, log is the logarithmic function with the natural constant as the base, m0 is the number of normal samples in the GWAS data, m1 is the number of diseased samples in the GWAS, and min is the function that takes the minimum value of two numbers;

[0025] The maximum length ml of the contingency table is:

[0026]

[0027] The total required number of single nucleotide polymorphisms (SNPs) in step 3 is TotalRequiredSNPs; TotalRequiredSNPs is defined as:

[0028] TotalRequiredSNPs=PopSize*mo

[0029] If the number of all available SNPs N is greater than or equal to TotalRequiredSNPs, the required number of SNPs are randomly allocated to the population; if N is less than TotalRequiredSNPs, repeated extraction is used to ensure that each individual obtains the required number of SNPs; if there are any remaining SNPs, they are placed in the gene pool GenePool; they are used for subsequent iterations of the algorithm or as potential sources of mutations.

[0030] The selection method in the clustering described in step 4 is:

[0031] First, an individual in the population is randomly selected as the first cluster center; each subsequent cluster center is selected using a probability method, where the probability of each individual being selected as the next cluster center is proportional to the square of its distance to the selected center. i The probability of being selected as a new cluster center P(x i )for:

[0032]

[0033] In the formula, D(x i ) is individual xi The distance to the nearest selected cluster center, n is the total number of points in the data set; repeat the above selection process until all k cluster centers are selected, k is the number of clusters,

[0034]

[0035] The populationSize in the formula is the number of individuals, which can be set by the user through parameters, and its default value is 40.

[0036] The objective function calculation method described in step 6 is:

[0037]

[0038] Where k2(X,Y) represents the measure of the correlation between the SNP combination X and the disease state Y; XG represents the genotype set of all possible SNP combinations; XG represents the set of disease states as {0,1}, where 0 represents normal and 1 represents disease; YG represents the set of disease states. For GWAS studies, the states of samples are only diseased and normal, so YG is usually {0,1}, with 0 representing normal samples and 1 representing diseased samples; m x represents the number of samples with a specific genotype x, m x,y represents the number of samples with both genotype x and disease state y.

[0039] The average k2 value update in step 7 uses the mean function:

[0040]

[0041] Where oldMeanK2 is the average k2 value before the update, nofc is the number of k2 value calculations that have been performed before, and k2 is the k2 value of the current individual;

[0042] After each call to the mean function, nofc increases, indicating that the total number of individuals participating in the average calculation increases.

[0043] Step 8: The G-test value is used to determine the statistical test of the correlation between the SNP combination and the disease status. If the p-value of the G-test is less than 0.05, there is a statistically significant correlation between the newborn individual and the disease status. The algorithm formula is:

[0044]

[0045] In the formula, g(X,Y) is the p-value of the G-test independence test of SNP combination X and sample state Y, F(X,Y) is the degree of freedom of the independence test, and m is the p-value of the G-test independence test of SNP combination X and sample state Y. x is the number of samples with SNP combination genotype x, my is the number of samples with sample state y, m is the total number of samples, E(x,y) is the expected number of samples with SNP combination genotype x and sample state y, and pvalueOfG is a function that calculates the pvalue of the statistic under the chi-square distribution.

[0046] The method for updating clustering in step nine is:

[0047] A. Select new cluster center: The system traverses the current clusters and, for each cluster, determines the individual with the highest fitness as the new cluster center; fitness evaluation is based on the correlation between the individual and the specific disease state;

[0048] B. Update clustering: Based on the newly selected cluster center, the system reallocates other individuals to the nearest cluster; the allocation is completed by calculating the similarity between each individual and the new cluster center, ensuring that each individual belongs to the cluster that best matches its characteristics;

[0049] C. Determine the number of iterations of the GPBSO algorithm. If the number of iterations reaches the maximum number of iterations, the algorithm is executed and the results recorded by the algorithm are output to the result file. If the maximum number of iterations is not reached, update the mutation rate and enter the next cycle.

[0050] Through the above design scheme, the present invention can bring the following beneficial effects:

[0051] 1. The present invention significantly enhances the flexibility and adaptability of the algorithm by providing three different ways to generate individuals. These three methods can explore and evaluate the correlation between SNP combinations and diseases from multiple perspectives, more comprehensively adapt to the potential pathogenic models of complex diseases, and effectively improve the quality and accuracy of the solution.

[0052] 2. The present invention proposes a method for automatically inferring the maximum epistasis order in the calculation process based on the number of samples in the data, without requiring the user to specify the epistasis order. The algorithm considers all epistasis that is less than or equal to the maximum order.

[0053] 3. The present invention proposes a method for detecting significantly correlated SNP combinations on high-order SNP combinations based on K2 and G-test, which enables the algorithm to detect all SNP combinations that are less than or equal to the maximum epistasis order and are significantly associated with the disease in GWAS data.

[0054] 4. This invention introduces a "gene pool" management method, which significantly improves the innovation ability and efficiency of the brainstorming algorithm by extracting and combining information from a wide range of genetic variation resources. This makes the algorithm not limited by the thinking of a single team, and by expanding the search space, it effectively jumps out of the local optimal solution and approaches or reaches the global optimal solution more comprehensively.

[0055] 5. In the process of clustering by the brainstorming algorithm, the present invention uses Kmeans++ to initialize clustering. When initializing the cluster center, the Kmeans++ algorithm selects the initial point through weighted probability distribution, thereby reducing randomness and improving clustering quality. This method can avoid the problem of poor initial values ​​that may occur in the traditional K-means algorithm, and can usually lead to faster convergence and better clustering results. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The present invention is further described below with reference to the accompanying drawings and specific embodiments:

[0057] Figure 1 The present invention is a schematic flow chart of a method for detecting SNP combinations in GWAS data based on a gene pool.

[0058] Figure 2 This is a specific implementation method of the present invention for detecting SNP combinations based on gene pools in GWAS data, and a comparison chart of the results of different algorithms on the DME 100 data set.

[0059] Figure 3 This is a specific implementation method of the present invention for detecting SNP combinations based on gene pools in GWAS data, and a comparison chart of the results of different algorithms on the DNME 100 dataset.

[0060] Figure 4 This is a specific implementation method of the present invention for detecting SNP combinations based on gene pools in GWAS data, and a comparison chart of the results of different algorithms on the DNME3100 dataset. DETAILED DESCRIPTION

[0061] A method for detecting SNP combinations in GWAS data based on gene pools is named GPBSO (Gene Pool-based Brainstorm Optimization) algorithm. Its main flow chart is as follows Figure 1 As shown,

[0062] 1. Load GWAS data into memory

[0063] When implementing the GPBSO algorithm, the program is written in Java and uses an efficient data loading method to import the GWAS dataset into memory. The strategy of the BOOST (Boolean Operation-based Screening and Testing) algorithm is adopted to store the data in binary form, using two three-dimensional arrays to record the genotype information of patients and healthy individuals respectively. In this data structure, the first dimension of the array corresponds to different SNP markers, the second dimension indicates the genotype variation of each SNP, and the third dimension lists in detail the individuals with the SNP genotype. The binary storage mechanism of the GPBSO algorithm not only optimizes the memory usage efficiency, but also significantly improves the processing speed of calculating the K2 function.

[0064] 2. Calculate the maximum epistasis order and the maximum length of the contingency table based on the number of samples in the data

[0065] In the algorithm, the maximum epistasis order (mo) defines the length of the longest disease-related SNP combination that the GPBSO algorithm can detect. This parameter depends on the number of samples, because when evaluating the association between SNP combinations and diseases, too long SNP combinations may cause problems in the calculation of the evaluation function. Specifically, if the number of samples under a certain SNP combination is too small, the evaluation function may not work effectively. The present invention calculates the maximum epistasis order through a formula (Formula 1), which aims to control the maximum allowable length of the SNP combination when the GPBSO algorithm is calculated according to different evaluation functions during operation, and ensures that there are enough samples under each combination of genotypes (based on the natural constant e) to prevent the evaluation function from failing due to the excessive length of the SNP combination.

[0066]

[0067] Among them, mo is the maximum epistasis order, log is the logarithmic function with natural constant as the base, m0 is the number of normal samples in GWAS data, m1 is the number of diseased samples in GWAS, and min is the function that takes the minimum value of two numbers.

[0068] The maximum length of the contingency table (ml) is used to limit the maximum length of the contingency table generated during the evaluation function calculation process. When calculating the correlation between SNP combinations and diseases based on the evaluation function, even for SNP combinations of the same length, when generating the contingency table, the length of the non-zero contingency table is not uniform due to the phenomenon that there may be no samples under certain combination genotypes. Almost all evaluation functions are biased in calculation for contingency tables of different lengths. The longer the non-zero contingency table, the greater the correlation between the SNP combination and the disease. Therefore, when calculating the evaluation function in GPBSO, a method to limit the length of the contingency table is introduced to fairly evaluate the correlation between the SNP combination and the disease. The calculation of the maximum length of the contingency table is shown in Formula 2. The basic idea is to make the average number of samples for each unit in the contingency table 10.

[0069]

[0070] Where ml is the maximum length of the contingency table, and the definitions of min, m0, and m1 are the same as those in Formula 1.

[0071] 3. Initialize the population

[0072] In the brainstorming optimization algorithm, the initialization of the population is a key step. The number of individuals in the population (PopSize) can be set by the user through parameters, and its default value is 40. Each individual consists of an integer vector of length mo, and each element in the vector represents the index of a specific single nucleotide polymorphism (SNP) in the genome-wide association study (GWAS) data.

[0073] In the process of initializing the population, the total number of SNPs required must first be calculated to ensure that each individual can obtain a unique genetic marker combination consisting of sufficient SNPs in the initial state of the population. The key to this step is to maximize the genetic diversity of the population, which is crucial for the effective operation of the genetic algorithm, because higher genetic diversity helps the algorithm avoid premature convergence and explore a wider solution space.

[0074] Specifically, each individual requires mo SNPs, and there are PopSize individuals, so the total number of SNPs required is TotalRequiredSNPs. TotalRequiredSNPs is defined as follows

[0075] TotalRequiredSNPs=PopSize*mo

[0076] If N (the number of all available SNPs) is greater than or equal to TotalRequiredSNPs, the required number can be randomly allocated to the population directly from these SNPs, and the uniqueness and diversity of each individual in the population are guaranteed. If N is less than TotalRequiredSNPs, it means that the existing SNP resources are insufficient to meet the independent needs of each individual. In this case, repeated extraction is required to ensure that each individual obtains the required number of SNPs.

[0077] The remaining SNPs, if any, will be placed in the GenePool. This portion of SNPs can be used in subsequent iterations of the algorithm to further enhance the genetic diversity of the population, or as a potential source of mutations, thereby increasing the adaptability and evolutionary potential of the population.

[0078] After each individual was assigned a specific SNP combination, their K2 function was calculated.

[0079] Therefore, each individual represents a specific SNP combination. By continuously evolving these populations, the Brainstorm optimization algorithm aims to optimize the population structure and identify key SNP combinations associated with diseases. This approach accelerates the ability to solve complex genetic problems by simulating the process of natural selection and genetic variation.

[0080] 4. Use Kmeans++ to select cluster centers and initialize clustering

[0081] First, an individual in the population is randomly selected as the first cluster center. For the selection of each subsequent cluster center, a probabilistic method is used, in which the probability of each individual being selected as the next cluster center is proportional to the square of its distance to the selected center.

[0082] Specifically, individual x i The probability of being selected as a new cluster center P(x i ) is defined as shown in Formula 3

[0083]

[0084] Among them, D(x i ) is individual x i The distance n to the nearest selected cluster center is the total number of points in the data set. Repeat the above selection process until all k cluster centers are selected. Here k is the number of clusters. Its calculation method is shown in Formula 4

[0085]

[0086] Once all cluster centers are determined, they are used to initialize clustering. Specifically, each individual is assigned to the cluster represented by the cluster center that is closest to it.

[0087] 5. Randomly select three methods to generate individuals

[0088] The GPBSO algorithm proposed in this invention uses three different dimensional methods to generate individuals.

[0089] Method A: Randomly select an individual from a non-empty cluster

[0090] In this case, first screen out all non-empty clusters. Randomly select a cluster c from these clusters, then randomly select an individual i from the selected cluster c, extract the first half of the genes from individual i and add them to the genes of the new individual, and for the remaining genes, extract them from the gene pool (GenePool). If the number in the gene pool is insufficient, then extract them from genes less than N (the number of all available SNPs).

[0091] Method B: Randomly select two different individuals from a cluster with more than 2 individuals for crossover operation

[0092] First, identify all clusters with more than 2 individuals. Randomly select a cluster c' from these clusters, and then randomly select two different individuals i1 and i2 in cluster c'. Merge the gene sets G1 and G2 of these two individuals, and randomly extract the required number of genes from the merged gene set to form the gene set of the new individual. This crossover operation helps to increase genetic diversity and promote better gene combinations.

[0093] Method C: Randomly select genes directly from the gene pool

[0094] In this case, all genes of the new individual are directly drawn from the gene pool (GenePool). If the number in the gene pool is insufficient, they are drawn from genes less than N (the number of all available SNPs).

[0095] 6. Is the newly generated individual already in the taboo table?

[0096] Before a new individual is used to calculate the objective function, it needs to go through a check step to determine whether the individual already exists in the taboo table. The taboo table stores individual configurations that have been explored or need to be avoided in previous iterations. The genome x of the new individual is compared with each entry in the taboo table. This is achieved by comparing gene sequences. If the gene sequence of the new individual completely matches any entry in the taboo table, the individual is considered "taboo", that is, it has been explored or is prohibited from use. If there is no match, the new individual is considered novel and can be used in subsequent objective function calculations and evaluation steps. This check ensures that the algorithm avoids repeatedly exploring the same solution space area, increasing the breadth and effectiveness of the search.

[0097] 7. Calculate the value of the objective function of the new individual

[0098] The GPBSO algorithm proposed in the present invention uses the K2 function as the target of population evolution. The K2 function is an effective tool for analyzing the correlation between SNP combinations and diseases, and is particularly suitable for processing genome-wide association study (GWAS) data. It is based on Bayesian networks and information theory principles, and can accurately evaluate the dependencies between SNPs and between SNPs and diseases. Through the greedy search strategy, the K2 function can learn data-driven models from a large number of potential network structures while ensuring computational efficiency. In addition, the constructed Bayesian network model not only quantifies the relationship between variables, but also presents it intuitively in the form of graphics, greatly enhancing the interpretability of the model. These characteristics make the K2 function particularly important in genetic data analysis, and contribute to a deep understanding of how genetic variation affects diseases. The lower its value, the stronger the relationship between the corresponding SNP combination and the disease.

[0099] The specific calculation method is shown in Formula 5

[0100]

[0101] In the above formula, k2(X,Y) represents the measure of the correlation between the SNP combination X and the disease state Y. Among them, XG represents the genotype set of all possible SNP combinations. For example, for a two-site SNP combination, where the genotype of each SNP can be 0, 1, or 2, XG will include the following combinations: {(0,0), (0,1), (0,2), (1,0), (1,1), (1,2), (2,0), (2,1), (2,2)}. XG represents the set of disease states, usually {0,1}, where 0 represents normal and 1 represents disease.

[0102] m x represents the number of samples with a specific genotype x, m x,y represents the number of samples with both genotype x and disease state y.

[0103] This function uses the principle of Bayesian network to evaluate the association between SNP combination and disease state by counting the occurrence frequency of various genotype combinations under different disease states and calculating conditional probability. This method fully considers the frequency of various genotypes and their relationship with disease state, and provides an effective mathematical model for evaluating the impact of SNP combination on disease, which is particularly suitable for revealing the genetic mechanism of complex diseases.

[0104] 8. Whether a SNP combination significantly associated with the disease is detected

[0105] When the k2 value of a new individual is less than the previously calculated average k2 value (i.e., k2<meanK2), the algorithm will continue to perform subsequent analysis and optimization steps. This means that only when a new individual shows a stronger association than the average observed in the past will it be further considered for the identification of possible disease-related SNP combinations. If the k2 value of a new individual fails to be lower than the average, the individual will not enter the subsequent optimization process, and the algorithm will directly update the clustering and continue to generate new individuals for testing.

[0106] The average k2 value is updated by the mean function. If it is the first time to calculate the k2 value (nofc is 0), the k2 value of the current individual is directly set to the average k2 value. For non-first calculations, the average k2 value is updated as shown in formula 6.

[0107]

[0108] Here, oldMeanK2 is the average k2 value before the update, nofc is the number of times the k2 value has been calculated before, and k2 is the k2 value of the current individual. After each call to the mean function, nofc increases, indicating that the total number of individuals involved in the average calculation has increased. This approach ensures that the average k2 value can be dynamically adjusted based on new data, helping the algorithm optimize the exploration of disease-related SNP combinations based on the latest information.

[0109] 9. Is it necessary to add new individuals to the population?

[0110] The statistical significance of the new individuals is further evaluated by calculating their G-test values. G-test is a statistical test used to determine the correlation between SNP combinations and disease states. If the p-value of G-test is less than 0.05, this indicates that there is a statistically significant correlation between the new individuals and the disease state. In this case, according to the design of the algorithm, the new individuals are considered good enough and should be added to the population. This decision is based on the fact that the new individuals may provide deeper insights into disease mechanisms or increase the genetic diversity of the population, thereby achieving more efficient search and better solution space exploration in the evolutionary algorithm. The specific formula is as follows:

[0111]

[0112] In Formula 7, g(X,Y) is the p-value of the G-test independence test of SNP combination X and sample status Y, F(X,Y) is the degree of freedom of the independence test, mx is the number of samples with SNP combination genotype x, my is the number of samples with sample status y, m is the total number of samples, E(x,y) is the expected number of samples with SNP combination genotype x and sample status y, pvalueOfG is a function that calculates the pvalue of the statistic under the chi-square distribution, and the definitions of other symbols are the same as above.

[0113] In summary, new individuals will only be added to the population to replace individuals with poor performance after passing the G-test significance test, and their genes will also be added to the gene pool to participate in the process of future individual generation. This strategy aims to continuously optimize and update the population to improve the overall performance of the algorithm and its ability to solve problems.

[0114] 10. Eliminate the worst individuals in the population and add new individuals

[0115] If the G-test value of a new individual is less than 0.05, it indicates that there is a statistically significant correlation between the individual and the disease state. Then the new individual needs to be added to the population, and the individual with the worst fitness in the population needs to be deleted to maintain the integrity of the population.

[0116] 11. Add the genes of the eliminated individuals to the gene pool and add the genes of the new individuals

[0117] As new individuals join the population and the worst individuals are eliminated, the genetic composition of the population changes. This change also needs to be reflected in the gene pool to ensure that the content of the gene pool is consistent with the genetic characteristics of the current population, thereby maintaining a dynamic balance between the population and the gene pool.

[0118] First, check whether the G-test value of the new individual added to the population is less than 0.05. If the value is less than 0.05, it means that the new individual does show a significant correlation with the disease and has been added to the population. However, in order to maintain the integrity and dynamic balance of the population, the following steps will be performed:

[0119] 1. Undo operation: remove the new individual from the population. This step is to re-evaluate and optimize the population structure to ensure that each entry is carried out under the most stringent standards.

[0120] 2. Reselection: Randomly select another individual to replace the new individual just removed to keep the population size and genetic diversity unchanged.

[0121] 3. Update the gene pool: Add the genes of the new individuals removed from the population back to the gene pool, and remove the genes of the random individuals used to replace them from the gene pool. This step ensures that the gene pool matches the genetic characteristics of the population and supports the sustainability of population development.

[0122] If the G-test value of the new individual is not less than 0.05, although the new individual has been added to the population, it does not show sufficient disease relevance:

[0123] Gene pool updating: To keep the gene pool relevant and useful, the genes of new individuals are removed from the gene pool and the genes of the worst individuals are added back into the gene pool. This is done to maintain the genetic diversity of the gene pool and ensure that the genes in the gene pool are synchronized with the genetic characteristics in the population.

[0124] In this way, a continuous flow and update of genetic information is maintained between the population and the gene pool, which helps the algorithm to explore and adapt to the genetic environment more effectively in future iterations, while ensuring the optimization of the population structure and the rational use of genetic resources.

[0125] 12. Update Clustering

[0126] In the present invention, the step of updating clustering is crucial, and the purpose is to continuously optimize the population structure by selecting the individual with the highest fitness in each cluster as the new cluster center. This process includes the following key steps:

[0127] 1. Select new cluster centers: The system traverses the current clusters and, for each cluster, determines the individual with the highest fitness as the new cluster center. Fitness evaluation is based on the performance of the individual under a specific evaluation function, such as correlation with a specific disease state.

[0128] 2. Update clustering: Based on the newly selected cluster center, the system reallocates other individuals to the nearest cluster. This process is done by calculating the similarity between each individual and the new cluster center, ensuring that each individual belongs to the cluster that best matches its characteristics.

[0129] Then determine the number of iterations of the GPBSO algorithm. If the number of iterations reaches the maximum number of iterations (a parameter specified by the user), the algorithm is executed and the results recorded by the algorithm are output to the result file. If the maximum number of iterations is not reached, update the mutation rate and enter the next cycle.

[0130] Example

[0131] 1. Simulate Dataset

[0132] When studying the performance of the new GPBSO algorithm, this embodiment describes in detail the simulation data sets used. There are 22 data sets, all of which are generated by using GAMETES_2.1 software and different pathological models. In order to evaluate the effectiveness of the GPBSO algorithm in the present invention, experiments were conducted on 22 simulated data sets to compare the performance of the algorithm with other existing detection methods. These data sets were made by GAMETES_2.1 software based on a variety of disease generation models, and detailed information is listed in Table 1.

[0133] Through this detailed experimental design and dataset preparation, we can comprehensively evaluate the performance of the GPBSO algorithm in a simulated environment and compare it with other existing algorithms, thereby verifying its practicality and effectiveness in detecting complex disease models.

[0134] Table 1 Introduction to the simulated data set

[0135]

[0136] DME 100 dataset: contains 8 DME datasets, which are composed of 8 folders. Each folder corresponds to a different DME (disease loci with marginal effects) model, and contains 100 files generated by a DME model corresponding to the folder. The content of each file is a simulated GWAS data, which contains 1600 samples (800 diseased and 800 normal), 100 SNPs (2 pathogenic and 98 unrelated). Experiments on this simulated dataset can verify the ability of the algorithm to detect disease-related SNP combinations with marginal effects.

[0137] DNME 100 dataset: contains 8 DNME datasets, which are composed of 8 folders. Each folder corresponds to a different DNME (disease loci without marginal effect s) model. The other contents are similar to the DME 100 dataset. The pathogenic model simulated in the DNME dataset lacks marginal effects compared to the DME dataset, so it is more difficult to detect pathogenic SNP combinations.

[0138] DNME3100 dataset: contains 6 DNME datasets, which are composed of 6 folders. Each folder corresponds to a different DNME model (3rd order). Its content is similar to that of DNME 100 dataset, except that DNME3100 model simulates the 3rd order pathogenic SNP combination model. Therefore, each GWAS simulation data file in the dataset contains 100 SNPs (3 pathogenic and 97 irrelevant). Experiments on this simulated dataset can further verify the ability of the algorithm to detect disease-related SNP combinations with high-order and no marginal effects.

[0139] 2. Evaluation indicators

[0140] In order to evaluate and compare the performance of various algorithms on a simulated data set for identifying disease-related SNP combinations, the present invention uses two evaluation indicators, F-measure and power. These two indicators are widely used in this field to measure the detection efficiency of the algorithm. The specific calculation method is shown in Formula 8.

[0141]

[0142] In this embodiment, power and F-measure are defined as functions used to evaluate the effectiveness of the algorithm in detecting disease-related SNP combinations. For each model in the data set, 100 simulated data files are included, and the power of the algorithm for the model is determined by analyzing these 100 files and calculating the proportion of files that correctly identify the pathogenic model. In addition, for each simulated file, after the algorithm runs, multiple SNP combinations will be identified, which are considered to be significantly associated with the disease. Here, TP represents the number of pathogenic SNP combinations correctly identified by the algorithm, FN is the number of pathogenic SNP combinations not detected by the algorithm, and FP is the number of non-pathogenic SNP combinations that are incorrectly marked as pathogenic. Among them, recall is the recall rate and precision is the precision rate. For each model in the data set, 100 F-measure values ​​will be obtained after the algorithm is completed. By averaging these values, the F-measure score of the algorithm on the model is obtained.

[0143] 3. Experimental results

[0144] The embodiment of the present invention analyzes a large number of simulated data sets by using algorithms such as AntEpiSeeker, DECMDR, SNPHarvester, HSMMG KG, SEE, GPBSO, etc. to evaluate the performance of the newly proposed GP BSO algorithm. According to the parameters listed in Table 2, these experiments are intended to fairly compare the ability of different algorithms to detect SNP combinations. Among them, AntEpiSeeker and SNPHarvester algorithms do not support the detection of 3rd-order SNP combinations. To ensure the fairness of the comparison, the parameter settings of all algorithms follow the best practice recommendations in their relevant literature. In addition, considering that most algorithms are based on the principle of swarm intelligence, the analysis of different algorithms on the same data set in the experiment uses the same population size and number of iterations.

[0145] Table 2 Execution parameters of the algorithm on the simulated data set

[0146]

[0147] The experimental results on DME 100 are shown in Table 3, where "p" and "f" represent power and F-measure, respectively. The specific calculation method is detailed in Formula 1. The present invention analyzes 8 simulation models of this data set, and each model is an independently simulated pathogenic model. Among these models, the GPBSO algorithm generally shows superior detection performance than other algorithms. On average, the power of the GPBSO algorithm on the DME 100 data set is 0.93 and the F-measure is 0.80. In comparison, the highest average power and F-measure among other algorithms are 0.75 and 0.65, respectively. These results show that the GPBSO algorithm is significantly superior to other current algorithms in identifying pathogenic SNP combinations with marginal effects. Figure 2 The performance comparison of different algorithms on the DME 100 dataset is presented in detail.

[0148] Table 3 Comparison results of different algorithms on the DME 100 dataset

[0149]

[0150]

[0151] The execution results on the DNME 100 dataset are shown in Table 4. On the 8 different simulated pathogenic models on this dataset, the GPBSO algorithm still has a great advantage. On average, the power and F-measure of the GPBSO algorithm on this dataset are 0.95 and 0.84, respectively. Among other algorithms, the highest average power and F-measure are 0.90 and 0.75, respectively. Although the power of AntEpiSeeker is 0.90, which is only slightly lower than that of the GPBSO algorithm, its F-measure is only 0.11, which is a big gap from the GPBSO algorithm. It can be seen that although the AntEpiSeeker algorithm can effectively detect pathogenic SNP combinations, its false positive rate is too high compared with the GPBSO algorithm, and there is a lot of noise in the detection results. The experimental results show that the GPBSO algorithm still has obvious advantages over other current algorithms when detecting pathogenic SNP combinations with no marginal effects. Figure 3 A comparison chart of the results of different algorithms on DNME 100 data is shown.

[0152] Table 4 Comparison results of different algorithms on the DNME 100 dataset

[0153]

[0154] The execution results on the DNME3100 dataset are shown in Table 5. The GPBSO algorithm has a greater advantage in the 6 different simulated pathogenic models on this dataset. On average, the power and F-measure of the GPBSO algorithm on this dataset are 0.96 and 0.76, respectively, while among other algorithms, the highest average power and F-measure are 0.02 and 0.02, respectively. This obvious advantage is mainly due to the fact that other current algorithms do not fully consider the detection of high-order pathogenic SNP combinations when they are designed. These algorithms lack this ability, and complex diseases are often common diseases caused by the joint action of multiple genes. The pathogenic models contained in GWAS data may also be very complex. The GPBSO algorithm is more suitable for the detection task of high-order pathogenic SNP combinations. The experimental results show that the GPBSO algorithm has obvious advantages over other current algorithms in detecting high-order pathogenic SNP combinations. Figure 4 The following figure shows the comparison of the results of different algorithms on the DNME3100 data.

[0155] Table 5 Comparison results of different algorithms on the DNME3100 dataset

[0156]

Claims

1. A method for detecting SNP combinations in GWAS data based on a gene pool, characterized by: It is defined as the GPBSO algorithm, which includes the following steps, Step 1: In the GPBSO algorithm, the genome-wide association analysis GWAS data set is imported. According to the BOOST algorithm strategy, the data is stored in binary form, and two three-dimensional arrays are used to record the genotype information of patients and healthy individuals respectively; Step 2: Use the maximum epistasis order mo to define the length of the longest SNP combination related to the disease detected by the GPBSO algorithm, calculate the maximum epistasis order and the maximum length ml of the contingency table, control the maximum allowed length of the SNP combination when the GPBSO algorithm is calculated according to different evaluation functions during operation, and fairly evaluate the correlation between the SNP combination and the disease; Step 3: Initialize the population of the GPBSO algorithm. Initialize the number of individuals in the population to PopSize. Each individual consists of an integer vector of length mo. Each element in the vector represents the index of a specific single nucleotide polymorphism SNP in the genome-wide association study GWAS data. Step 4: Use Kmeans++ to select cluster centers, initialize clustering, and divide each individual into the cluster represented by the cluster center closest to it; Step 5: Use the GPBSO algorithm to generate new individuals in three different dimensions, including randomly selecting an individual from a non-empty cluster, randomly selecting two different individuals from a cluster with more than 2 individuals for crossover operation, and directly randomly selecting genes from the gene pool; Step 6: Check whether the new individual generated in step 5 is in the taboo table. If there is no match, the new individual is marked as novel for objective function calculation and evaluation; Step 7: Use the K2 function as the target of population evolution, establish the target function, calculate the k2 value of the new individual, and if the k2 value of the new individual is less than the average k2 value, the algorithm will continue to perform subsequent analysis and optimization steps. The k2 value of the new individual is not less than the average k2 value, repeat steps 3 to 6, update the clustering, and regenerate new individuals; Step 8: Use the G-test value to evaluate the statistical significance of the newborn individuals. After passing the G-test significance test, they are added to the population to replace the individuals with poor performance in the population. At the same time, their genes are added to the gene pool to participate in the process of future individual generation. Step 9: Update the clusters and continuously optimize the population structure by selecting the individual with the highest fitness in each cluster as the new cluster center.

2. The method for detecting SNP combinations based on GWAS data based on a gene pool according to claim 1, characterized in that: The three-dimensional data structure of the data set in step 1 is: the first dimension of the array corresponds to different SNP markers, the second dimension indicates the genotype variation of each SNP, and the third dimension lists the individuals with the SNP genotype.

3. The method for detecting SNP combinations based on GWAS data based on a gene pool according to claim 1, characterized in that: The maximum epistasis order mo in step 2 is: Where mo is the maximum epistasis order, log is the logarithmic function with the natural constant as the base, m0 is the number of normal samples in the GWAS data, m1 is the number of diseased samples in the GWAS, and min is the function that takes the minimum value of two numbers; The maximum length ml of the contingency table is:

4. The method for detecting SNP combinations based on GWAS data based on a gene pool according to claim 3, characterized in that: The total required number of single nucleotide polymorphisms (SNPs) in step 3 is TotalRequiredSNPs; TotalRequiredSNPs is defined as: TotalRequiredSNPs=PopSize*mo If the number of all available SNPs N is greater than or equal to TotalRequiredSNPs, the required number of SNPs are randomly allocated to the population; if N is less than TotalRequiredSNPs, repeated extraction is used to ensure that each individual obtains the required number of SNPs; if there are any remaining SNPs, they are placed in the gene pool GenePool; they are used for subsequent iterations of the algorithm or as potential sources of mutations.

5. The method for detecting SNP combinations based on GWAS data based on a gene pool according to claim 1, characterized in that: The method for selecting the cluster center in step 4 is: First, an individual in the population is randomly selected as the first cluster center; each subsequent cluster center is selected using a probability method, where the probability of each individual being selected as the next cluster center is proportional to the square of its distance to the selected center. i The probability of being selected as a new cluster center P(x i )for: In the formula, D(x i ) is individual x i The distance to the nearest selected cluster center, D(x j ) is individual x j The distance to the nearest selected cluster center, n is the total number of points in the data set; repeat the above selection process until all k cluster centers are selected, k is the number of clusters, Where populationSize is the number of individuals, which is set by the user through parameters and its default value is 40.

6. The method for detecting SNP combinations based on GWAS data based on a gene pool according to claim 1, characterized in that: The objective function calculation method described in step 6 is: Where k2(X,Y) represents the measure of the correlation between the SNP combination X and the disease state Y; XG represents the genotype set of all possible SNP combinations; XG represents the set of disease states as {0,1}, 0 represents normal and 1 represents disease; YG represents the set of disease states. For GWAS studies, the sample states include disease and normal, and YG is {0,1}, with 0 representing normal samples and 1 representing disease samples; m x represents the number of samples with a specific genotype x, m x,y represents the number of samples with both genotype x and disease state y.

7. The method for detecting SNP combinations based on GWAS data based on a gene pool according to claim 1, characterized in that: The average k2 value is updated using the mean function: Where oldMeanK2 is the average k2 value before the update, nofc is the number of k2 value calculations that have been performed before, and k2 is the k2 value of the current individual; After each call to the mean function, nofc increases, indicating that the total number of individuals participating in the average calculation increases.

8. The method for detecting SNP combinations based on GWAS data based on a gene pool according to claim 6, characterized in that: Step 8: The G-test value is used to determine the statistical test of the correlation between the SNP combination and the disease status. If the p-value of the G-test is less than 0.05, there is a statistically significant correlation between the newborn individual and the disease status. The algorithm formula is: F(X,Y)=(|XG|-1)×(|YG|-1) In the formula, g(X,Y) is the p-value of the G-test independence test of SNP combination X and sample state Y, F(X,Y) is the degree of freedom of the independence test, and m is the p-value of the G-test independence test of SNP combination X and sample state Y. x is the number of samples with SNP combination genotype x, m y is the number of samples with sample state y, m is the total number of samples, E(x,y) is the expected number of samples with SNP combination genotype x and sample state y, and pvalueOfG is a function that calculates the pvalue of the statistic under the chi-square distribution.

9. The method for detecting SNP combinations based on GWAS data based on a gene pool according to claim 1, characterized in that: The method for updating clustering in step nine is: A. Select new cluster center: The system traverses the current clusters and, for each cluster, determines the individual with the highest fitness as the new cluster center; fitness evaluation is based on the correlation between the individual and the specific disease state; B. Update clustering: Based on the newly selected cluster center, the system reallocates other individuals to the nearest cluster; the allocation is completed by calculating the similarity between each individual and the new cluster center, ensuring that each individual belongs to the cluster that best matches its characteristics; C. Determine the number of iterations of the GPBSO algorithm. If the number of iterations reaches the maximum number of iterations, the algorithm is executed and the results recorded by the algorithm are output to the result file. If the maximum number of iterations is not reached, update the mutation rate and enter the next cycle.