The invention relates to the technical field of
computer science and
biology, in particular to a method for detecting the
horizon in GWAS data based on a
sparrow search algorithm, which comprises the following steps of: loading the GWAS data, and calculating the maximum
horizon order and the maximum length of a column
list; initializing the position of the
sparrow group; calculating the fitness of sparrows in the group; updating the position of the discoverer; updating the position of the follower; generating a new
sparrow; screening sparrows in the group, and detecting the epistatic property; judging whether
local optimum exists or not; and generating a result. According to the method, the SNP combination related to the
disease state can be comprehensively evaluated, and the analysis depth is improved; the order of the epistatic interaction significantly related to the
disease state can be automatically identified, and the actual demand is better met; a new individual is generated based on the SNP weight vector in iteration, the SNP weight vector is updated in each iteration according to a detection result, and the evolution direction of the
population is guided; the problem of false positive during detection of epistatic interaction is solved.