Evaluation method and system for genome structural variation detection based on benchmark set

Through the evaluation method based on the benchmark set, the problem of inaccurate detection results of genomic structural variants in traditional methods is solved. By calculating indicators such as overlap, size similarity, and sequence consistency, more accurate variant matching and evaluation are achieved, and detection efficiency is improved. reliability and accuracy.

CN118645152BActive Publication Date: 2024-10-11YANTAI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411095507.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-10-11
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

Traditional genome structural variant detection methods lack specialized matching standards and evaluation indicators for complex variant types, resulting in inaccurate evaluation results.

Method used

A benchmark set-based evaluation method is adopted to improve the performance by extracting variant data, determining search space, calculating overlap and size similarity, matching structural variant types, calculating sequence consistency scores, and evaluating based on breakpoint distance and variant size ratio. Accuracy and reliability of variant matching.

Benefits of technology

It improves the accuracy and reliability of genome structural variant detection, can more accurately identify true structural variants, filters out false positive results caused by sequencing errors and noise, and provides higher reliability in allele matching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118645152B_ABST
    Figure CN118645152B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of genome structural variation detection, and specifically relates to an evaluation method and system for genome structural variation detection based on a benchmark set, which sequentially performs variation matching according to the standards of determining a search space, calculating overlap, calculating a size similarity score, matching structural variation types, and calculating a sequence consistency score, and after obtaining matched structural variations, performs evaluation according to breakpoint distance and variation size ratio, so that the evaluation is more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of genome structural variation detection, and in particular relates to an evaluation method and system for genome structural variation detection based on a benchmark set. Background Art

[0002] The evaluation of structural variation (SV) identification results aims to measure and verify the accuracy and reliability of different SV identification methods in detecting and locating genomic variations. Traditional evaluation methods have multiple defects that affect the accuracy and reliability of SV identification results. SVs include many types, such as insertions, deletions, duplications, inversions, translocations, and complex variant types (such as inverted duplications and inverted deletions), and the identification and matching of each type has its own unique requirements. However, traditional methods often lack specialized matching criteria and evaluation indicators for these complex variant types, resulting in inaccurate evaluation results. Summary of the invention

[0003] In order to solve the problems raised by the background technology, the present invention provides an evaluation method and system for genome structural variation detection based on a benchmark set.

[0004] The technical solution of the present invention is as follows:

[0005] The present invention provides an evaluation method for genome structural variation detection based on a benchmark set, comprising the following steps:

[0006] S1: Based on the user variation identification result set and the benchmark set, respectively extract variation data, including: chromosome name, start position, end position, structural variation type, structural variation length, reference sequence, variation sequence, and construct a first user variation identification result set and a first benchmark set according to the extracted variation data;

[0007] S2: Based on the chromosome name, the search space is determined according to the length of the structural variation of the variation site in the first benchmark set;

[0008] S3: for each variation in the first user variation identification result set and each variation in the search space of the first benchmark set, respectively extending the two ends by a third length to obtain a second user variation identification result set and a second benchmark set;

[0009] Calculate the overlap between the variation in the second user variation identification result set and each variation in the second benchmark set. If there is overlap, the two overlapping variations are recorded as a first matching pair.

[0010] S4: Calculate the size similarity of the variation of the first matching pair to obtain a size similarity score; if the size similarity score is greater than a size similarity score threshold, it is recorded as a second matching pair;

[0011] S5: Based on the structural variation type, the variation of the second matching pair is matched with the structural variation type. If the matching condition is met, it is recorded as the third matching pair;

[0012] S6: Calculate the sequence consistency of the variation of the third matching pair to obtain a sequence consistency score; if the sequence consistency score is greater than a sequence consistency score threshold, it is recorded as a matched structural variation;

[0013] S7: according to the matched structural variations, respectively counting the number of structural variations matched in the first user variation identification result set and the first benchmark set, recorded as the true positive number of the first user variation identification result set and the true positive number of the first benchmark set;

[0014] The number of structural variations that are not matched in the first user variation identification result set and the first benchmark set is counted respectively, which is recorded as the number of false positives in the first user variation identification result set and the number of false negatives in the first benchmark set;

[0015] The recall rate, precision, and F1 score were calculated based on the number of true positives, false positives, and false negatives, and the breakpoint distance and variation size ratio were calculated for evaluation.

[0016] In S6, the sequence consistency of the variation of the third matching pair is calculated to obtain a sequence consistency score, which is specifically:

[0017] If the structural variation lengths of the variations of the third matching pair are all less than the fourth length, then respectively determining the most upstream and most downstream endpoints of the two variations of the third matching pair, extracting gene sequences from the reference genome according to the endpoint positions, and merging the variation sequences with the gene sequences respectively to obtain a first sequence to be compared and a second sequence to be compared;

[0018] If the lengths of the structural variation of the variation of the third matching pair are not all shorter than the fourth length, the most upstream and most downstream endpoints of the two variations of the third matching pair are respectively determined, and the gene sequence is extracted from the reference genome according to the endpoint positions, and the variation sequence and the gene sequence are respectively merged to obtain a first merged sequence and a second merged sequence; the first merged sequence and the second merged sequence are respectively k -mers algorithm is divided into several subsequences, and the subsequence with the minimum hash value is selected in each window as the target sequence. After sliding the window in order from small to large position to traverse the entire sequence, several target sequences of the first merged sequence and the second merged sequence are obtained respectively, which constitute the first target sequence and the second target sequence respectively;

[0019] After removing repeated target sequences in the first target sequence and the second target sequence respectively, filtering the hash values ​​of the target sequences, and retaining only the target sequences with the same hash values, taking the target sequence with the minimum position distance as the homologous sequence, and determining the to-be-aligned sequences of the first merged sequence and the second merged sequence respectively according to the homologous sequence and the first merged sequence and the second merged sequence, to obtain the first to-be-aligned sequence and the second to-be-aligned sequence;

[0020] The first sequence to be compared and the second sequence to be compared are aligned using the Needleman-Wunsch algorithm to obtain a first compared sequence and a second compared sequence; after obtaining the number of bases matched between the first compared sequence and the second compared sequence, the total number of gaps exceeding three consecutive gaps, and the sequence length of the first compared sequence or the second compared sequence,

[0021] According to the formula: , get the sequence identity score;

[0022] In the formula, is the sequence identity score, is the number of bases that match between the first alignment sequence and the second alignment sequence, is the total number of vacancies exceeding three consecutive vacancies, is a mitigating factor and =0.1, is the sequence length of the first aligned sequence or the second aligned sequence.

[0023] In S7, the breakpoint distance is calculated according to the formula: get;

[0024] In the formula, is the breakpoint distance, is the breakpoint position behind the variant position in the first matching pair, The breakpoint position before the variant position in the first matching pair;

[0025] The variation size ratio is based on the formula: get;

[0026] In the formula, is the variation size ratio, The end position of the mutation in the second user mutation identification result set in the first matching pair; is the starting position of the mutation in the second user mutation identification result set in the first matching pair; is the end position of the second benchmark set mutation in the first matching pair; is the starting position of the mutation belonging to the second benchmark set in the first matching pair.

[0027] In S5, if the matching condition is met, it is recorded as a third matching pair;

[0028] One specific operation is that if the structural variation types of the variations in the second matching pair are consistent, the matching is successful and recorded as the third matching pair;

[0029] A specific operation is that if the structural variation types of the variations in the second matching pair are inconsistent and are insertions or duplications, the matching is successful and recorded as the third matching pair.

[0030] In S3, the overlap between the variation in the second user variation identification result set and each variation in the second benchmark set is calculated, specifically:

[0031] If the starting position of a variation in the second user variation identification result set is smaller than the ending position of a variation in the second benchmark set, and the ending position of a variation in the second user variation identification result set is larger than the starting position of a variation in the second benchmark set, it is recorded that the two variations overlap.

[0032] In S2, the search space is determined according to the structural variation length of the variation site in the first benchmark set, specifically:

[0033] If the length of the structural variation is less than the first length threshold, the variation site is extended to both ends by the first length;

[0034] If the length of the structural variation is not less than the first length threshold, the variation site is extended to both ends by a second length.

[0035] In S4, the size similarity of the variation of the first matching pair is calculated to obtain a size similarity score, which is specifically:

[0036] According to the length of the structural variation, the minimum length of the structural variation in the variation of the first matching pair is compared with the maximum length of the structural variation to obtain the size similarity score.

[0037] In S1, after obtaining the first user variation identification result set and the first benchmark set, the following steps are further included:

[0038] According to the length of the structural variation, the first user variation identification result set and the first benchmark set are divided respectively to obtain a plurality of first user variation identification result sets and a plurality of first benchmark sets.

[0039] In S1, after obtaining the first user variation identification result set, the following step is further included:

[0040] Structural variations whose structural variation length is greater than the structural variation length threshold in the first user variation identification result set are removed.

[0041] The present invention also provides an evaluation system for genome structural variation detection based on a benchmark set, comprising:

[0042] Extraction of variation data module: based on the user variation identification result set and the benchmark set, respectively extract variation data, including: chromosome name, starting position, ending position, structural variation type, structural variation length, reference sequence, variation sequence, and construct the first user variation identification result set and the first benchmark set according to the extracted variation data;

[0043] Determine search space module: determine the search space based on the chromosome name and the length of the structural variation of the variation site in the first benchmark set;

[0044] An overlap calculation module: used for extending each variation in the first user variation identification result set and each variation in the search space of the first benchmark set to two ends by a third length, respectively, to obtain a second user variation identification result set and a second benchmark set;

[0045] Calculate the overlap between the variation in the second user variation identification result set and each variation in the second benchmark set. If there is overlap, the two overlapping variations are recorded as a first matching pair.

[0046] Calculating size similarity score module: used to calculate the size similarity of the variation of the first matching pair and obtain the size similarity score; if the size similarity score is greater than the size similarity score threshold, it is recorded as the second matching pair;

[0047] Structural variation type matching module: Based on the structural variation type, the variation of the second matching pair is matched with the structural variation type. If the matching condition is met, it is recorded as the third matching pair;

[0048] Calculating sequence consistency score module: used to calculate the sequence consistency of the variation of the third matching pair to obtain a sequence consistency score; if the sequence consistency score is greater than the sequence consistency score threshold, it is recorded as a matched structural variation;

[0049] Evaluation module: used for counting the number of structural variations matched in the first user variation identification result set and the first benchmark set respectively according to the matched structural variations, recorded as the true positive number of the first user variation identification result set and the true positive number of the first benchmark set;

[0050] The number of structural variations that are not matched in the first user variation identification result set and the first benchmark set is counted respectively, which is recorded as the number of false positives in the first user variation identification result set and the number of false negatives in the first benchmark set;

[0051] The recall rate, precision, and F1 score were calculated based on the number of true positives, false positives, and false negatives, and the breakpoint distance and variation size ratio were calculated for evaluation.

[0052] Beneficial effects: The evaluation method provided by the present invention sequentially performs variation matching according to the criteria of determining the search space, calculating overlap, calculating size similarity scores, matching structural variation types, and calculating sequence consistency scores. After obtaining the matched structural variation, an evaluation is performed based on the breakpoint distance and variation size ratio, making the evaluation more accurate.

[0053] The present invention fully considers allele sequence differences in allele matching, and uses sequence consistency scores to obtain the best matching results to help identify structural variations that are more likely to be true in the sequence context, thereby improving the accuracy of recognition; in addition, by evaluating the consistency of variations in the sequence context, false positive results caused by sequencing errors or data noise can be filtered out, reducing false positives; in addition, for regions where alleles exist, sequence consistency scores can be used to screen variations and retain variations with higher reliability, thereby accurately distinguishing allele matching results.

[0054] The present invention uses breakpoint distance for evaluation, which not only identifies the presence or absence of breakpoints, but also measures the closeness of the breakpoints to the actual situation. By quantifying the deviation of the breakpoints, small errors in the detection algorithm can be identified, achieving a more comprehensive accuracy assessment.

[0055] The present invention calculates the variation size ratio, which can more accurately evaluate the similarity of variations between the second user variation identification result set and the second benchmark set, and determine their consistency in position and size; and, using the variation size ratio as an evaluation indicator, by excluding variations with significant size differences, it is helpful to compare between different studies and data sets, obtain the accuracy of variation size identification by different detection methods, and thus better reveal the sensitivity of the detection method to variations of different sizes. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 Schematic diagram of a flow chart of an evaluation method for detecting genomic structural variations based on a benchmark set in an embodiment. DETAILED DESCRIPTION

[0057] The following examples are intended to illustrate the present invention rather than to further limit the present invention.

[0058] The present invention provides an evaluation method for detecting genomic structural variations based on a benchmark set, such as Figure 1 As shown, the following steps are included:

[0059] S1: Based on the user variation identification result set and the benchmark set, respectively extract variation data, including: chromosome name, starting position, ending position, structural variation type, structural variation length, reference sequence, variation sequence, and construct a first user variation identification result set and a first benchmark set according to the extracted variation data.

[0060] Specifically, the user variation identification result set refers to the output result of the sequencing data after being identified by the variation identification method. The detection method is a variation detection method (tool) that has been published or proposed. The present invention evaluates the identification results of these variation detection methods (tools) and evaluates the performance of existing detection methods; the benchmark set is a known gold standard.

[0061] The extracted variation data is represented as a seven-tuple Region = (chr, startPos, endPos, Type, Len, Ref, Alt), where chr is the name of the chromosome where the variation is located, startPos and endPos are the starting and ending positions of the variation on chromosome chr, respectively; Type is the structural variation type, which can be insertion, deletion, duplication, translocation or inversion; Len is the length of the structural variation; Ref is the reference sequence, which refers to the base sequence information corresponding to the variation position in the reference genome; Alt is the variation sequence, which indicates the sequence information different from the base sequence in Ref.

[0062] For example, you can extract variant data by following these steps:

[0063] (1) Given the user variation identification result set S1 and the benchmark set S2, extract the corresponding variation data;

[0064] (2) Traverse the two sets S1 and S2 and obtain all the variant data in the corresponding sets respectively;

[0065] (3) The chromosome name chr, starting position startPos, ending position endPos, structural variation type Type, structural variation length Len, reference sequence Ref and variant sequence Alt of the variants in S1 and S2 were counted respectively;

[0066] (4) For variants that cannot be extracted by structural variation type, the variation type is obtained according to the base number of Ref and Alt. If the base number of Ref is greater than the base number of Alt, it is marked as a deletion variation, otherwise it is marked as an insertion variation;

[0067] (5) The length of the structural variation Len is obtained by the structural variation type Type and the variation sequence Alt; the endPos of the insertion variation is marked as the site corresponding to startPos, and the other types of variation are endPos = startPos + length ofAlt -1; Note: Under normal circumstances, the length of the structural variation can be directly obtained through the information data in S1 or S2; however, if the length of the structural variation is not provided in S1 or S2, the variation length is parsed according to the structural variation type and the variation sequence; for example, for insertion variation, the length of the structural variation is determined by parsing the number of bases in the reference sequence Ref, while for deletion variation, the length of the structural variation is determined according to the number of bases in the variation sequence Alt.

[0068] The purpose of calculating endPos is to provide complete mutation information (the end position in the seven-tuple). In addition, endPos is needed to calculate whether there is overlap when extending the mutation at both ends and to determine the search space. endPos is also used to calculate the size ratio of the mutation area in subsequent analysis.

[0069] Considering that a large structural variation may have a significant negative impact on subsequent analysis, resulting in a certain degree of deviation in the calculation results, preferably, after obtaining the first user variation identification result set in S1, the method further includes:

[0070] Structural variations whose structural variation length is greater than the structural variation length threshold in the first user variation identification result set are removed.

[0071] For example, the average read length of third-generation data is usually 25kb, and the length of second-generation data is shorter, usually <1kb. Therefore, 50kb can be taken as the structural variation length threshold. Variations exceeding this length will be considered as variations that are too long and will be removed.

[0072] Then, the quantitative distribution of different structural variation sizes is counted, specifically, the number of variations in the variation interval after removing invalid variation with a variation length greater than 50kb in the first user variation identification result set (ref_reg_size_user_long_filtered), the number of variations in the variation interval without removing invalid variation with a variation length greater than 50kb (ref_reg_size_user), and the number of variations in the variation interval in the first benchmark set (ref_reg_size_benchmark). The number of variations with a variation length between 1bp and 2kb in the benchmark set is mainly counted. In this way, the quantitative distribution of different variation sizes is counted, and the variation types are distinguished at the same time. Among them, the structural variation length of the missing variation is a negative value.

[0073] The number of mutations in the above three mutation intervals is saved in the form of the following two-tuples, the format of which is shown in Table 1:

[0074] Table 1 Length and number of structural variants

[0075]

[0076] In addition, in order to evaluate the structural variation detection results in more detail, further, in S1, after obtaining the first user variation identification result set and the first benchmark set, the following is further included:

[0077] According to the length of the structural variation, the first user variation identification result set and the first benchmark set are divided respectively to obtain a plurality of first user variation identification result sets and a plurality of first benchmark sets.

[0078] For example, structural variants were classified by length into eight different size ranges: 1-100bp, 101-250bp, 251-500bp, 501-1000bp, 1-2.5kb, 2.5-5kb, 5-10kb and greater than 10kb, and each range was subsequently evaluated.

[0079] After step S1, the key to evaluating the structural variation calling results is to establish a robust structural variation matching standard. Different sequencing experiments or heterogeneous pipelines may have differences in the location and sequence of the identified variants due to differences in pipeline sensitivity, ambiguity in the alignment near the repetitive region, or inherent differences in the algorithms used. Any combination of these factors may affect the accuracy of the evaluation results. Therefore, the next key challenge is to accurately compare the complex variants between the first user variant calling result set and the first benchmark set.

[0080] S2: Based on the chromosome name, the search space is determined according to the length of the structural variation of the variation site in the first benchmark set.

[0081] The first matching criterion is to determine the search space. Preferably, in S2, the search space is determined according to the length of the structural variation of the variation site in the first benchmark set, specifically:

[0082] If the length of the structural variation is less than the first length threshold, such as 100 bp, the variation site is extended to both ends by the first length, such as 400 bp;

[0083] If the length of the structural variation is not less than the first length threshold, such as 100 bp, the variation site is extended to the second length at both ends, such as 1 kb.

[0084] S3: for each variation in the first user variation identification result set and each variation in the search space of the first benchmark set, each variation is extended to a third length, such as 200 bp, at both ends to obtain a second user variation identification result set and a second benchmark set;

[0085] The overlap between the variation in the second user variation identification result set and each variation in the second benchmark set is calculated. If there is overlap, the two overlapping variations are recorded as a first matching pair.

[0086] The second matching criterion is to calculate overlap. Preferably, in S3, the overlap between the variation in the second user variation identification result set and each variation in the second benchmark set is calculated, specifically:

[0087] If the starting position of a variation in the second user variation identification result set is smaller than the ending position of a variation in the second benchmark set, and the ending position of a variation in the second user variation identification result set is larger than the starting position of a variation in the second benchmark set, it is recorded that the two variations overlap.

[0088] S4: Calculate the size similarity of the variation of the first matching pair to obtain a size similarity score; if the size similarity score is greater than a size similarity score threshold, it is recorded as a second matching pair.

[0089] The third matching criterion is to calculate a size similarity score. Preferably, in S4, the size similarity of the variation of the first matching pair is calculated to obtain a size similarity score, which is specifically:

[0090] According to the length of the structural variation, the minimum length of the structural variation in the variation of the first matching pair is compared with the maximum length of the structural variation to obtain the size similarity score.

[0091] Specifically, according to the formula: , calculate the size similarity score;

[0092] In the formula, is the size similarity score; is the length of the structural variation in the first matching pair that belongs to the variation in the second user variation identification result set; is the length of the structural variation in the first matching pair that belongs to the variation in the second benchmark set; is the minimum length of the structural variation in the variation of the first matching pair; The maximum length of the structural variant in the variant of the first matching pair.

[0093] S5: Based on the structural variation type, the variation of the second matching pair is matched with the structural variation type. If the matching condition is met, it is recorded as the third matching pair.

[0094] The fourth matching criterion is that the structural variation type matches. Preferably, in S5, if the matching condition is met, it is recorded as a third matching pair;

[0095] One is strict matching. The specific operation is that if the structural variation types of the variations in the second matching pair are consistent, the matching is successful and recorded as the third matching pair.

[0096] For strict matching, the type of structural variation must be consistent, such as insertion type matching insertion type;

[0097] One is loose matching. The specific operation is that if the structural variation types of the second matching pair are inconsistent and are insertions or duplications, the match is successful and recorded as the third matching pair.

[0098] For loose matching, only insertions and duplications are allowed to be considered as loose type matches, while the rest of the variant types are still strictly matched. This is because: from a biological point of view, duplications and insertions are both duplications and movements of sequences in the genome, and some detection technologies may have difficulty distinguishing small insertions and duplications. If the inserted sequence is highly similar to other regions in the genome, it may be mistakenly classified as a duplication, resulting in unclear boundaries between insertions and duplications. If the length of an inserted sequence is similar to the length of a repeated sequence, they may be considered equivalent in the evaluation analysis.

[0099] S6: Calculate the sequence consistency of the variation in the third matching pair to obtain a sequence consistency score; if the sequence consistency score is greater than a sequence consistency score threshold, it is recorded as a matched structural variation.

[0100] The fifth matching criterion is to calculate a sequence consistency score. Preferably, in S6, the sequence consistency of the variants of the third matching pair is calculated to obtain a sequence consistency score, which is specifically:

[0101] If the lengths of the structural variations of the variations of the third matching pair are all less than the fourth length, such as 20 kb, then the most upstream and most downstream endpoints of the two variations of the third matching pair are respectively determined, and according to the endpoint positions, the gene sequence is extracted from the reference genome, and the variation sequence and the gene sequence are respectively merged to obtain a first sequence to be compared and a second sequence to be compared;

[0102] If the lengths of the structural variation of the variation in the third matching pair are not all less than the fourth length, such as 20 kb, the most upstream and most downstream endpoints of the two variations in the third matching pair are determined respectively, and the gene sequence is extracted from the reference genome according to the endpoint positions, and the variation sequence and the gene sequence are respectively merged to obtain a first merged sequence and a second merged sequence; the first merged sequence and the second merged sequence are respectively subjected to k -mers algorithm is divided into several subsequences, and the subsequence with the minimum hash value is selected in each window as the target sequence. After sliding the window in order from small to large position to traverse the entire sequence, several target sequences of the first merged sequence and the second merged sequence are obtained respectively, which constitute the first target sequence and the second target sequence respectively;

[0103] After removing repeated target sequences in the first target sequence and the second target sequence respectively, filtering the hash values ​​of the target sequences, and retaining only the target sequences with the same hash values, taking the target sequence with the minimum position distance as the homologous sequence, and determining the to-be-aligned sequences of the first merged sequence and the second merged sequence respectively according to the homologous sequence and the first merged sequence and the second merged sequence, to obtain the first to-be-aligned sequence and the second to-be-aligned sequence.

[0104] The first sequence to be compared and the second sequence to be compared are aligned using the Needleman-Wunsch algorithm to obtain a first compared sequence and a second compared sequence; after obtaining the number of bases matched between the first compared sequence and the second compared sequence, the total number of gaps exceeding three consecutive gaps, and the sequence length of the first compared sequence or the second compared sequence,

[0105] According to the formula: , get the sequence identity score;

[0106] In the formula, is the sequence identity score, is the number of bases that match between the first alignment sequence and the second alignment sequence, is the total number of vacancies exceeding three consecutive vacancies, is a mitigating factor and =0.1, is the sequence length of the first aligned sequence or the second aligned sequence.

[0107] Since structural variations are often nested in complex genomic sequences, the present invention fully considers allele sequence differences in allele matching, and uses sequence consistency scores to obtain the best matching results to help identify structural variations that are more likely to be true in the sequence context, thereby improving the accuracy of identification; in addition, by evaluating the consistency of variations in the sequence context, false positive results caused by sequencing errors or data noise can be filtered out, reducing false positives; in addition, for regions with alleles, sequence consistency scores can be used to screen variations and retain variations with higher reliability, thereby accurately distinguishing allele matching results.

[0108] S7: according to the matched structural variations, the number of matched structural variations in the first user variation identification result set and the first benchmark set is counted respectively, recorded as the true positive number of the first user variation identification result set (TP_user) and the true positive number of the first benchmark set (TP_bench);

[0109] The number of structural variations that are not matched in the first user variation identification result set and the first benchmark set is counted respectively, which is recorded as the false positive number (FP) of the first user variation identification result set and the false negative number (FN) of the first benchmark set;

[0110] Based on the number of true positives, false positives, and false negatives, the recall, accuracy, and F1 score are calculated, and a detailed file is generated to save the above information. At the same time, chart information is generated to display the evaluation results.

[0111] Among them, True Positives (TP) refer to structural variations correctly identified by existing detection methods, that is, these variations do exist in the genome and are correctly detected;

[0112] False Positives (FP): refers to the fact that existing detection methods mistakenly report non-existent structural variations, that is, these variations are mistakenly considered to be real, but in fact there are no such variations in the genome;

[0113] False Negatives (FN): refers to the failure of existing detection methods to detect actual structural variations, that is, these variations do exist in the genome, but the detection method does not identify them.

[0114] Regarding calculation, Recall is calculated as follows:

[0115] ;

[0116] Precision is calculated as follows:

[0117] ;

[0118] The calculation method of F1 score is as follows:

[0119] .

[0120] However, in the recognition results of existing recognition methods (such as Sniffles2, cuteSV, DeBreak, SVIM, etc.), there are usually some variant regions that have large deviations from the variant regions in the second benchmark set, and even some invalid recognition results with large lengths. In order to achieve a more fine-grained evaluation of the deviation of the detection results, in addition to the above-mentioned basic indicators, the present invention also uses two quantitative indicators to quantify the deviation between the overlapping variants and their corresponding targets in the second benchmark set: breakpoint distance and variation size ratio, and defines the calculation method of the breakpoint distance and variation size ratio.

[0121] Specifically, the breakpoint distance is based on the formula: get;

[0122] In the formula, is the breakpoint distance, is the breakpoint position behind the variant position in the first matching pair, is the breakpoint position before the variant position in the first matching pair.

[0123] Statistics - 1001bp The breakpoint distance between two variants 1000 bp, quantitative distribution of breakpoint distances;

[0124] The more concentrated the distribution of the quantity is in the -50bp-50bp range, the more accurate the identified breakpoints are.

[0125] For the current structural variation evaluation methods, similar indicators are not used to further refine the evaluation results. The present invention adopts breakpoint distance to provide a more detailed and comprehensive evaluation method. Its advantages are: the breakpoint distance not only identifies the presence or absence of the breakpoint, but also measures the closeness of the breakpoint to the actual situation. In some cases, even if the breakpoint is identified, their relative position may deviate from the actual situation. However, the breakpoint distance can help evaluate the accuracy of the position alignment. By quantifying the deviation of the breakpoint, small errors in the detection algorithm can be identified, and a more comprehensive accuracy assessment can be achieved. This deviation is only applicable to insertions, deletions, duplications, and inversions, while translocation variations are usually located on different chromosomes and therefore do not have this deviation.

[0126] The variation size ratio is based on the formula: get;

[0127] In the formula, is the variation size ratio, The end position of the mutation in the second user mutation identification result set in the first matching pair; is the starting position of the mutation in the second user mutation identification result set in the first matching pair; is the end position of the second benchmark set mutation in the first matching pair; is the starting position of the mutation belonging to the second benchmark set in the first matching pair.

[0128] The quantitative distribution of statistical variation size ratio in different intervals (0-0.5, 0.5-0.7, 0.7-1.2, 1.2-2.0, 2.0-5.0, 5.0-10.0, 10.0-50.0, 50.0-100.0, >100.0);

[0129] The more concentrated the distribution of this number is within 0.7-1.2, the more accurate the identification of the variant size is.

[0130] The present invention calculates the variation size ratio, which can more accurately evaluate the similarity of variations between the second user variation identification result set and the second benchmark set, and determine their consistency in position and size; and, using the variation size ratio as an evaluation indicator, by excluding variations with significant size differences, it is helpful to compare between different studies and data sets, obtain the accuracy of variation size identification by different detection methods, and thus better reveal the sensitivity of the detection method to variations of different sizes.

[0131] The above indicators are applicable to insertions, deletions, duplications and inversions, but not to translocations, because translocations are usually located in different chromosomes or different positions on the same chromosome. Therefore, the present invention also calculates the overall statistical error of the breakpoints identified by each detection method, namely the root mean square error (RMSE). The calculation method is as follows:

[0132] ;

[0133] Where N is the number of truly identified structural variants, C i is the length of the i-th truly identified structural variation, R i is the reference structure variation length corresponding to Ci. For translocation, C i and R i are the locations of the breakpoints of the second user variant identification result set and the second benchmark set, respectively. The smaller the RMSE value, the more accurate the SV identification result.

[0134] In addition, regarding the classification by structural variation length, it is divided into eight different size ranges: 1-100bp, 101-250bp, 251-500bp, 501-1000bp, 1-2.5kb, 2.5-5kb, 5-10kb and greater than 10kb. The same five matching criteria are used to evaluate their respective ranges. The average sequence consistency score of each interval is calculated so that users can view the accuracy of the reported sequence of the variation detection method; and indicators of different variation size ranges are calculated during the evaluation, including: true positive, false positive, false negative, recall rate, precision, F1 score, and each range is evaluated.

[0135] The evaluation method provided by the present invention sequentially performs variation matching according to the standards of determining the search space, calculating overlap, calculating size similarity scores, matching structural variation types, and calculating sequence consistency scores. After obtaining the matched structural variation, an evaluation is performed based on the breakpoint distance and variation size ratio, so that the evaluation is more accurate.

[0136] In addition, the present invention can evaluate each user set according to the order of input data, can support multiple user sets at the same time, and generate corresponding file information for users to view. That is, when evaluating multiple user sets, an evaluation result will be generated for each user set, and the evaluation result includes TP, FP, and FN files generated for each user set. An Upset graph is drawn for the TP files of these multiple user sets. For example, the recognition results of the seven detection tools ASVCLR, SVDSS, DeBreak, Sniffles2, pbsv, cuteSV, and SVIM are evaluated, and each tool will generate these files.

[0137] The present invention draws an Upset graph by reading TP files, which can clearly show the intersection and uniqueness between multiple data sets. And when reading and operating the FN files of multiple detection methods, by generating an FN file shared by multiple user sets, it helps to identify variants that all tools or methods fail to detect, and obtain low-quality variants in the benchmark set or variants that are difficult to identify in the variant region.

[0138] Finally, benchmark information is collected and visualized through a local HTML page graphical user interface (GUI) to inspire structural variation detection methods.

[0139] The present invention also provides an evaluation system for genome structural variation detection based on a benchmark set, comprising:

[0140] Extraction of variation data module: based on the user variation identification result set and the benchmark set, respectively extract variation data, including: chromosome name, starting position, ending position, structural variation type, structural variation length, reference sequence, variation sequence, and construct the first user variation identification result set and the first benchmark set according to the extracted variation data;

[0141] Determine search space module: determine the search space based on the chromosome name and the length of the structural variation of the variation site in the first benchmark set;

[0142] An overlap calculation module: used for extending each variation in the first user variation identification result set and each variation in the search space of the first benchmark set to two ends by a third length, respectively, to obtain a second user variation identification result set and a second benchmark set;

[0143] Calculate the overlap between the variation in the second user variation identification result set and each variation in the second benchmark set. If there is overlap, the two overlapping variations are recorded as a first matching pair.

[0144] Calculating size similarity score module: used to calculate the size similarity of the variation of the first matching pair and obtain the size similarity score; if the size similarity score is greater than the size similarity score threshold, it is recorded as the second matching pair;

[0145] Structural variation type matching module: Based on the structural variation type, the variation of the second matching pair is matched with the structural variation type. If the matching condition is met, it is recorded as the third matching pair;

[0146] Calculating sequence consistency score module: used to calculate the sequence consistency of the variation of the third matching pair to obtain a sequence consistency score; if the sequence consistency score is greater than the sequence consistency score threshold, it is recorded as a matched structural variation;

[0147] Evaluation module: used for counting the number of structural variations matched in the first user variation identification result set and the first benchmark set respectively according to the matched structural variations, recorded as the true positive number of the first user variation identification result set and the true positive number of the first benchmark set;

[0148] The number of structural variations that are not matched in the first user variation identification result set and the first benchmark set is counted respectively, which is recorded as the number of false positives in the first user variation identification result set and the number of false negatives in the first benchmark set;

[0149] The recall rate, precision, and F1 score were calculated based on the number of true positives, false positives, and false negatives, and the breakpoint distance and variation size ratio were calculated for evaluation.

Claims

1. A method for evaluating genome structural variation detection based on a benchmark set, characterized in that: The following steps are involved: S1: Based on the user variation identification result set and the benchmark set, respectively extract variation data, including: chromosome name, start position, end position, structural variation type, structural variation length, reference sequence, variation sequence, and construct a first user variation identification result set and a first benchmark set according to the extracted variation data; S2: Based on the chromosome name, the search space is determined according to the length of the structural variation of the variation site in the first benchmark set; S3: for each variation in the first user variation identification result set and each variation in the search space of the first benchmark set, respectively extending the two ends by a third length to obtain a second user variation identification result set and a second benchmark set; Calculate the overlap between the variation in the second user variation identification result set and each variation in the second benchmark set. If there is overlap, the two overlapping variations are recorded as a first matching pair. S4: Calculate the size similarity of the variation of the first matching pair to obtain a size similarity score; if the size similarity score is greater than a size similarity score threshold, it is recorded as a second matching pair; S5: Based on the structural variation type, the variation of the second matching pair is matched with the structural variation type. If the matching condition is met, it is recorded as the third matching pair; S6: Calculate the sequence consistency of the variation of the third matching pair to obtain a sequence consistency score; if the sequence consistency score is greater than a sequence consistency score threshold, it is recorded as a matched structural variation; S7: according to the matched structural variations, respectively counting the number of structural variations matched in the first user variation identification result set and the first benchmark set, recorded as the true positive number of the first user variation identification result set and the true positive number of the first benchmark set; The number of structural variations that are not matched in the first user variation identification result set and the first benchmark set is counted respectively, which is recorded as the number of false positives in the first user variation identification result set and the number of false negatives in the first benchmark set; The recall rate, precision, and F1 score were calculated based on the number of true positives, false positives, and false negatives, and the breakpoint distance and variation size ratio were calculated for evaluation.

2. The benchmark-based genome structural variation detection evaluation method according to claim 1, characterized in that: In S6, the sequence consistency of the variation of the third matching pair is calculated to obtain a sequence consistency score, which is specifically: If the structural variation lengths of the variations of the third matching pair are all less than the fourth length, then respectively determining the most upstream and most downstream endpoints of the two variations of the third matching pair, extracting gene sequences from the reference genome according to the endpoint positions, and merging the variation sequences with the gene sequences respectively to obtain a first sequence to be compared and a second sequence to be compared; If the lengths of the structural variation of the variation of the third matching pair are not all shorter than the fourth length, the most upstream and most downstream endpoints of the two variations of the third matching pair are respectively determined, and the gene sequence is extracted from the reference genome according to the endpoint positions, and the variation sequence and the gene sequence are respectively merged to obtain a first merged sequence and a second merged sequence; the first merged sequence and the second merged sequence are respectively k -mers algorithm is divided into several subsequences, and the subsequence with the minimum hash value is selected in each window as the target sequence. After sliding the window in order from small to large position to traverse the entire sequence, several target sequences of the first merged sequence and the second merged sequence are obtained respectively, which constitute the first target sequence and the second target sequence respectively; After removing repeated target sequences in the first target sequence and the second target sequence respectively, filtering the hash values ​​of the target sequences, and retaining only the target sequences with the same hash values, taking the target sequence with the minimum position distance as the homologous sequence, and determining the to-be-aligned sequences of the first merged sequence and the second merged sequence respectively according to the homologous sequence and the first merged sequence and the second merged sequence, to obtain the first to-be-aligned sequence and the second to-be-aligned sequence; The first sequence to be compared and the second sequence to be compared are aligned using the Needleman-Wunsch algorithm to obtain a first compared sequence and a second compared sequence; after obtaining the number of bases matched between the first compared sequence and the second compared sequence, the total number of gaps exceeding three consecutive gaps, and the sequence length of the first compared sequence or the second compared sequence, According to the formula: , get the sequence identity score; In the formula, is the sequence identity score, is the number of bases that match between the first alignment sequence and the second alignment sequence, is the total number of vacancies exceeding three consecutive vacancies, is a mitigating factor and =0.1, is the sequence length of the first aligned sequence or the second aligned sequence.

3. The benchmark-based genome structural variation detection evaluation method according to claim 1, characterized in that: In S7, the breakpoint distance is calculated according to the formula: get; In the formula, is the breakpoint distance, is the breakpoint position behind the variant position in the first matching pair, The breakpoint position before the variant position in the first matching pair; The variation size ratio is based on the formula: get; In the formula, is the variation size ratio, The end position of the mutation in the second user mutation identification result set in the first matching pair; is the starting position of the mutation in the second user mutation identification result set in the first matching pair; is the end position of the second benchmark set mutation in the first matching pair; is the starting position of the mutation belonging to the second benchmark set in the first matching pair.

4. The benchmark-based genome structural variation detection evaluation method according to claim 1, characterized in that: In S5, if the matching condition is met, it is recorded as a third matching pair; One specific operation is that if the structural variation types of the variations in the second matching pair are consistent, the matching is successful and recorded as the third matching pair; A specific operation is that if the structural variation types of the variations in the second matching pair are inconsistent and are insertions or duplications, the matching is successful and recorded as the third matching pair.

5. The benchmark-based genome structural variation detection evaluation method according to claim 1, characterized in that: In S3, the overlap between the variation in the second user variation identification result set and each variation in the second benchmark set is calculated, specifically: If the starting position of a variation in the second user variation identification result set is smaller than the ending position of a variation in the second benchmark set, and the ending position of a variation in the second user variation identification result set is larger than the starting position of a variation in the second benchmark set, it is recorded that the two variations overlap.

6. The benchmark-based genome structural variation detection evaluation method according to claim 1, characterized in that: In S2, the search space is determined according to the structural variation length of the variation site in the first benchmark set, specifically: If the length of the structural variation is less than the first length threshold, the variation site is extended to both ends by the first length; If the length of the structural variation is not less than the first length threshold, the variation site is extended to both ends by a second length.

7. The benchmark-based genome structural variation detection evaluation method according to claim 1, characterized in that: In S4, the size similarity of the variation of the first matching pair is calculated to obtain a size similarity score, which is specifically: According to the length of the structural variation, the minimum length of the structural variation in the variation of the first matching pair is compared with the maximum length of the structural variation to obtain the size similarity score.

8. The benchmark-based genome structural variation detection evaluation method according to claim 1, characterized in that: In S1, after obtaining the first user variation identification result set and the first benchmark set, the following steps are further included: According to the length of the structural variation, the first user variation identification result set and the first benchmark set are divided respectively to obtain a plurality of first user variation identification result sets and a plurality of first benchmark sets.

9. The benchmark-based genome structural variation detection evaluation method according to claim 1, characterized in that: In S1, after obtaining the first user variation identification result set, the following step is further included: Structural variations whose structural variation length is greater than the structural variation length threshold in the first user variation identification result set are removed.

10. An evaluation system for genome structural variation detection based on a benchmark set, characterized in that: include: Extraction of variation data module: based on the user variation identification result set and the benchmark set, respectively extract variation data, including: chromosome name, starting position, ending position, structural variation type, structural variation length, reference sequence, variation sequence, and construct the first user variation identification result set and the first benchmark set according to the extracted variation data; Determine search space module: determine the search space based on the chromosome name and the length of the structural variation of the variation site in the first benchmark set; An overlap calculation module: used for extending each variation in the first user variation identification result set and each variation in the search space of the first benchmark set to two ends by a third length, respectively, to obtain a second user variation identification result set and a second benchmark set; Calculate the overlap between the variation in the second user variation identification result set and each variation in the second benchmark set. If there is overlap, the two overlapping variations are recorded as a first matching pair. Calculating size similarity score module: used to calculate the size similarity of the variation of the first matching pair and obtain the size similarity score; if the size similarity score is greater than the size similarity score threshold, it is recorded as the second matching pair; Structural variation type matching module: Based on the structural variation type, the variation of the second matching pair is matched with the structural variation type. If the matching condition is met, it is recorded as the third matching pair; Calculating sequence consistency score module: used to calculate the sequence consistency of the variation of the third matching pair to obtain a sequence consistency score; if the sequence consistency score is greater than the sequence consistency score threshold, it is recorded as a matched structural variation; Evaluation module: used for counting the number of structural variations matched in the first user variation identification result set and the first benchmark set respectively according to the matched structural variations, recorded as the true positive number of the first user variation identification result set and the true positive number of the first benchmark set; The number of structural variations that are not matched in the first user variation identification result set and the first benchmark set is counted respectively, which is recorded as the number of false positives in the first user variation identification result set and the number of false negatives in the first benchmark set; The recall rate, precision, and F1 score were calculated based on the number of true positives, false positives, and false negatives, and the breakpoint distance and variation size ratio were calculated for evaluation.