A method and system for detecting copy number variation based on relative mass isolation forest
By optimizing high-throughput sequencing data using a relative-quality isolated forest approach, the effects of noise and signal imbalance in tumor samples were addressed, enabling high-precision detection of copy number variations. This was particularly effective in cases of low tumor purity and low coverage, improving both accuracy and sensitivity.
Patent Information
- Application Number
- CN202410294363.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-14
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2044-03-14
AI Technical Summary
Existing high-throughput sequencing technologies suffer from high false positive rates and poor overall performance in tumor samples. In particular, they are difficult to accurately detect small-scale, low-frequency copy number variations when tumor purity and coverage are low. Furthermore, traditional methods have failed to effectively handle the effects of sequencing noise and signal imbalance.
A copy number variation detection method based on relative quality isolated forest is adopted. By using ring binary segmentation change point detection, local mean method and relative quality anomaly assessment, combined with Gaussian distribution model, the RD signal is optimized and abnormal regions are identified, noise interference is reduced and detection accuracy is improved.
It significantly improves the accuracy and sensitivity of copy number variation detection, especially in cases of low tumor purity and low coverage, enabling more accurate identification of copy number amplification and deletion regions while reducing the impact of systematic and local noise.
Smart Images

Figure CN118098346B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of high-throughput sequencing technology, and in particular relates to a method and system for detecting copy number variations based on relatively high-quality isolated forests. Background Technology
[0002] Copy number variation (CNV) is a ubiquitous structural variation in the human genome, manifesting as the increase or decrease of genomic segments. Numerous studies have shown a close association between CNV and cancer. In cancer diagnosis, detecting CNV helps medical professionals differentiate between different types of cancer, such as HER2-amplified breast cancer and EGFR-amplified lung cancer, thus guiding doctors in developing targeted treatment plans for patients. In cancer treatment, targeted therapies can be selected based on the gene overexpression caused by different CNVs; for example, HER2 inhibitors can be used for HER2-amplified breast cancer, and EGFR inhibitors for EGFR-amplified lung cancer. In cancer prognostic assessment, CNV detection helps doctors determine a patient's recovery status. Furthermore, CNV can guide tumor immunotherapy and tumor molecular subtyping, predicting a patient's sensitivity to chemotherapy before its administration. Therefore, accurate detection of copy number variations in cancer genome sequences is crucial for research in cancer diagnosis, treatment, and prognostic assessment.
[0003] High-throughput sequencing technology has become an important sequencing method for copy number variant (CNV) detection due to its advantages of high throughput, high sensitivity, high resolution, speed, and low cost. However, due to inherent normal cell contamination in tumor samples, low tumor purity, and sequencing errors introduced during the sequencing process, existing high-throughput sequencing technologies for CNV identification still suffer from high false positive rates and poor overall performance. For example, CNVnator compares the sequencing data of each sample with a genomic reference sequence, calculates the read depth (RD) and mutation severity at each position, and uses windowing analysis to detect CNVs. This algorithm has a good recall rate, but its precision is relatively low. CNV-LOF assigns local anomalous factors to the RD signal of genomic fragments and uses a box plot procedure to declare CNVs; however, small fluctuations in the RD signal can easily affect the final CNV detection results. The FREEC algorithm uses a polynomial model to model the GC content of the sample and corrects the read depth (RD) value of the tumor sample based on this. Then, it uses a Hidden Markov Model (HMM) to model the signal for CNV detection. The iCopyDAV method uses a ring binary segmentation algorithm to divide the sequence into multiple regions with similar RD signal intensities, and determines whether a CNV occurs in each region by setting upper and lower limits. This method performs excellently on high-purity and high-coverage samples, but its detection performance decreases significantly when tumor purity or sequencing coverage decreases. The GROM-RD method analyzes the bias in coverage of various read pairs and adjusts its impact on CNV detection, improving the sensitivity of CNV detection in less complex regions, but still exhibits limited detection accuracy and sensitivity in low-tumor-purity and low-coverage data. Despite these methods achieving good results, due to the complexity of the CNV detection process and various factors such as limited coverage depth, low sample purity, GC bias introduced during sequencing, and sample contamination, it still has some limitations in detecting small-scale, low-frequency variants in tumor genome CNV detection.
[0004] Based on the above analysis, the problems and shortcomings of the existing technology are as follows:
[0005] (1) Due to issues such as tumor sample contamination, sequencing errors, and GC content deviations, there is a large-scale systematic noise in genomic sequencing data. Current copy number variation detection methods based on RD information assume that the genomic RD value is linearly related to the copy number of that region. Although some noise can be eliminated through GC correction, noise caused by other factors still has a significant impact on subsequent CNV detection.
[0006] (2) Different types of copy number variations are reflected in the uneven signal intensity of the RD information. For example, the number of amplifications in the copy number amplification region can reach tens or hundreds of times, while the missing region will only be missing once or twice. This uneven signal intensity will pose a great challenge to the detection of different types of CNVs.
[0007] (3) For samples with low purity and low coverage, the difference in RD value between them and normal samples is very small; in addition, due to the inherent cell contamination problem of tumor samples (i.e., the sample to be tested contains both tumor cells and normal cells), this difference is further reduced. Therefore, it is often difficult to achieve both precision and recall when using traditional statistical models based on RD information for CNV detection.
[0008] (4) The length of CNV is reflected in the signal strength of RD information. Existing copy number variation detection methods based on RD information have poor detection accuracy in short CNV regions and are prone to missed detection. Summary of the Invention
[0009] To address the problems of existing technologies, this invention provides a copy number variant detection method and system based on relative quality isolated forests. Regarding sequencing data noise, this invention proposes a segmented recombination method to solve systematic noise caused by sequencing errors and a local mean method to handle local noise. Furthermore, to address the imbalance between copy number variant amplification and deletion and the difficulty in detecting small-scale local variants, this invention proposes an isolated forest combined with a relative quality anomaly assessment method to improve the copy number variant detection performance.
[0010] This invention is implemented as follows: a copy number variation (CNV) detection method based on a relative-quality isolated forest. The method first analyzes the noise characteristics of sequencing data, and designs a segmented recombination method based on a ring binary segmentation transform point detection algorithm to compress and denoise the read pair depth (RD) signal of the sequencing data, obtaining an optimized RD signal. To further remove local noise caused by sequencing accuracy and errors, a local mean method is designed to locally denoise the optimized RD signal. Next, the genome sequence copy number variation detection is treated as an anomaly detection problem. The isolated forest algorithm is used, and a local ordination metric based on relative quality is designed to replace the global ordination metric based on path length to calculate the anomaly score, thus overcoming the problem that isolated forests cannot detect local anomalies. The obtained anomaly score distribution is treated as a Gaussian distribution, and a Gaussian distribution model is used to evaluate the significance level of each anomaly score. Based on the significance level, it is evaluated whether a CNV occurs in the region corresponding to each RD signal. Finally, regions with consecutive CNVs are merged, and the RD signals of CNV regions and normal regions are compared to infer whether the CNV region belongs to copy number amplification or deletion. Specifically, it includes:
[0011] S1, Sequencing data preprocessing and RD signal acquisition: After processing the sequencing data using BAW and Samtools tools, read pair information is obtained. The genome sequence is divided into non-overlapping genome fragments using a sliding window. The read pair information RD signal in each fragment is calculated, and GC bias correction is performed to obtain the preliminary RD signal distribution reflecting CNV.
[0012] S2, Construct a segmented reassembly method based on the ring binary segmentation change point detection algorithm: First, the RD signal is compressed and denoised. Then, the ring binary segmentation change point detection algorithm is constructed to declare segments, and the segmented data is normalized. The original data is reassembled to obtain the optimized RD signal, so as to reduce the influence between different RD intensity regions.
[0013] S3, Constructing a Local Means Method to Handle Local Noise: Due to the precision and errors of sequencing instruments, strong local noise still exists in the dataset, which can still affect the performance of CNV detection, especially the accuracy of CNV start positions. Based on the data characteristics, a "local means method" is used to further process local noise before using anomaly detection algorithms for mutation detection. Let X1, X2, ..., X... n It is the RD signal sequence after segmentation and reconstruction, σ 2 Let C = Round(K·σ) be the series variance. 2 ), Round means rounding up, K is the boost factor, for the RD signal X at position i i The RD signal after local mean method processing for:
[0014]
[0015]
[0016]
[0017] S4, Construct an Isolation Forest algorithm based on relative quality scores to obtain anomaly scores: Treat copy number mutation detection as an anomaly detection problem, use the Isolation Forest algorithm, and design a local ranking metric based on relative quality instead of a global ranking metric based on path length to calculate anomaly scores, thus overcoming the problem that Isolation Forest cannot detect local anomalies; Focus on the relative quality of instances in the entire dataset, designing the relative quality as the ratio of the quality of the direct parent node to the quality of the instance falling in a leaf node; For each isolated tree T i The local mass S corresponding to instance X i (X) is:
[0018]
[0019] Where T i (X) is the instance X in the isolated tree T. i The node to which it is assigned It is the direct parent node of this node, and m(·) represents the quality of the current node, which is the number of elements contained in the node; This is a normalization term used to generate the isolated tree T. i The size of the dataset; due to S i The value of (X) belongs to (0,1], and for the same parent node quality, when m(T) i (X) The smaller S is, i The larger (X) is, the more abnormal it is relative; finally, the average relative quality S(X) of the instance across all isolated trees is recorded as the anomaly score of the instance, and the calculation method is as follows:
[0020]
[0021] S5. Establish a Gaussian distribution, determine CNVs and specify CNV types through significance testing: Treat the S-distribution of outlier scores as a Gaussian distribution, use the Gaussian distribution model to evaluate the significance level of each outlier score, and finally evaluate whether a CNV occurs in the region corresponding to each RD signal based on the significance p-value; merge regions where CNVs occur consecutively, and infer the CNV type by comparing the RD signals of CNV regions and normal regions; if the RD value of a CNV region is greater than that of a normal region, it is a copy number amplification; if the RD value of a CNV region is less than that of a normal region, it is a copy number deletion.
[0022] Furthermore, the RD signal compression and noise reduction method in S2: This invention designs a sliding window-based method for compressing and denoising RD signals: Let X1, X2, ..., X N It is the RD signal value corresponding to the gene sequence, where N is the sequence length. Then, the data is integrated and compressed with position i as the center, a sliding window size u as the radius, and a sliding step size v. The RD value Y corresponding to the i-th position after compression and noise reduction is... i for:
[0023]
[0024] Segmentation method: In the compressed and denoised sequence Y1, Y2, ..., Y... mThe change points are obtained by applying the ring binary segmentation algorithm. The obtained change points are then scaled up proportionally by the sliding window size u and step size v set in the data preprocessing stage to obtain the change sites in the original data sequence. The two change sites are a segment. Due to the complex distribution of the original data and the violent local fluctuations, some short segments appear after segmentation. Considering that the data does not have significant statistical characteristics when the segments are short, this invention merges the short segments after segmentation. The merging process is as follows: (1) Set the minimum segment length threshold L; (2) Check the length of all segments. When there is a segment whose length is less than the threshold, merge the segment into the segments on both sides with the smallest difference from the mean of its own segment; (3) Repeat step (2) until all segment lengths are greater than the threshold.
[0025] Reassembly Method: This invention normalizes the distribution of segmented data. Let s be a segment, and mean(s) be the mean of all signal intensities within that segment. For each point in that segment, the signal intensity X... i The processed signal value X i new =X i -mean(s). The above process is performed within each segment. Then, the processed signals are assembled from front to back according to the order of the segments and the position of the signals within each segment, resulting in a relatively stable RD signal distribution.
[0026] Furthermore, the sliding window size used in sequencing data preprocessing and RD signal acquisition is 500bp;
[0027] The segmented reconstruction method includes compressing and denoising the RD signal, declaring segments using a ring binary segmentation change point detection algorithm, and normalizing the segmented data to reconstruct the original data and obtain an optimized RD signal. This process can handle systematic global noise in sequencing data and reduce the interference of systematic noise in the RD signal caused by low tumor purity on CNV detection performance.
[0028] Furthermore, in the method for compressing and denoising RD signals, a sliding window is used, with the genome sequence N as the reference, the current position as the center, the sliding window size u as the radius, and the sliding step size v to integrate and compress the data. Considering that data from different sources have different total amounts of data, u = N / m and v = N / n are designed. Among them, the CNV detection performance is optimal when m = 50 and n = 100.
[0029] When segmenting read pairs using the circular binary segmentation change point detection algorithm, shorter segments are compared with the pre-set minimum segment length and then merged. To ensure that the genomic fragments within the segments have significant statistical characteristics, the minimum segment length threshold parameter L = 30Mb / sliding window u is set in conjunction with the CNV definition length, where Mb is a base unit.
[0030] Furthermore, when reconstructing the segmented RD signal, the data distribution after segmentation is first normalized. Let s be a certain segment, and mean(s) be the mean of all signal intensities within that segment. For each point in that segment, the signal intensity X... i Its processed RD value is X i new =X i -mean(s); The above process is performed within each segment. Then, the processed signals are assembled from front to back according to the order of each segment and the position of the signals within each segment to obtain a relatively stable RD signal distribution.
[0031] Furthermore, when processing local noise using the local mean method, the variance is used to control the noise reduction level of the local mean method, where the boost factor K = 10.
[0032] The Isolation Forest algorithm is used for copy number mutation detection, in which a random sampling method is used to construct a sample subset when building a single isolation tree, and the number of subsets is 256.
[0033] Another objective of this invention is to provide a method and system for detecting copy number variations based on relatively high-quality isolated forests, comprising:
[0034] The data preprocessing module is used to preprocess sequencing data and obtain RD signals: BAW and Samtools tools are used to process sequencing data to obtain read pair information, and a sliding window is used to divide the genome sequence into non-overlapping genome fragments. The read pair information RD signal in each fragment is calculated, and GC bias correction is performed to obtain the preliminary RD signal distribution reflecting CNV.
[0035] The segmented reconstruction method construction module is used to construct a segmented reconstruction method based on the ring binary segmentation change point detection algorithm: First, the RD signal is compressed and denoised. Then, the segmentation is declared using the ring binary segmentation change point detection algorithm, and the segmented data is normalized. The original data is reconstructed to obtain the optimized RD signal, so as to reduce the influence between different RD intensity regions.
[0036] The local noise processing module is used to construct a local mean method to process local noise: based on the characteristics of the data, the "local mean method" is used to further process local noise before using the anomaly detection algorithm for mutation detection;
[0037] An anomaly score acquisition module is used to construct an isolated forest algorithm based on relative quality scores to obtain anomaly scores. Copy number mutation detection is regarded as an anomaly detection problem. The isolated forest algorithm is used and a local ranking metric based on relative quality is designed to replace the global ranking metric based on path length to calculate the anomaly score, thereby overcoming the problem that isolated forest cannot detect local anomalies. This invention focuses on the relative quality of instances in the entire dataset, and the relative quality is designed as the ratio of the quality of the direct parent node to the quality of the instance falling in the leaf node.
[0038] The Gaussian distribution establishment module is used to establish a Gaussian distribution, determine CNVs and specify CNV types through significance testing: the distribution of outlier scores is treated as a Gaussian distribution, the significance level of each outlier score is evaluated using a Gaussian distribution model, and finally, the region corresponding to each RD signal is evaluated based on the significance p-value to determine whether a CNV has occurred; regions with consecutive CNVs are merged, and the CNV type is inferred by comparing the RD signals of CNV regions and normal regions; if the RD value of a CNV region is greater than that of a normal region, it is a copy number amplification; if the RD value of a CNV region is less than that of a normal region, it is a copy number deletion.
[0039] Another object of the present invention is to provide a computer device including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the copy number variation detection method based on relative quality isolated forests.
[0040] Another object of the present invention is to provide a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the steps of the copy number variation detection method based on relative quality isolated forests.
[0041] Another objective of this invention is to provide an information data processing terminal for implementing the aforementioned copy number variation detection system based on relative quality isolated forests.
[0042] Based on the above technical solutions and the technical problems solved, the advantages and positive effects of the technical solution to be protected by this invention are as follows:
[0043] First, this invention studies the characteristics of sequencing data and designs a segmented recombination method based on the detection of change points in circular binary segmentation to handle the large-scale systematic noise in tumor sequencing data, laying a good foundation for subsequent CNV detection. In the segmented recombination method based on change point detection, determining the window size u and sliding step size v is relatively difficult. Considering that data from different sources have different total data volumes, the values of u and v cannot be fixed but should be based on the sequence length N. Therefore, we design u = N / m and v = N / n. To demonstrate the effectiveness of this process and confirm the impact of different m and n on the detection results, this invention conducted a series of simulation experiments and found that the CNV detection performance is optimal when m = 50 and n = 100. Furthermore, to ensure significant statistical characteristics within the segments, combined with the CNV definition length, this invention recommends a minimum segment length threshold parameter L = 30 Mb / sliding window u, where Mb is a base unit.
[0044] This invention proposes a local means method to process local noise in sequencing data, further enhancing the CNV signal in the sequencing data and helping to improve the accuracy of CNV detection. Since the variance of the data represents the degree of dispersion of the data, the higher the dispersion, the greater the noise in the data. This invention uses variance to control the degree of noise reduction of the local means method, and the CNV detection performance is better when the enhancement coefficient K = 10.
[0045] This invention treats the copy number variation detection problem as an anomaly detection problem, and designs an isolated forest algorithm based on relative quality to evaluate the abnormality of read pair depth (RD) signals in genomic regions, thereby realizing CNV detection and improving the detection capability of local small-scale variations.
[0046] Compared with existing CNV detection algorithms based on global anomaly assessment, this invention considers the sample's neighborhood rather than the global data distribution to measure the degree of sample anomaly, eliminating the influence of absolute position on RD signal anomaly assessment and solving the problem of low CNV detection accuracy of global anomaly detection algorithms when dealing with copy number amplification and deletion imbalance in gene sequences.
[0047] This invention treats the anomaly scores calculated by the Isolation Forest algorithm as a Gaussian distribution, designs a hypothesis testing method, calculates the significance level p-value of the anomaly scores for different regions of the genome, and determines whether a CNV has occurred based on the significance level threshold. The CNV detection effect is optimal when the significance level threshold is 0.005.
[0048] Secondly, this invention addresses the problem of poor F1-score performance in copy number variant detection using existing RD-based CNV detection methods in samples with low coverage and low tumor purity. This invention analyzes the characteristics of sequencing data and designs a segmented recombination method based on the detection of ring-based binary segmentation change points. This method processes the large-scale systematic global noise present in tumor sequencing data through compression, noise reduction, segmentation, and recombination of the RD signal, laying a solid foundation for subsequent CNV detection. Furthermore, as a non-invasive data processing method, the segmented recombination method can be flexibly combined with other anomaly detection algorithms to comprehensively improve the final copy number variant detection performance. This invention also designs a locally uniform... This invention addresses local noise by using a value-based approach, resulting in more stable and cohesive signals in non-CNV regions and relatively significant signals in CNV regions. This resolves the impact of local noise caused by sequencing instrument accuracy and errors on CNV detection performance. Furthermore, this invention treats CNVs as an anomaly detection algorithm and designs an isolated forest algorithm that combines relative quality anomaly scores to detect CNVs. This solves the problem of poor accuracy in local anomaly detection in existing isolated forest algorithms. Simultaneously, assessing anomaly scores based on relative quality also addresses the insufficient detection performance when CNVs are imbalanced in the genome. Finally, this invention establishes a Gaussian distribution for anomaly scores and uses significance tests to declare CNV regions, making the detection algorithm more interpretable and generalizable.
[0049] Third, the technical solution of this invention solves a technical problem that people have long desired to solve but have never been able to achieve:
[0050] In tumor copy number variant (CNV) detection, the sequencing data used for variant detection is subject to significant noise due to inherent normal cell contamination in tumor samples, tumor heterogeneity, and errors introduced during gene sequencing. This poses a major challenge to CNV detection. Furthermore, the amplification and deletion imbalance inherent in CNVs themselves further complicates the process. Traditional CNV detection algorithms directly model the raw sequencing data without adequately considering the noise present in tumor samples. In low-tumor-purity and low-coverage data, the signal intensity of small-scale local variants is further weakened by noise, making it difficult for traditional algorithms to achieve both high accuracy and recall in CNV detection. These are technical challenges that researchers have long sought to solve but have yet to successfully address.
[0051] This invention proposes a segmented recombination method based on ring-based binary segmentation change point detection to process sub-regions with different RD signal intensities in sequencing data to the same level, avoiding the impact of inconsistent signal intensities between different regions on subsequent variant assessment, and reducing the interference of large-scale systematic noise in sequencing data on CNV detection performance. Considering the large volume of sequencing data and the difficulty in accurately predicting the boundaries of copy number variant regions due to drastic fluctuations in RD signal intensity, this invention designs a local mean method to smooth and denoise the RD signal, effectively weakening the local noise present in the RD signal, making the RD signal more stable and cohesive, and the boundary between normal regions and copy number variant regions is clearer, thereby achieving more accurate detection of copy number variant regions. This invention treats the copy number variant problem as an anomaly detection problem, and uses the isolated forest algorithm to build multiple isolated trees through random sampling to eliminate the influence of the absolute difference of different RD signals on anomaly assessment, and establishes a significance test algorithm to determine whether a CNV has occurred. Unlike existing anomaly-based methods that directly divide anomaly scores into thresholds to determine CNV regions, this invention uses a hypothesis testing method, which has greater generalization ability and versatility in CNV detection. Meanwhile, to address the issue of poor performance of existing methods in detecting small-scale CNV missing variants, this invention uses a relative quality score instead of the existing global quality score when calculating the anomaly score. By considering the data distribution in the neighborhood of the sample rather than in the entire dataset, the degree of anomaly of the sample is measured, eliminating the influence of absolute position on the evaluation of RD signal anomalies, and being more sensitive to local anomalies, thereby improving the detection capability of local small-scale variants and achieving more comprehensive CNV detection.
[0052] Fourth, the significant technological advancements demonstrated by the copy number variation detection method based on relatively high-quality isolated forests in this invention are mainly reflected in the following aspects:
[0053] 1. Preprocessing and RD signal optimization:
[0054] The method incorporates a preprocessing step for sequencing data, including data processing using BAW and Samtools tools, and employs a sliding window strategy to divide the genome into fragments to obtain RD signals. This not only improves data accuracy but also provides a reliable signal basis for subsequent CNV detection.
[0055] A segmented reconstruction method is proposed, which compresses, denoises, and normalizes the RD signal, effectively reducing interference between different RD intensity regions, lowering noise in the RD signal, and improving the accuracy of CNV detection.
[0056] 2. Local noise reduction:
[0057] To address the local noise problem caused by the accuracy and errors of sequencing instruments, a novel local mean method is proposed. This method can further process local noise, improve the detection accuracy of CNV initiation positions, and significantly enhance detection performance.
[0058] 3. Innovations in anomaly detection algorithms:
[0059] This paper transforms copy number mutation (CNV) detection into an anomaly detection problem and introduces an isolation forest algorithm based on relative quality. This algorithm calculates anomaly scores using a local ranking metric, overcoming the limitation of traditional isolation forests in detecting local anomalies and improving the sensitivity and specificity of CNV detection.
[0060] The designed relative quality metric focuses on the relative quality of instances across the entire dataset, effectively distinguishing between normal and abnormal regions and further enhancing detection performance.
[0061] 4. CNV type inference and significance test:
[0062] A Gaussian distribution model was established, and CNVs were identified and their types were specified through significance tests. This method not only improves the accuracy of CNV detection but also distinguishes between two different types of CNVs: copy number amplification and copy number deletion.
[0063] The CNV type is inferred by comparing the RD signals of the CNV region and the normal region, making the results more accurate and reliable.
[0064] In summary, this method has made innovative technical improvements in several key aspects, including preprocessing, noise reduction, anomaly detection, and CNV type inference, which significantly improves the accuracy and reliability of copy number variation detection and provides strong technical support for genomics research and clinical applications. Attached Figure Description
[0065] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0066] Figure 1 This is a flowchart of the SRRMCNV algorithm for detecting copy number mutations provided in an embodiment of the present invention;
[0067] Figure 2 This is a structural diagram of the copy number variation detection system based on relatively high-quality isolated forests provided in an embodiment of the present invention;
[0068] Figure 3This is a comparison diagram of data before and after compression provided in an embodiment of the present invention;
[0069] Figure 4 This is a schematic diagram showing the comparison of data before and after segmented recombination provided in an embodiment of the present invention;
[0070] Figure 5 This is a schematic diagram comparing the data before and after local mean denoising provided in an embodiment of the present invention;
[0071] Figure 6 These are the results of different methods provided in the embodiments of the present invention on a simulated dataset with a sequencing coverage of 3X;
[0072] Figure 7 These are the results of different methods provided in the embodiments of the present invention on a simulated dataset with a sequencing coverage of 6X.
[0073] Figure 8 These are the results of different methods provided in the embodiments of the present invention on real datasets. Detailed Implementation
[0074] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0075] To address the problems existing in the prior art, this invention provides a method and system for detecting copy number variation based on relatively high-quality isolated forests. The invention will be described in detail below with reference to the accompanying drawings.
[0076] Example 1: CNV detection in cancer genomic analysis
[0077] In cancer genomics research, copy number variations (CNVs) are one of the most common types of genetic variants and are closely related to tumor development and progression. This embodiment provides a CNV detection method for cancer genomic analysis, aiming to accurately identify CNV regions in the genome of cancer cells using high-throughput sequencing data.
[0078] 1. High-throughput sequencing technology was used to obtain sequencing data of cancer samples, and preprocessing was performed using tools such as BAW and Samtools to obtain the RD signal of the genome and perform GC bias correction.
[0079] 2. The RD signal is segmented and recombined using a change point detection algorithm based on ring binary segmentation, and the local mean method is used to further reduce local noise and improve the detection accuracy.
[0080] 3. Calculate the anomaly score for each genome fragment using an algorithm based on relative quality isolated forests to identify potential CNV regions.
[0081] 4. Evaluate the significance of each anomaly score using a Gaussian distribution model, identify CNV regions, and determine their copy number variation type (amplification or deletion).
[0082] This embodiment can accurately and rapidly identify CNV regions in complex cancer genome backgrounds, providing important molecular marker information for cancer diagnosis and treatment.
[0083] Example 2: CNV analysis of plant genetic resources
[0084] In plant genetic resource research, CNV analysis helps to understand the genetic basis of plant adaptation to environmental changes. This embodiment provides a CNV analysis method applied to plant genetic resources to explore the genetic diversity among different plant varieties.
[0085] 1. Collect DNA samples from different plant varieties, obtain sequencing data through high-throughput sequencing technology, and preprocess the data using tools such as BAW and Samtools to obtain the RD signals of each genome fragment.
[0086] 2. The RD signal is processed using a change point detection algorithm based on ring binary segmentation to obtain preliminary candidate regions for CNV detection, and the local mean method is used to reduce the local noise of the data.
[0087] 3. The anomaly score of each segment is calculated using an algorithm based on relative quality isolated forest to accurately locate CNV regions.
[0088] 4. Finally, the significance of the anomaly scores is analyzed using the Gaussian distribution model to identify CNV regions and determine their copy number variation types.
[0089] This embodiment enables researchers to effectively identify and analyze CNVs in large-scale plant genome data, providing a powerful tool for plant genetic improvement and biodiversity conservation.
[0090] like Figure 1 As shown, the copy number variation detection method based on relatively high-quality isolated forests provided in this embodiment of the invention includes the following steps:
[0091] Data preprocessing and RD signal acquisition: Tumor samples were sequenced and aligned with a reference genome using the BWA tool to obtain alignment data. Samtools was then used to extract read pair information from the alignment data. During sequencing, factors such as sample contamination and sequencing errors caused fluctuations in the read pair depth values of individual sites, significantly impacting subsequent detection. This invention performs missing value processing, sliding window merging, and GC bias correction on the extracted read pair information to obtain the read pair depth RD signal in units of the sliding window size, preliminarily reflecting the signal distribution of CNVs.
[0092] A segmented reconstruction method based on the change point detection algorithm of ring binary segmentation is proposed: In order to reduce the interference of systematic noise in the RD signal caused by low tumor purity on CNV detection performance, this invention proposes a segmented reconstruction method based on the change point detection of ring binary segmentation: (1) First, the RD signal is compressed and denoised to solve the systematic noise problem in the sequencing data at the macro level, such as complex data distribution, drastic local changes, and insignificant large-scale changes. (2) The change point detection algorithm of ring binary segmentation is used to declare segments, and the segmentation results are optimized to ensure that the data within the segments have statistical significance. (3) The segmented data is normalized and the original data is reconstructed to obtain the optimized RD signal, so as to reduce the influence between regions with different RD intensities.
[0093] Among them, the RD signal compression and noise reduction method: This invention designs a sliding window-based method for compressing and denoising RD signals: Let X1, X2, ..., X N It is the RD signal value corresponding to the gene sequence, where N is the sequence length. Then, the data is integrated and compressed with position i as the center, a sliding window size u as the radius, and a sliding step size v. The RD value Y corresponding to the i-th position after compression and noise reduction is... i for:
[0094]
[0095] The segmentation method involves using the compressed and denoised RD signal sequence Y1, Y2, ..., Y... mThe change points are obtained by applying the ring binary segmentation algorithm. The obtained change points are then scaled up proportionally by the sliding window size u and step size v set in the data preprocessing stage to obtain the change sites in the original data sequence. The two change sites are a segment. Due to the complex distribution of the original data and the violent local fluctuations, some short segments appear after segmentation. Considering that the data does not have significant statistical characteristics when the segments are short, this invention merges the short segments after segmentation. The merging process is as follows: (1) Set the minimum segment length threshold L; (2) Check the length of all segments. When there is a segment whose length is less than the threshold, merge the segment into the segments on both sides with the smallest difference from the mean of its own segment; (3) Repeat step (2) until all segment lengths are greater than the threshold.
[0096] The reconstruction method involves normalizing the segmented data distribution. Let s be a segment, and mean(s) be the mean of all signal intensities within that segment. For each point within that segment, the signal intensity X... i The processed signal value X i new =X i -mean(s). The above process is performed within each segment. Then, the processed signals are assembled from front to back according to the order of the segments and the position of the signals within each segment, resulting in a relatively stable RD signal distribution.
[0097] Local mean method to eliminate local noise: Although the data after segmented recombination largely eliminates the systematic global noise in the read depth RD signal, strong local noise still exists in the dataset due to the accuracy and error of the sequencing instrument, which still affects the performance of CNV detection, especially the accuracy of the CNV mutation initiation position. This invention designs a "local mean method" to further process local noise before using anomaly detection algorithms for mutation detection, specifically targeting the data characteristics. Let X1, X2, ..., X... n It is the RD signal sequence after segmentation and reconstruction, σ 2 Let C = Round(K·σ) be the series variance. 2 ), Round means rounding up, K is the boost factor, for the RD signal X at position i i The RD signal after local mean method processing for:
[0098]
[0099]
[0100]
[0101] This invention constructs an isolation forest algorithm based on relative quality scores to obtain anomaly scores S: The invention treats copy number variation detection as an anomaly detection problem, using the isolation forest algorithm to divide the genome into CNV regions and normal regions. Unlike anomaly detection methods based on normal sample features, isolation forests sample all samples with replacement, randomly select partitioning attributes to generate multiple isolation trees, and identify anomalies based on the fact that the average path length of anomaly instances is shorter than the average path length of normal instances. However, since path length measures the global anomaly length, isolation forests cannot effectively detect local anomalies, often resulting in poor performance in CNV detection tasks, especially when sample contamination, tumor purity, sequencing errors, etc., cause global CNV anomalies to be affected by various noises and become local anomalies. Therefore, this invention designs a local ranking metric based on relative quality to replace the global ranking metric based on path length, thereby overcoming the problem that isolation forests cannot detect local anomalies. This invention focuses on the relative quality of instances in the entire dataset; therefore, the relative quality is designed as the ratio of the quality of the direct parent node to the quality of the instance falling in a leaf node. For each isolation tree T... i The local mass S corresponding to instance X i (X) is:
[0102]
[0103] Where T i (X) is the instance X in the isolated tree T. i The node to which it is assigned It is the direct parent node of this node, and m(·) represents the quality of the current node, which is the number of elements contained in the node. This is a normalization term used to generate the isolated tree T. i The size of the dataset. Due to S i (X) values belong to (0,1], for the same parent node quality, when m(T) i (X) The smaller S is, i The larger (X) is, the more anomalous the instance is. Finally, the average relative quality S(X) of the instance across all isolated trees is denoted as the instance's anomalous score, calculated as follows:
[0104]
[0105] A Gaussian distribution is established, and CNVs are determined and their types are specified based on significance levels: This invention treats the distribution of outlier scores as a Gaussian distribution and uses a Gaussian distribution model to evaluate the significance level of each outlier score, thereby assessing whether a CNV occurs in the region corresponding to each RD signal. Since higher outlier scores indicate a greater likelihood of anomalies, this invention uses right-tailed probabilities to calculate the significance p-value, determining whether a CNV has occurred based on the significance level. Finally, this invention merges regions where CNVs occur consecutively and infers the CNV type by comparing the RD signals of the CNV region and the normal region. If the RD signal of the CNV region is greater than that of the normal region, it indicates copy number amplification; if the RD signal of the CNV region is less than that of the normal region, it indicates copy number loss.
[0106] Performance evaluation of the algorithm of this invention: evaluate whether the algorithm can detect CNVs with a high F1-score; determine whether the algorithm can obtain a high recall rate while keeping the precision controllable; analyze the computational complexity of the algorithm.
[0107] This invention divides the genome sequence into 500bp fragments based on next-generation sequencing data. The RD signal is calculated for each fragment and processed using GC correction to obtain a corrected RD signal. Then, a change point detection algorithm based on ring binary segmentation is proposed to segment and recombine the corrected genome RD signal, reducing systematic global noise caused by sequencing errors and inherent normal cell contamination in tumor samples. Based on the denoised RD signal, this invention designs a local mean method to weaken local noise in the RD signal, making the RD signal more stable and cohesive, solving the problem of inaccurate CNV boundaries caused by the high dimensionality of genome sequencing data and drastic fluctuations in the RD signal. Furthermore, this invention treats the genome CNV detection task as an anomaly detection task, employing the isolated forest algorithm and using relative quality anomaly scoring instead of the traditional global anomaly assessment algorithm to obtain anomaly scores for each genome fragment. Hypothesis testing is then used to analyze the significance level to determine whether a CNV has occurred. Finally, this invention merges consecutively abnormal genomic fragments to obtain the final CNV region, and counts the RD signals of the CNV region and the non-CNV region. If the RD value of the CNV region is greater than the RD signal of the non-CNV region, it is considered that CNV amplification has occurred. If the RD value of the CNV region is less than the RD signal of the non-CNV region, it is considered that CNV deletion has occurred.
[0108] like Figure 2 As shown, the copy number variation detection system based on relatively high-quality isolated forests provided in this embodiment of the invention is characterized by comprising:
[0109] The data preprocessing module is used to preprocess sequencing data and obtain RD signals: after processing the sequencing data with BAW and Samtools tools, read pair information is obtained, and the genome sequence is divided into non-overlapping genome fragments using a sliding window. The read pair information RD signal in each fragment is calculated, and GC bias correction is performed to obtain the preliminary RD signal distribution reflecting CNV.
[0110] The segmented reconstruction method construction module is used to construct a segmented reconstruction method based on the ring binary segmentation change point detection algorithm: First, the RD signal is compressed and denoised. Then, the segmentation is declared using the ring binary segmentation change point detection algorithm, and the segmented data is normalized. The original data is reconstructed to obtain the optimized RD signal, so as to reduce the influence between different RD intensity regions.
[0111] The local noise processing module is used to construct a local mean method to process local noise: based on the characteristics of the data, the "local mean method" is used to further process local noise before using the anomaly detection algorithm for mutation detection;
[0112] The anomaly score acquisition module is used to construct an isolation forest algorithm based on relative quality scores to obtain anomaly scores. It treats copy number mutation detection as an anomaly detection problem, uses the isolation forest algorithm, and designs a local ranking metric based on relative quality to replace the global ranking metric based on path length to calculate the anomaly score, thereby overcoming the problem that isolation forest cannot detect local anomalies. It focuses on the relative quality of instances in the entire dataset, and designs the relative quality as the ratio of the quality of the direct parent node to the quality of the instance falling in the leaf node.
[0113] The Gaussian distribution establishment module is used to establish a Gaussian distribution, determine CNVs and specify CNV types through significance testing: the distribution of outlier scores is treated as a Gaussian distribution, the significance level of each outlier score is evaluated using a Gaussian distribution model, and finally, the region corresponding to each RD signal is evaluated based on the significance p-value to determine whether a CNV has occurred; regions with consecutive CNVs are merged, and the CNV type is inferred by comparing the RD signals of CNV regions and normal regions; if the RD value of a CNV region is greater than that of a normal region, it is a copy number amplification; if the RD value of a CNV region is less than that of a normal region, it is a copy number deletion.
[0114] An application embodiment of the present invention provides a computer device, which includes a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of a copy number variation detection method based on a relative quality isolated forest.
[0115] An application embodiment of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the steps of a copy number variation detection method based on a relative quality isolated forest.
[0116] An application embodiment of the present invention provides an information data processing terminal, which is used to implement a copy number variation detection system based on a relative quality isolated forest.
[0117] II. Application Examples. To demonstrate the inventiveness and technical value of the technical solution of this invention, this section provides application examples of the technical solution of the claims on specific products or related technologies.
[0118] To evaluate the performance of this invention, it was applied to sequencing data with coverage of 3X and 6X, and the tumor purity was set to 0.2, 0.3, 0.4 and 0.5 for each sequencing depth, for a total of 8 datasets, each with 50 samples. The precision, recall and F1-score of each dataset were calculated.
[0119] from Figure 6 and Figure 7 As can be seen, in the SRRMCNV results proposed in this invention, under the same coverage conditions, the recall, precision, and F1-score all increase with the increase of tumor purity. For example, on the 3X coverage dataset, as the tumor purity increases from 0.2 to 0.5, the recall of the proposed SRRMCNV increases from 0.7 to 0.83, the precision increases from 0.63 to 0.73, and the F1-score increases from 0.66 to 0.78. The recall of this invention is improved by 13% because the previously proposed segmented recombination method based on change point detection and the local mean method greatly reduce the global and local noise of the sequencing data, thereby obtaining more accurate CNV detection. At the same time, both precision and F1-score increase with the increase of coverage depth of datasets with different tumor purity. When the tumor purity is fixed at 0.4, the precision of the 3X and 6X datasets are 0.7 and 0.74, respectively, and the F1-scores are 0.76 and 0.78, respectively. This phenomenon demonstrates that as sequencing coverage depth increases, sequencing data is less affected by noise, leading to improved CNV detection performance. For the three metrics within the same dataset scenario, while precision and F1-score are high, recall is slightly lower, consistent with the definition of F1-score, which aims to balance precision and recall. These results are consistent with the CNV phenomenon in real genomes, indicating that the experimental results are accurate.
[0120] III. Evidence of the Relevant Effects of the Embodiments. The embodiments of the present invention have achieved some positive effects during research and development or use, and indeed possess significant advantages compared to existing technologies. The following description, in conjunction with data, charts, and other materials from the experimental process, illustrates these advantages.
[0121] To demonstrate the advantages of this invention, it is compared with existing popular methods CNV-LOF, CNVnator, FREEC, iCopyDAV, and GROM_RD on the aforementioned dataset. (See [link to documentation]). Figure 6 and Figure 7 The SRRMCNV proposed in this invention exhibits the highest recall and F1-score across all dataset scenarios, demonstrating its significant advantage in recall and overall performance compared to other algorithms. Under conditions of low coverage and tumor purity, SRRMCNV shows a clear advantage over comparable methods used for CNV detection. For example, with a coverage of 3X and a tumor purity of 0.2, SRRMCNV achieves a recall of 0.7 and an F1-score of 0.66. This represents a 3% improvement over the highest recall (0.67) and highest F1-score among the five comparable methods, strongly demonstrating the high recall and high overall detection performance of the proposed method under low coverage and low tumor purity conditions. Under conditions of high coverage and high tumor purity, SRRMCNV's recall and F1-score are significantly higher than the five compared methods, but its precision is slightly lower than CNVnator, FREEC, and GROM_RD. For example, when the coverage is 6X and the tumor purity is 0.5, SRRMCNV achieves a recall of 0.84, which is significantly improved compared to CNVnator, FREEC, iCopyDAV, and GROM_RD. In summary, the SRRMCNV proposed in this invention exhibits the highest and most stable recall and F1-score, with minimal impact from tumor purity. CNV-LOF ranks second in recall, followed by iCopyDAV, FREEC, and CNVnator, while GROM_RD has the lowest recall at only 0.44. Furthermore, the SRRMCNV proposed in this invention achieves the highest F1-score across the eight datasets, indicating that the proposed method demonstrates a better balance between recall and precision compared to the other five compared methods, resulting in superior overall performance.
[0122] In summary, the SRRMCNV algorithm proposed in this invention demonstrates the best performance in 5 out of 8 datasets: it achieves the best results at both 3X and 6X coverage when tumor purity is 0.2 and 0.3, and also achieves the best performance at 3X coverage when tumor purity is 0.4. This indicates that the proposed algorithm has better detection performance under low purity and low coverage conditions. Compared to most other algorithms, the detection performance of SRRMCNV does not decrease with increasing coverage, and it maintains a relatively stable performance increase with increasing tumor purity, demonstrating the robustness of our algorithm.
[0123] To further evaluate the detection capability of the SRRMCNV algorithm, this invention also conducted multiple comparative experiments using real data. This invention selected four sets of real data samples from the 1000 Genomes database, numbered NA12878, NA12891, NA19238, and NA19240, and compared the results with those of CNVnator, CNV-LOF, FREEC, iCopyDAV, and GROM_RD, using verified and biologically significant copy number variation information from the Database of Genomic Variants (DGV) database as a benchmark. Figure 8 As shown. Figure 8The results show that SRRMCNV achieved the highest F1-Score on NA12891 and NA19238, the second highest on NA12878 (only 0.013 different from the highest CNVnator), and the third highest on NA19240 (only 0.018 different from the highest F1-Score, FREEC). SRRMCNV and CNVnator performed well overall and were relatively stable, with average F1-Scores of 0.72 and 0.74, respectively. GROM_RD and iCopyDAV performed relatively poorly. GROM_RD achieved the lowest F1-Score on NA12878, NA12891, and NA19238, while iCopyDAV achieved the lowest F1-Score on NA19240, with average F1-Scores of 0.61 and 0.67, respectively. The SRRMCNV method exhibits a significant advantage in recall, achieving the best recall on NA12878 and NA19238, and the second-highest recall on NA12891 and NA10240. Simultaneously, in terms of precision, SRRMCNV's precision on all samples is higher than the average of other compared algorithms. The proposed SRRMCNV method improves recall without sacrificing precision, thus achieving excellent performance on the final F1-Score. CNVnator and FREEC have a significant advantage in precision, but their recall is poor. Conversely, CNV-LOF and iCopuDAV perform well in recall, but their precision decreases significantly. In summary, real-data experiments demonstrate that the proposed SRRMCNV method still achieves good overall performance in CNV detection on real-world data.
[0124] It should be noted that embodiments of the present invention can be implemented in hardware, software, or a combination of both. The hardware portion can be implemented using dedicated logic; the software portion can be stored in memory and executed by a suitable instruction execution system, such as a microprocessor or dedicated-design hardware. Those skilled in the art will understand that the above-described devices and methods can be implemented using computer-executable instructions and / or included in processor control code, for example, such code provided on a carrier medium such as a disk, CD, or DVD-ROM, a programmable memory such as read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. The devices and modules of the present invention can be implemented by hardware circuitry such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, or programmable hardware devices such as field-programmable gate arrays, programmable logic devices, etc., or by software executed by various types of processors, or by a combination of the above-described hardware circuitry and software, such as firmware.
[0125] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications, equivalent substitutions, and improvements made by those skilled in the art within the scope of the technology disclosed in the present invention, and within the spirit and principles of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A method for detecting copy number variation based on relatively high-quality isolated forests, characterized in that, include: a. Preprocess the sequencing data using BAW and Samtools tools, divide the genome sequence by sliding window to obtain read pair information (RD) signals within each fragment, and perform GC bias correction to obtain preliminary RD signal distribution reflecting CNVs; b. After compressing and denoising the RD signal using a ring-based binary segmentation change point detection algorithm, segment the signal and normalize the segmented data to reconstruct the original data, thereby obtaining an optimized RD signal and reducing the influence between regions with different RD intensities. Among them, the RD signal compression and noise reduction method: Let X1, X2, ..., X N This is the RD signal value corresponding to the gene sequence, where N is the sequence length, and the data is compressed and denoised with position i as the center, a sliding window size u as the radius, and a sliding step size v. The result is the RD value corresponding to the i-th position after compression and noise reduction. for: ; The segmentation method involves using the compressed and denoised RD signal sequence Y1, Y2, ..., Y... m The ring binary segmentation algorithm is applied to detect change points. The change points are then enlarged proportionally by the sliding window size u and step size v set in the data preprocessing stage to obtain the change sites in the original data sequence. The segment between two change sites is a segment. After segmentation, the shorter segments are merged. The merging process is as follows: (1) Set the minimum segment length threshold L; (2) Check the length of all segments. When a segment is shorter than the threshold, merge the segment into the segments on both sides of it that have the smallest difference between the length of the segment and the average length of the segment itself; (3) Repeat step (2) until all segments are longer than the threshold. The reconstruction method involves normalizing the segmented data distribution. Let s be a segment, and mean(s) be the mean of all signal intensities within that segment. For each point within that segment, the signal intensity X... i The processed signal value X i new =X i -mean(s); The above process is performed within each segment. Then, the processed signals are assembled from front to back according to the order of each segment and the position of the signals within each segment to obtain a relatively stable RD signal distribution. c. The "local mean method" is used to further process local noise in the segmented and recombined RD signal sequence to improve the performance of CNV detection; The local mean method is as follows: Let X1, X2, ..., X... n It is the RD signal sequence after segmentation and reconstruction. Let be the series variance, and let . Round represents rounding up, and K is the boost factor for the RD signal at position i. The RD signal after local mean method processing for: ; ; ; d. Construct an isolation forest algorithm based on relative quality scores, calculate the anomaly score for each instance, treat copy number mutation detection as an anomaly detection problem, and overcome the problem that isolation forests cannot detect local anomalies; For each isolated tree T i The local mass S corresponding to instance X i (X) is: ; in Is instance X in the isolated tree? The node to which it is assigned It is the direct parent node of this node, and m(·) represents the quality of the current node, which is the number of elements contained in the node; This is a normalization term used to generate isolated trees. The size of the dataset; Finally, the average relative quality S(X) of an instance across all isolated trees is denoted as the anomaly score of that instance, calculated as follows: ; e. Determine CNVs and specify CNV types through significance testing, treat the abnormal score distribution as a Gaussian distribution, evaluate the occurrence of CNVs in the region corresponding to each RD signal, and infer the CNV type by comparing the RD signals of the CNV region and the normal region.
2. The copy number variation detection method according to claim 1, characterized in that, The anomaly score calculation method in step d involves calculating the local quality by designing the relative quality as the ratio of the quality of the direct parent node to the quality of the instance falling in the leaf node, and using the average relative quality of the instance across all isolated trees as the anomaly score of the instance, so as to achieve efficient identification and accurate localization of local anomalies in copy number variation detection; the CNV type determination in step e is based on the significance p-value, merging regions where CNVs occur consecutively, and distinguishing between copy number amplification and deletion by the RD signal intensity, providing an accurate and efficient detection method for copy number variation.
3. The copy number variation detection method based on relatively high-quality isolated forests as described in claim 1, characterized in that, The sliding window size used in sequencing data preprocessing and RD signal acquisition was 500bp; The segmented reconstruction method includes compressing and denoising the RD signal, declaring segments using a ring binary segmentation change point detection algorithm, and normalizing the segmented data to reconstruct the original data and obtain an optimized RD signal. This process can handle systematic global noise in sequencing data and reduce the interference of systematic noise in the RD signal caused by low tumor purity on CNV detection performance.
4. The copy number variation detection method based on relatively high-quality isolated forests as described in claim 1, characterized in that, When performing compression and noise reduction on RD signals, a sliding window is used, with the genome sequence N as the reference, the current position as the center, the sliding window size u as the radius, and the sliding step size v to integrate and compress the data. Considering that data from different sources have different total amounts of data, u = N / m and v = N / n are designed, where m = 50 and n = 100, the CNV detection performance is optimal. When segmenting read pairs using the circular binary segmentation change point detection algorithm, the shorter segments are compared with the pre-set minimum segment length and then merged. To ensure that the genomic fragments within the segments have significant statistical characteristics, the minimum segment length threshold parameter L = 30Mb / sliding window u is set in conjunction with the CNV definition length, where Mb is a base unit.
5. The copy number variation detection method based on relatively high-quality isolated forests as described in claim 1, characterized in that, When reconstructing the segmented RD signal, the data distribution after segmentation is first normalized. Let s be a segment, and mean(s) be the mean of all signal intensities within that segment. For each point in that segment, the signal intensity X is... i Its processed RD value is X i new =X i -mean(s); The above process is performed within each segment. Then, the processed signals are assembled from front to back according to the order of each segment and the position of the signals within each segment to obtain a relatively stable RD signal distribution.
6. The copy number variation detection method based on relatively high-quality isolated forests as described in claim 1, characterized in that, When constructing a method for processing local noise based on the local mean method, variance is used to control the noise reduction degree of the local mean method, where the boost factor K = 10; The Isolation Forest algorithm is used for copy number mutation detection, in which a random sampling method is used to construct a sample subset when building a single isolation tree, and the number of subsets is 256.
7. A copy number variation detection system based on a relative quality isolated forest, implementing the method as described in any one of claims 1 to 6, characterized in that, include: The data preprocessing module is used to preprocess sequencing data and obtain RD signals: after processing the sequencing data with BAW and Samtools tools, read pair information is obtained, and the genome sequence is divided into non-overlapping genome fragments using a sliding window. The read pair information RD signal in each fragment is calculated, and GC bias correction is performed to obtain the preliminary RD signal distribution reflecting CNV. The segmented reconstruction method construction module is used to construct a segmented reconstruction method based on the ring binary segmentation change point detection algorithm: First, the RD signal is compressed and denoised. Then, the segmentation is declared using the ring binary segmentation change point detection algorithm, and the segmented data is normalized. The original data is reconstructed to obtain the optimized RD signal, so as to reduce the influence between different RD intensity regions. The local noise processing module is used to construct a local mean method to process local noise: based on the characteristics of the data, the "local mean method" is used to further process local noise before using the anomaly detection algorithm for mutation detection; The anomaly score acquisition module is used to construct an isolation forest algorithm based on relative quality scores to obtain anomaly scores. It treats copy number mutation detection as an anomaly detection problem, uses the isolation forest algorithm, and designs a local ranking metric based on relative quality to replace the global ranking metric based on path length to calculate the anomaly score, thereby overcoming the problem that isolation forest cannot detect local anomalies. Focus on the relative quality of instances in the entire dataset, and design the relative quality as the ratio of the quality of the direct parent node to the quality of the instance falling in the leaf node; The Gaussian distribution establishment module is used to establish a Gaussian distribution, determine CNVs through significance tests, and specify CNV types: the distribution of outlier scores is treated as a Gaussian distribution, the significance level of each outlier score is evaluated using a Gaussian distribution model, and finally, based on the significance p-value, it is evaluated whether a CNV has occurred in the region corresponding to each RD signal. Regions where CNVs occur consecutively are merged, and the CNV type is inferred by comparing the RD signals of the CNV region and the normal region. If the RD value of the CNV region is greater than that of the normal region, it indicates copy number amplification; if the RD value of the CNV region is less than that of the normal region, it indicates copy number loss.
8. A computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the steps of the copy number variation detection method based on a relative quality isolated forest as described in any one of claims 1 to 6.
9. An information data processing terminal, the information data processing terminal being used to implement the copy number variation detection system based on relative quality isolated forest as described in claim 7.
