Method for identifying chromatin loops based on single-cell hi-c with replacement sampling
By constructing pseudo-cells through sampling with replacement, performing statistical significance tests and multi-level screening, the problems of sparsity and computational resource consumption in single-cell Hi-C chromatin ring recognition were solved, achieving efficient chromatin ring recognition and stable biological signals.
Patent Information
- Application Number
- CN202611663496.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-27
- Publication Date
- 2026-11-27
AI Technical Summary
The identification of Hi-C chromatin rings in single cells suffers from sparsity. Existing methods rely on contact matrix interpolation or model prediction, which leads to high computational resource consumption and inaccurate signals. Furthermore, aggregation strategies compress single-cell heterogeneity.
Pseudo-cells were constructed using sampling with replacement. Chromatin loops were identified through statistical significance testing and multi-level screening to avoid contact matrix interpolation and model prediction. Multiple aggregated pseudo-cells were constructed using sampling variation among single cells of the same cell type, and statistical significance testing and structural screening were performed.
It significantly reduces the consumption of computing and storage resources, improves the stability and structural rationality of chromatin ring recognition, reduces noise and duplicate reports of adjacent pixels, and maintains biological traceability.
Smart Images

Figure CN123182783A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of bioinformatics data processing technology, specifically involving a method for identifying Hi-C chromatin loops in single cells based on sampling with replacement. Background Technology
[0002] Chromatin forms a hierarchically organized three-dimensional structure within the cell nucleus. Chromatin loops enable spatial proximity between geographically distant genomic regions on the linear genome, making them crucial three-dimensional genomic features for studying promoter regulatory elements, chromatin structure, and cellular regulation. High-throughput Chromosome Conformation Capture (Hi-C) technology characterizes whole-genome three-dimensional interactions by measuring pairwise contacts between genomic fragments. Single-cell Hi-C further deciphers information at the single-cell level, enabling the study of three-dimensional genomic heterogeneity between cells. Early single-cell Hi-C studies have demonstrated significant heterogeneity in chromosome conformation among different cells. Simultaneously, the number of effective contacts obtainable in a single cell is far lower than in bulk Hi-C. At higher resolutions such as 10 kb, the vast majority of bin pairs show no observed contacts, resulting in an extremely sparse single-cell contact matrix. This data characteristic makes it difficult to directly distinguish genuine locally enriched interactions from chance contacts, representing the primary challenge in identifying chromatin loops at the single-cell level.
[0003] To alleviate the sparsity of single-cell Hi-C cells, existing methods widely employ contact matrix interpolation or enhancement. While these methods improve the analyzability of the sparse matrix, they also introduce additional computational and signal inference processes. Furthermore, the interpolated contact probabilities or predicted interactions are jointly determined by the original observations and random walks, smoothing, or model inferences, and their values are no longer equivalent to the original contact counts directly observed in experiments. Therefore, subsequent structural analysis is affected by the interpolation model and parameter settings used.
[0004] The main problems related to single-cell Hi-C chromatin ring recognition in existing technologies can be summarized as follows: First, the single-cell Hi-C contact matrix is extremely sparse, limiting the effective contacts available for stable estimation of local enrichment peaks within a single cell; Second, large-batch Hi-C chromatin ring detection algorithms rely on high coverage and a stable estimable two-dimensional local background, limiting their detection capability when directly applied to single-cell data with low cell counts and low coverage; Third, aggregation strategies such as Pseudobulk Hi-C (population-level data formed by aggregating all single-cell data of the same cell type, denoted as pseudo-batch Hi-C) and metacell (population-level data formed by aggregating single-cell data according to specific rules, denoted as metacell) can improve signal coverage or stability, but they compress single-cell heterogeneity to varying degrees, and the construction of metacells is also affected by embedding, nearest neighbor selection, aggregation unit overlap, and population size distribution; Fourth, restarting random walks (Random Walk with Restart (RWR), convolutional smoothing, or model-predictive interpolation can enhance sparse signals, but high-resolution computation incurs significant storage and computational overhead, and the interpolated signal is no longer equivalent to the original contact counts directly observed in experiments. For single-cell chromatin ring methods that do not rely on comprehensive contact interpolation, such as single-cell chromatin rings, obtaining extremely sparse data and reliable initial cell neighborhoods remain important factors affecting detection performance. These issues constitute the technical challenges that need further resolution in single-cell Hi-C chromatin ring recognition. Summary of the Invention
[0005] To address the problems existing in the prior art, this invention proposes a single-cell Hi-C chromatin loop identification method based on sampling with replacement. By performing linear calculations on the original contact data of the same cell type through sampling with replacement, chromatin loop identification is completed without contact matrix interpolation and model prediction. This avoids the nonlinear calculation process of large-scale dense matrix calculation and storage and additional model training, thereby significantly reducing the consumption of computing and storage resources while alleviating the sparsity of single-cell Hi-C data.
[0006] In this embodiment of the invention, a method for identifying Hi-C chromatin loops in single cells based on sampling with replacement is provided, comprising the following steps:
[0007] S1. Preprocess the single-cell Hi-C contact data to construct a pseudo-batch Hi-C contact map; including:
[0008] S11. For each cell type, read the corresponding contact position based on the single cell identifier; determine the contact pair corresponding to two spatially contacting genomic positions based on the contact position, map the coordinates of the contact pair to the genomic bins at the target resolution, and obtain a pair of spatially contacting genomic bins; count all the original Hi-C contact counts belonging to the same genomic bin pair and sum them up to obtain the original contact count of the genomic bin pair.
[0009] S12. Accumulate the original contact counts of all single cells of the same cell type according to the same genome binning pairs to construct a pseudo-batch Hi-C contact map;
[0010] S2. Based on sampling with replacement, construct pseudo-cells and aggregate all single-cell Hi-C data from each round of sampling to obtain the pseudo-cell Hi-C contact map; each round of sampling starts from... Each single cell has replacement extraction Next; the first After round sampling, the original contact counts of the selected single cells are aggregated to form the first round. A pseudo-cell, ;repeat It's my turn One pseudo-cell;
[0011] S3. Using different pseudo-cells as the repeated statistical units, for each genome bin pair in the pseudo-batch Hi-C contact map, calculate its original contact count in each pseudo-cell and the corresponding circular background mean, forming multiple sets of one-to-one paired observations; test whether the original contact count is consistently higher than the circular background mean, and after multiple tests and corrections, select candidate genome bin pairs.
[0012] In this context, the genome binning pairs are used as the contact centers of the corresponding matrix units in the Hi-C contact matrix, and a circular background is established based on the contact centers. The circular background is a background region centered on the contact centers and excluding several inner central windows.
[0013] S4. Based on the original contact count of candidate genome bin pairs, set an adaptive contact threshold for distance between genome bins; filter all candidate genome bin pairs based on the adaptive contact threshold, and use the filtered candidate genome bin pairs as the center of the candidate genome bin pairs;
[0014] S5. The candidate genome bins obtained in step S4 are subjected to local background screening, neighborhood support screening and clustering in the pseudo-batch Hi-C contact map to obtain high-confidence chromatin loops.
[0015] Compared with the prior art, the technical effects achieved by the present invention include:
[0016] 1. The present invention employs sampling with replacement polymerization, which is not a one-time pseudo-batch Hi-C summation, nor is it based on nearest-neighbor relationship to fix the construction of metacells. Instead, it involves sampling within the same set of original cells of the same cell type. For fixed sample size Sub-independent sampling with replacement. Each sampling preserves the multiplicity of duplicate cell counts, thus simultaneously achieving the dual objectives of increasing coverage through aggregation and forming statistical observations through repeated sampling. This is the core data construction mechanism that distinguishes this invention from traditional pseudo-batch Hi-C and similar meta-cells.
[0017] This invention employs sampling with replacement aggregation on the original contact count, eliminating the need to convert the sparse single-cell contact matrix into a dense interpolation matrix for pseudo-cells, and also avoiding reliance on deep learning model training. Compared to restarted random walk (RWR), convolutional smoothing, or model predictive augmentation, it reduces the additional computational and storage overhead associated with large-scale dense matrix computation, model training, or prediction.
[0018] 2. In this invention, pseudo-cells generated by sampling with replacement are defined as statistical repeat units. The statistical test is constructed directly at the level of the original contact count, using a one-sided Wilcoxon signed-rank test, and controlling the false discovery rate (FDR) within the same genomic distance layer. Thus, it does not rely on the continuous probability matrix after imputation, nor does it treat multiple pixels in the same local window as independent samples.
[0019] This invention allows all central contacts entering statistical testing to be directly traced back to the experimentally observed contacts and their contribution to the sampling with replacement count. This reduces the risk of potentially non-realistic interaction signals generated by imputation or oversmoothing altering the local contact structure, highlighting statistical authenticity and biological traceability.
[0020] 3. The candidate interaction threshold (i.e., the original contact threshold) of this invention is not a genome-wide uniform constant, but is determined individually based on the non-zero original contact distribution of each genomic distance in each pseudocell Hi-C, and requires that the center-to-center interaction reaches the candidate interaction threshold in a number of pseudocells exceeding the control of the hyperparameter (i.e., the distance threshold multiple). The method of determining the candidate interaction threshold of this invention directly incorporates the characteristic of Hi-C contact decaying with genomic distance into the candidate screening, while using cross-pseudocell repeats to support the exclusion of occasional center-to-center contacts.
[0021] 4. This invention employs the center-background pairing Wilcoxon test, distance-based stratified false detection rate (FDR), distance-adaptive original contact threshold, cross-pseudo-cell center support, five types of pseudo-batch Hi-C geometric background, minimum local continuity support of all pseudo-cells, and continuity constraints from two-dimensional spatial clustering / summit selection. Ultimately, the chromatin ring must simultaneously satisfy statistical significance, contact intensity, cross-pseudo-cell repeatability, local structural enrichment, and spatial redundancy removal consistency conditions. Compared to existing methods that rely solely on a single aggregation matrix peak or a single enhancement signal, this invention's multi-layer screening mechanism avoids reporting chromatin rings based solely on a single center pixel or a single significance index, thus improving the stability and structural rationality of chromatin ring detection and reducing isolated noise and duplicate reporting of adjacent pixels. Attached Figure Description
[0022] Figure 1 This is an overall flowchart of the single-cell Hi-C chromatin loop identification method based on sampling with replacement in this embodiment of the invention;
[0023] Figure 2 A schematic diagram of the contact center and the circular background;
[0024] Figure 3 This is a diagram illustrating the splitting of a circular background. Detailed Implementation
[0025] The present invention will be further described in detail below with reference to the embodiments and accompanying drawings, but the embodiments of the present invention are not limited thereto.
[0026] Example
[0027] This embodiment provides a single-cell Hi-C chromatin loop identification method based on bootstrap sampling. The design principle of this method is as follows: instead of directly generating unobserved contacts through an interpolation model, it utilizes sampling variations between existing single cells within the same cell type. Without contact matrix interpolation, it constructs multiple aggregated pseudocells through bootstrap resampling, and sequentially performs statistical significance testing, candidate interaction screening, structural background screening, and spatial clustering. The pseudocells use single-cell Hi-C contact pairs that have already undergone routine alignment and effective contact organization as input, and the single-cell Hi-C data is organized according to cell type.
[0028] This embodiment uses 192 single-cell Hi-C data from the GM12878 cell line (human lymphoblastic cell line) that have already undergone sequencing alignment, repetitive sequence processing, and effective contact pair preparation as the original input for the same cell population. The single-cell Hi-C contact pair file is used as input; alignment is not re-performed from the original sequencing read sequence quality file (FASTQ).
[0029] like Figure 1 As shown, the chromatin ring identification method of this embodiment specifically includes the following steps.
[0030] S1. Preprocess the single-cell Hi-C contact data to construct a pseudo-batch Hi-C contact map.
[0031] This step further includes:
[0032] S11. For each cell type, read the corresponding contact position based on the single cell identifier; determine the contact pair corresponding to two spatially contacting genomic positions based on the contact position, map the coordinates of the contact pair to the genomic bins at the target resolution, and obtain a pair of spatially contacting genomic bins; count all the original Hi-C contact counts belonging to the same genomic bin pair and sum them up to obtain the original contact count of the genomic bin pair.
[0033] Specifically, at the target resolution, the reference genome is divided into multiple contiguous and non-overlapping genomic regions, each called a genomic bin. For a contact pair, its two contained genomic locations are mapped to their corresponding genomic bins. and genome binning , by genome bin and genome binning The pairings formed are called genome binning pairs, denoted as Among them, genome binning and genome binning The two binning anchors that constitute this genome binning pair are respectively the genome binning pair. This corresponds to a matrix unit in the Hi-C contact matrix. The original Hi-C contact counts for the same genome bin pair are accumulated to obtain the original contact count for the genome bin pair.
[0034] In this embodiment, the corresponding contact pairs are obtained from a pair format file, which records the precise base positions of the spatial contacts. The two genomic locations are mapped to bins at the target resolution; contact records with the same two bin anchor points are counted and summarized for each genomic bin pair. ,in These represent the genome bins where the two bin anchor points are located, and the number of initial contacts is denoted as . .
[0035] In this embodiment, each valid contact record in the pairs format file is defined as a contact pair. Each contact pair contains two genomic locations aligned to a reference genome, representing a captured spatial contact. According to the target resolution, the two genomic locations are mapped to their corresponding genomic bins, thus obtaining a genomic bin pair. If the two genomic locations are on the same chromosome, the contact pair is called a cis-contact pair; if the two genomic locations are on different chromosomes, the contact pair is called a trans-contact pair. This embodiment filters out contact pairs where any genomic location falls into a low-quality genomic region or a blacklisted region, and retains only cis-contact pairs for chromatin loop identification.
[0036] The target resolution is an adjustable parameter, and 10 kb is used in this embodiment. The linear genome distance for chromatin loop detection is limited to 100 kb to 1 Mb, with 100 kb to 300 kb as the short distance group and 300 kb to 1 Mb as the long distance group.
[0037] S12. Accumulate the original contact counts of all single cells of the same cell type according to the same genomic binning pairs to construct a pseudo-batch Hi-C contact map.
[0038] Suppose that the same cell type has a total of [number] cells after quality control. These are individual cells. Although these cells belong to the same cell type, the chromatin spatial conformation of different cells is not exactly the same, so the number of contacts observed between different cells in the same genomic region may also differ. This difference between different cells within the same cell type is referred to as single-cell heterogeneity in this embodiment.
[0039] All of the same cell type The original contact counts of each single cell are accumulated by genomic binning to form a pseudo-batch Hi-C contact map, which is then saved in Hi-C format read by chromosome and target resolution for subsequent local structural background estimation.
[0040] When reading the pseudo-batch Hi-C contact map later, the original contact count reading method without normalization is adopted, that is, the original contact count data is not normalized, so that the structural background is kept at the original contact count scale.
[0041] S2. Based on sampling with replacement, construct pseudo-cells and aggregate all single-cell Hi-C data from each round of sampling to obtain pseudo-cell Hi-C contact maps.
[0042] In the process of constructing spurious cells using sampling with replacement, different spurious cells are treated as repeated statistical observations. Specifically, for the same cell type, after quality control... Single cell The rounds of sampling with replacement are independent of each other. Each round of sampling starts from... Each single cell has replacement extraction Next; the first After round sampling, the original contact counts of the selected single cells are aggregated to form the first round. A pseudo-cell, ;repeat It's my turn A pseudo-cell. If a single cell is drawn multiple times in a sampling round, its original contact count is repeatedly contributed according to the number of times it is drawn, in order to preserve the multiplicity of sampling with replacement. For example, a single cell may be drawn 0, 1, or more times in a sampling round; if it is drawn... Then, the total number of original contacts of the single cell in the corresponding pseudocell is calculated as follows: Double contribution .
[0043] ;
[0044] ;
[0045] In the formula, Indicates the first In the round of sampling with replacement, the first The total number of times a single cell was extracted. Indicates the first A single cell in the genome binning pair The original number of contacts on For the first The number of original contacts of each pseudocell on the corresponding genome binning pair.
[0046] In this step, the different pseudocells are not formed by identical repeated summations of the same batch of single cells, but by different random cell combinations and different numbers of cell draws. If a chromatin contact has a relatively stable signal in a large number of single cells of that cell type, then regardless of which specific cells are repeatedly drawn, this contact will generally maintain a high contact level in most pseudocells. Conversely, if a high contact is mainly contributed by a very small number of single cells, then the contact may be strong when these single cells are repeatedly drawn in a round of sampling with replacement; while the contact strength may decrease significantly when these single cells are not drawn or are drawn less frequently in another round of sampling. Therefore, the differences between different pseudocells can reflect the sensitivity of the original single-cell contact signal to changes in cell composition.
[0047] Each pseudo-cell is constructed using cells of the corresponding cell type. Using a single primitive cell as the sampling population, continuous sampling was conducted. Each round of random sampling involves selecting a single cell; after each round, the selected cell is returned to the original cell set. Therefore, the same single cell can be selected 0, 1, or more times in a single round of sampling. Because sampling with replacement occurs in each round, the total number of cells selected is fixed. Therefore, the sum of the number of times all single cells are drawn in this round is always equal to... This ensures that different pseudocells have the same nominal sampling size, while retaining the multiplicity of repeated sampling caused by sampling with replacement.
[0048] In this embodiment, when constructing the first pseudo-cell, simple random sampling is performed using all 192 GM12878 single cells as the sampling population. First, one cell is randomly selected from the 192 single cells, its cell number is recorded, and then the cell is returned to the original cell set. Then, another cell is randomly selected from the complete set of 192 single cells. This process is repeated 192 times. After one round of 192 samplings, the original contact counts of all selected single cells are summed at a given resolution according to their actual number of times they were selected, thus obtaining a pseudo-cell. For example, if a single cell is selected twice, its total original contact count contributes 2 times to the pseudo-cell; if it is selected three times, it contributes 3 times; if it is not selected, it does not contribute. A total of [number missing] cells are selected. It was time to get 40 pseudo-cells.
[0049] Thus, on the one hand, each pseudocell aggregates The original contact information of individual cells is used to create a pseudo-batch Hi-C contact map that directly aggregates all cells, which improves the contact coverage relative to individual cells and effectively alleviates the problem of extreme sparsity of single-cell Hi-C data. On the other hand, the contact differences between different pseudo-cells can reflect the sensitivity of the original single-cell contact signal to changes in different cell combinations and cell contribution weights.
[0050] Because each pseudocell is composed of Multiple single-cell aggregates are formed after replacement sampling, and the contact coverage of a single pseudo-cell is much higher than that of a single cell, thus alleviating the extreme sparsity of single-cell Hi-C; at the same time, N rounds of independent replacement sampling generate Repeated observations at the aggregation level overcome the limitation of a single pseudo-batch Hi-C which only has a single aggregation matrix and is difficult to directly form repeated statistical samples. This allows for the simultaneous acquisition of aggregation signals and statistical repeatability at lower coverage levels, improving the statistical testing capability of candidate chromatin rings.
[0051] S3. Using different pseudo-cells as repeated statistical units, for each genome bin pair in the pseudo-batch Hi-C contact map, calculate its original contact count in each pseudo-cell and the mean value of the corresponding circular background, forming multiple sets of one-to-one paired observations; check whether the original contact count is consistently higher than the mean value of the circular background, and after multiple checks and corrections, select candidate genome bin pairs; wherein, the genome bin pair is used as the contact center of the corresponding matrix unit in the Hi-C contact matrix, and a circular background is established based on the contact center, wherein the circular background is the background region centered on the contact center and excluding several inner central windows.
[0052] This step specifically includes:
[0053] S31. For each genome bin pair, calculate the original contact count of the genome bin pair and the mean of the circular background of the same pseudocell in each pseudocell.
[0054] Specifically, for each genome bin pair in the pseudo-batch Hi-C contact graph Genome binning pairs are used as the contact centers of corresponding matrix units in the Hi-C contact matrix; the original contact counts of the contact centers are read in the Hi-C contact map of the nth pseudo-cell. Using the corresponding contact center as a reference, a two-dimensional local background is established in the same pseudo-cell Hi-C contact map to form a circular background, and the mean value of the corresponding circular background is calculated. .
[0055] In this embodiment, the circular background is defined by both an inner and outer boundary. The effective genome binning pairs located within the outer boundary and outside the inner central window are included in the circular background region. The inner boundary is set as the distance from the contact center. Two (e.g.) genome bins are used, with the outer boundary set as the distance from the contact center. One (e.g., 5) genome bins, Therefore, a structure is formed with the contact center as the center and an outer layer of size... Exclude the inner layer The circular background area of the central window, such as Figure 2 As shown, the red area is the contact center, the gray area is the excluded inner layer center window, and the yellow area is the circular background area. In this embodiment, the circular background area is a two-dimensional local background.
[0056] Furthermore, the effective genome binning pairs within the circular background region corresponding to the contact center are used to form a circular background set. For genomic binning pairs that belong to the circular background set but whose contacts were not observed in the current pseudocell, their original contact count is calculated as 0. Locations exceeding the maximum chromosome length boundary, located on the main diagonal of the Hi-C contact matrix, or in the lower triangular region are not included in the circular background set. The sum of the original contact counts of all valid genomic binning pairs within the circular background set is used as the numerator, and the number of valid genomic binning pairs is used as the numerator. Using the denominator, the contact center in the nth pseudo-cell is calculated. Corresponding circular background mean ,Right now:
[0057] ;
[0058] in, This indicates the number of valid genome bin locations within the circular background set. This represents the coordinates of a genome bin pair within a circular background set. This indicates that the nth pseudocell is in the genome binning pair. The original contact count on.
[0059] S32, Binning the same genome into... Composed of the original contact count of the contact center in each pseudocell and the mean of the circular background. Paired observations were performed, and a one-sided Wilcoxon signed-rank test was conducted based on the pairing difference between the original contact count at the contact center and the mean of the circular background. Genome binning pairs that met the test criteria were obtained and recorded as candidate genome binning pairs.
[0060] A one-sided Wilcoxon signed-rank test was used to determine whether the original contact count at the contact center was significantly higher than the mean of the circular background of the same pseudocell, and the test P value was obtained.
[0061] In this embodiment, Group pair observations are:
[0062] ;
[0063] For the Paired observations were performed, and the paired difference between the original contact count at the contact center and the mean of the circular background was calculated:
[0064] ;
[0065] With pairing difference A one-sided Wilcoxon signed-rank test was performed on the observed objects. Specifically, observations with a paired difference of 0 were removed, and the absolute values of the remaining paired differences were ranked in ascending order. For paired differences with the same absolute value, the average of their corresponding ranks was used as the joint rank. The ranks corresponding to observations with a paired difference greater than 0 were summed to obtain the positive rank sum:
[0066] ;
[0067] In the formula, Represents the absolute value of the pairing difference The corresponding rank.
[0068] Rank and As a statistic for the one-sided Wilkecoson signed-rank test, it is denoted as The null hypothesis of this test is that the original contact count at the contact center has no positive positional shift relative to the mean of the circular background, meaning the overall center of the pairing difference is not greater than 0. The alternative hypothesis is that the original contact count at the contact center has a positive positional shift relative to the mean of the circular background, meaning the overall center of the pairing difference is greater than 0. When the distribution of the pairing difference is approximately symmetric about its median, the above hypothesis is equivalent to testing whether the overall median of the pairing difference is greater than 0.
[0069] Calculate the observed statistic based on the upper tail distribution of the positive rank sum statistic when the null hypothesis is true. The corresponding one-sided test p-value:
[0070] ;
[0071] Statistic The larger the value of P, the more pseudocells have original contact counts of contact centers that are higher than the mean of the corresponding circular background, and the larger the rank corresponding to the absolute value of the pairing difference. The smaller the P value, the lower the probability of obtaining the current statistic or a larger statistic under the condition that the null hypothesis is true, indicating that the enrichment of contact centers relative to the circular background has stronger stability among different pseudocells.
[0072] This test uses different spurious cells as the unit of repeated statistics, rather than treating multiple background locations within the same local window as independent samples. Therefore, the statistical significance reflects whether the enrichment of the contact center relative to its circular background can be stably reproduced among different spurious cells formed by sampling with replacement.
[0073] For genome binning pairs Define its linear genome binning distance The genomic binning coordinate interval is defined as the distance between two binning anchors on the same chromosome. The linear genomic binning distance is the binning interval between the two anchors. Since the Hi-C contact frequency distribution varies with the linear genomic binning distance, genomic binning pairs with the same linear genomic binning distance are grouped into the same distance layer. Within each distance layer, the Benjamin–Hochberg method is used to perform multiple tests to correct the p-value of the Wilcoxon signed-rank test. The false discovery rate obtained after multiple test correction is denoted as . .
[0074] This embodiment applies to genome binning pairs. The error detection rate obtained after multiple verification within its distance stratum must meet the following distance stratification error detection rate condition:
[0075] ;
[0076] Set Wilkerson's statistical threshold The requirement is that the statistic obtained by the Wilkerson signed-rank test is greater than the statistic threshold, i.e., the statistic condition is:
[0077] ;
[0078] in, This is a statistical measure; the threshold value of this statistical measure is used to further constrain the consistency of enrichment across pseudocell centers. This threshold value increases with the number of sampling repetitions with replacement. Changes are not treated as universal, fixed constants; when When the value is 40, the statistical threshold used in this embodiment is 708.0.
[0079] Genome binning pairs that simultaneously satisfy the distance stratification error detection rate condition and the Wilkerson statistic condition are designated as candidate genome binning pairs, and proceed to step S4.
[0080] S4. Based on the original contact count of candidate genome bin pairs, set an adaptive contact threshold for distance between genome bins; filter all candidate genome bin pairs based on the adaptive contact threshold, and use the selected candidate genome bin pairs as candidate genome bin pair centers.
[0081] This step specifically includes:
[0082] S41. Stratify the Hi-C contact map of each pseudocell based on the linear genome binning distance. For each linear genome binning distance, collect the original contact counts of all genome binning pairs under the linear genome binning distance from the Hi-C contact map of pseudocells of the same cell type to form a set. and calculate the set The median is calculated by multiplying the median by the distance threshold multiple. Forming a distance-adaptive contact threshold This refers to the minimum contact threshold for linear genome binning distance.
[0083] Specifically, the distance between the same linear genome bins at the target resolution All genome binning pairs refer to pairs whose absolute value is the difference between two binning anchor points. Genome binning pairs. For any linear genome binning distance... Extract the original contact counts of all genome bin pairs at this distance to form a set. And calculate the median. Distance Minimum contact threshold Defined as:
[0084] ;
[0085] in The distance threshold multiplier is an adjustable parameter. In this embodiment, the distance threshold multiplier for long-distance interaction is set to a value of [value missing]. =2, the distance threshold multiplier for short-distance interaction is taken as 2. =3.
[0086] This design allows the screening criteria for candidate genome bins to automatically adjust according to the variation of pseudocell Hi-C contact frequency with linear genome bin distance, rather than using a fixed number of contacts uniform across the entire genome. It also avoids the direct suppression of the background scale by a large number of unobserved zero values. In this embodiment, the distance-adaptive contact threshold is only used for candidate support screening at the center of the candidate genome bin pair and does not change the original contact count.
[0087] S42. For candidate genome binning pairs, calculate their linear genome binning distance; screen pseudo-cells in candidate genome binning pairs whose original contact count is greater than the distance adaptive contact threshold, and record them as supporting cells that provide support to the center of the candidate genome binning pair; count the number of supporting cells and set the minimum support ratio of the center of the candidate genome binning pair; if the number of supporting cells in the pseudo-cells corresponding to the candidate genome binning pair exceeds the minimum support ratio of the center, then the selection is passed.
[0088] Specifically, for candidate genome binning pairs Calculate its linear genome binning distance If the first The original contact number of pseudocells Greater than the distance adaptive contact threshold Then record the first Each pseudo-cell provides support to the candidate genome bins for the center; the number of supporting cells is counted, and a minimum candidate genome bin support ratio parameter is set for the center. :
[0089] ;
[0090] in, To support the number of cells; This is an adjustable parameter that can be adjusted according to requirements such as sequencing depth and cell count. This embodiment uses... =0.5.
[0091] For example in The first of this pair of candidate genome binning pairs The original contact number of pseudocells Greater than the minimum contact threshold Then the first Each pseudocell is a candidate genome binning pair The number of supporting cells contributes one unit, and then the total number of supporting cells in the 40 pseudo-cells is counted. When =40, if the candidate genome binning pair If at least 21 out of 40 pseudocells reach the corresponding distance-adaptive contact threshold, then the candidate genome binning pair is considered a good match. You can proceed to the next screening process.
[0092] S5. The candidate genome bins obtained in step S4 are subjected to local background screening, neighborhood support screening and clustering in the pseudo-batch Hi-C contact map to obtain high-confidence chromatin loops.
[0093] Specifically, firstly, the circular background defined in step S3 is further subdivided into four types of local backgrounds: horizontal, vertical, lower-left, and donut. In the pseudo-batch Hi-C contact map, the original contact count of each candidate genome binning pair is compared with the average contact count of its circular background and the four types of local background regions after subdivision. Candidate genome binning pairs that simultaneously meet the enrichment criteria are retained. Secondly, in the Hi-C contact map of each pseudo-cell, the number of genome binning pairs with an original contact count greater than 0 in a given neighborhood around each candidate genome binning pair is counted, and the minimum statistical value among all pseudo-cells is used for screening. Finally, the candidate genome binning pairs are selected based on their coordinates. Candidate genome bins with coordinate differences between two bin anchor points not exceeding the preset clustering gap are assigned to the same candidate cluster. A representative peak is selected in each candidate cluster, and the genome position determined by the two bin anchor points corresponding to the representative peak is output as a high-confidence chromatin loop.
[0094] See Figure 3 The specific meanings of the four types of local backgrounds obtained by splitting the circular background are as follows:
[0095] (1) Horizontal background: The strip-shaped background area located horizontally in the contact center, i.e. Figure 3 The blue areas to the left and right of the contact center are used to characterize the local contact level in the same horizontal direction as the contact center.
[0096] (2) Vertical background: The strip-shaped background area located vertically to the contact center, i.e. Figure 3 The green areas above and below the center of contact are used to characterize the local contact level in the same vertical direction as the center of contact.
[0097] (3) Lower-left background: The local background area located to the lower left of the contact center, i.e. Figure 3 The orange area in the diagram represents the local contact level in the area adjacent to the lower left of the contact center.
[0098] (4) Background (donut): The background area distributed around the inner center window within the range defined by the inner and outer boundaries, i.e. Figure 3 The yellow area in the image. This area does not include the red contact center, the white inner layer center window, and... Figure 3 The directional areas marked in blue, green, and orange are used to characterize the surrounding background level in the remaining directions around the contact center.
[0099] Enrichment criteria refer to the enrichment fold where the center count of candidate genome bin pairs is greater than the mean contact count of circular background, horizontal background, vertical background, lower left background, and circle background.
[0100] This step sequentially performs five types of local background screening for pseudo-batch Hi-C contact maps, neighborhood support screening for pseudo-cell Hi-C contact maps, and two-dimensional coordinate clustering of candidate binning pairs.
[0101] S51. For the selected candidate genome binning pairs, read the count from the pseudo-batch Hi-C contact map of the same cell type and record it as the center count. Around the contact center, split the circular background into horizontal background, vertical background, lower-left background, and donut background, and calculate the average contact count of the five local backgrounds, including the circular background.
[0102] The inner and outer boundaries of the background window are adjustable parameters. In this embodiment, two sub-bins and five sub-bins are used respectively.
[0103] S52. Candidate genome binning pairs are screened by setting an enrichment fold threshold. In the pseudo-batch Hi-C contact map, the enrichment degree of the center count relative to the mean contact count of five types of local background: circular background, horizontal background, vertical background, lower left background, and ring background. Candidate genome binning pairs. Center count The following five enrichment conditions must be met simultaneously:
[0104] ;
[0105] in , , , and These represent candidate genome binning pairs. The average contact counts for the corresponding circular background, circle background, lower left background, horizontal background, and vertical background. , , , and These are the enrichment factor thresholds for the set circular background, circle background, lower left background, horizontal background, and vertical background, respectively.
[0106] Each enrichment threshold is an adjustable parameter; in this embodiment, 3.5, 3.5, 5.0, 2.5, and 2.5 are used sequentially. Only when the candidate genome bin center simultaneously passes the enrichment condition screening for all five local background structures—that is, when the candidate genome bin center reaches the set enrichment threshold relative to each background type—will it proceed to the next step of local support screening.
[0107] S53, Binding of candidate genomes In each pseudo-cell Hi-C contact map, the number of candidate genome binning pairs with an original contact count greater than 0 within a given neighborhood is counted; screening is then performed. The minimum number of genomic binning pairs in each pseudocell is greater than the number of candidate genomic binning pairs that support the local support screening criteria, where the local support screening criteria is the total number of theoretically valid candidate genomic binning pairs within the given neighborhood. times, This is an adjustable parameter.
[0108] In this embodiment, the Chebyshev distance radius within a given neighborhood is given. Within the range.
[0109] Let the neighborhood interaction positions of candidate genome bins within a given neighborhood be denoted as . :
[0110] ;
[0111] At the same time, only those within the maximum length range of chromatin and satisfying the following conditions are retained. The location, among which , This represents the genome binning pair containing the two anchor points in the neighborhood interaction positions corresponding to the candidate genome binning pair. Therefore, the candidate genome binning pairs... At Chebyshev distance radius The set consists of all valid neighboring interaction locations within the range. .
[0112] Let the first The number of genome binning pairs with a primary contact count greater than 0 within the aforementioned neighborhood interaction sites in a pseudocell is the local support number. ,Right now:
[0113] ;
[0114] In the formula, Indicates the first A pseudocell in the genome binning pair The original contact count on; Indicates candidate genome binning pairs The effective Chebyshev distance neighborhood; This is an indicator function, which takes the value 1 when the corresponding condition is true, and 0 otherwise.
[0115] Take all The minimum number of local supports in each pseudo-cell, i.e., the minimum number of local supports. Suppose that candidate genome binning pairs are defined at a given chromosome boundary and satisfy... Under constraints, at Chebyshev distance radius The total number of theoretically effective candidate genome bins is (Excluding candidate genome binning centers), the local support screening criteria are:
[0116] ;
[0117] in , All parameters are adjustable; this embodiment uses... =1 compartment =0.5. That is, each pseudocell is binned into genome pairs. For the contact center Within the local background region (excluding the center of the candidate genome bin pair), there need to be 5 or more neighboring genome bin pairs with positive original contact counts (i.e., original contact counts greater than 0).
[0118] By screening the candidates by taking the minimum number of local support in all pseudocells, it is required that the candidate genome bins have stable local continuous contacts in different pseudocells in terms of both intensity and structure, thereby excluding isolated contact summits or locally unstable candidates that only appear in some pseudocells.
[0119] S54. Binning any two candidate genome pairs selected in step S53. Compare the distances between the genome bins in the directions of the two bin anchor points. and When the maximum value of the genome binning distance in the direction of the two binning anchor points does not exceed the preset clustering gap, that is:
[0120] ;
[0121] Then, it is determined that the two candidate genome bins are positionally adjacent, where This indicates taking the maximum value. Preset clustering gaps; connect the two-dimensional coordinates of two candidate genome bin pairs; group all candidate genome bin pairs that can be connected by the above positional adjacency relationship into the same candidate cluster.
[0122] In this embodiment, the clustering gap is set to 3 bins. That is, at 10 kb resolution, if the positional difference between two candidate genome bins in the direction of the two bin anchor points does not exceed 30 kb, they can be considered to belong to the same local enrichment region. Since multiple adjacent candidates may appear around a true local contact enrichment peak, only representative candidates are selected as peaks (summits) for each candidate cluster. Specifically, the following priority order is used for screening: first, the candidate with the smallest distance stratified FDR (false discovery rate) is selected; if the distance stratified FDR is the same, the candidate with the larger Wilcoxon statistic is selected; if they are still the same, the candidate with the larger original contact count of the pseudo-batch Hi-C center is selected. In addition, the peak interval between peaks is set. If the first peak is selected for a given cluster, all candidate genomic bins within a 50 kb radius centered on that peak are removed. If other candidate genomic bins remain within the cluster after removal, the second peak is selected according to the selection rules, and so on. The peak spacing further reduces duplicate reports of candidates that are too close together within the same local enrichment region. If a cluster is large enough, it may have multiple peaks. Finally, all peak candidates for each cluster are retained, and the genomic positions corresponding to their two anchor points are defined as the high-confidence chromatin loops in the final output.
[0123] The above embodiments are preferred embodiments of the present invention, but the embodiments of the present invention are not limited to the above embodiments. Any changes, modifications, substitutions, combinations, or simplifications made without departing from the spirit and principle of the present invention shall be considered equivalent substitutions and shall be included within the protection scope of the present invention.
Claims
1. A method for identifying Hi-C chromatin loops in single cells based on sampling with replacement, characterized in that, Includes the following steps: S1. Preprocess the single-cell Hi-C contact data to construct a pseudo-batch Hi-C contact map; including: S11. For each cell type, read the corresponding contact position based on the single cell identifier; determine the contact pair corresponding to two spatially contacting genomic positions based on the contact position, map the coordinates of the contact pair to the genomic bins at the target resolution, and obtain a pair of spatially contacting genomic bins; count all the original Hi-C contact counts belonging to the same genomic bin pair and sum them up to obtain the original contact count of the genomic bin pair. S12. Accumulate the original contact counts of all single cells of the same cell type according to the same genome binning pairs to construct a pseudo-batch Hi-C contact map; S2. Based on sampling with replacement, construct pseudo-cells and aggregate all single-cell Hi-C data from each round of sampling to obtain the pseudo-cell Hi-C contact map; each round of sampling starts from... Each single cell has replacement extraction Next; the first After round sampling, the original contact counts of the selected single cells are aggregated to form the first round. A pseudo-cell, ;repeat It's my turn One pseudo-cell; S3. Using different pseudo-cells as the repeated statistical units, for each genome bin pair in the pseudo-batch Hi-C contact map, calculate its original contact count in each pseudo-cell and the corresponding circular background mean, forming multiple sets of one-to-one paired observations; test whether the original contact count is consistently higher than the circular background mean, and after multiple tests and corrections, select candidate genome bin pairs. In this context, the genome binning pairs are used as the contact centers of the corresponding matrix units in the Hi-C contact matrix, and a circular background is established based on the contact centers. The circular background is a background region centered on the contact centers and excluding several inner central windows. S4. Based on the original contact count of candidate genome bin pairs, set an adaptive contact threshold for distance between genome bins; filter all candidate genome bin pairs based on the adaptive contact threshold, and use the filtered candidate genome bin pairs as the center of the candidate genome bin pairs; S5. The candidate genome bins obtained in step S4 are subjected to local background screening, neighborhood support screening and clustering in the pseudo-batch Hi-C contact map to obtain high-confidence chromatin loops.
2. The single-cell Hi-C chromatin ring recognition method according to claim 1, characterized in that, In step S11, at the target resolution, the reference genome is divided into multiple continuous and non-overlapping genomic regions, each genomic region being called a genomic bin; for a contact pair, the two genomic locations it contains are mapped to their corresponding genomic bins. and genome binning , by genome bin and genome binning The pairings formed are called genome binning pairs. Among them, genome bins and genome binning The two binning anchors that constitute a genome binning pair; genome binning pair This corresponds to a matrix unit in the Hi-C contact matrix.
3. The single-cell Hi-C chromatin ring recognition method according to claim 2, characterized in that, If two genomic locations are on the same chromosome, the contact pair is called a cis contact pair; if the two genomic locations are on different chromosomes, the contact pair is called a trans contact pair; cis contact pairs are retained for chromatin ring recognition.
4. The single-cell Hi-C chromatin ring recognition method according to claim 1, characterized in that, Step S3 includes: S31. For each genome bin pair, calculate the original contact count of the genome bin pair and the mean of the circular background of the same pseudo-cell in each pseudo-cell. S32, Binning the same genome into... Composed of the original contact count of the contact center in each pseudocell and the mean of the circular background. Paired observations were performed, and a one-sided Wilcoxon signed-rank test was conducted based on the pairing difference between the original contact count at the contact center and the mean of the circular background. Genome binning pairs that met the test criteria were obtained and recorded as candidate genome binning pairs.
5. The single-cell Hi-C chromatin loop recognition method according to claim 4, characterized in that, The circular background is defined by both the inner and outer boundaries. The effective genome binning pairs located within the outer boundary and outside the inner central window are included in the circular background region. Set the inner boundary as the distance from the contact center. Each genome bin is set with its outer boundary as the distance from the contact center. Each genome bin, ; forming an outer layer with the contact center as the center and a size of Exclude the inner layer The circular background of the central window.
6. The single-cell Hi-C chromatin loop recognition method according to claim 4, characterized in that, In step S31, the effective genome bin pairs within the circular background corresponding to the contact center are used to form a circular background set. ; For genome binning pairs that belong to the circular background set but have not been observed to have contact in the current pseudocell, their original contact count is set to 0; the sum of the original contact counts of all valid genome binning pairs within the circular background set is used as the numerator, and the number of valid genome binning pairs is used as the numerator. Using the value of 'n' as the denominator, the mean value of the circular background corresponding to the contact center in the nth pseudo-cell is calculated. ,Right now: ; in, This indicates the number of valid genome bin locations within the circular background set. This represents the coordinates of a genome bin pair within a circular background set. This indicates that the nth pseudocell is in the genome binning pair. The original contact count on.
7. The single-cell Hi-C chromatin loop recognition method according to claim 4, characterized in that, In step S32, a one-sided Wilcoxon signed-rank test is used to determine whether the original contact count at the contact center is significantly higher than the mean of the circular background of the same pseudo-cell, and the test P value is obtained. For genome binning pairs Define its linear genome binning distance The genomic binning coordinate interval is defined as the distance between two binning anchor points on the same chromosome. Genomic binning pairs with the same linear genomic binning distance are grouped into the same distance layer, and multiple test corrections are performed on the test p-value within each distance layer. The false discovery rate obtained after multiple test correction is denoted as . ; For genome binning pairs If the false discovery rate obtained after multiple tests within the distance stratum meets the distance stratification false discovery rate condition, and the statistic obtained by Wilcoxon signed-rank test is greater than the statistic threshold, then the corresponding genome binning pair is marked as a candidate genome binning pair.
8. The method for identifying single-cell Hi-C chromatin loops according to claim 1, characterized in that, For genome binning pairs Define its linear genome binning distance The genomic binning coordinate interval between two binning anchor points on the same chromosome; Step S4 includes: S41. Stratify the Hi-C contact map of each pseudocell based on the linear genome binning distance. For each linear genome binning distance, collect the original contact counts of all genome binning pairs under the linear genome binning distance from the Hi-C contact map of pseudocells of the same cell type to form a set. and calculate the set The median is calculated by multiplying the median by the distance threshold multiple. Forming a distance-adaptive contact threshold That is, the minimum contact threshold for linear genome binning distance; S42. For candidate genome binning pairs, calculate their linear genome binning distance; screen pseudo-cells in candidate genome binning pairs whose original contact count is greater than the distance adaptive contact threshold, and record them as supporting cells that provide support to the center of the candidate genome binning pair; count the number of supporting cells and set the minimum support ratio of the center of the candidate genome binning pair; if the number of supporting cells in the pseudo-cells corresponding to the candidate genome binning pair exceeds the minimum support ratio of the center, then the selection is passed.
9. The method for identifying single-cell Hi-C chromatin loops according to claim 5, characterized in that, In step S5, the circular background is first divided into horizontal background, vertical background, lower left background and circle background. In the pseudo-batch Hi-C contact map, the original contact count of each candidate genome bin pair is compared with the average contact count of its circular background, horizontal background, vertical background, lower left background and circle background. Candidate genome bin pairs that simultaneously meet the enrichment conditions are retained. Secondly, in the Hi-C contact map of each pseudocell, the number of genomic bin pairs with an original contact count greater than 0 in a given neighborhood for each candidate genomic bin pair is counted, and the pair is screened based on the minimum statistical value among all pseudocells. Finally, based on the coordinates of the candidate genome bins, candidate genome bins with coordinate differences in the directions of the two bin anchor points not exceeding the preset clustering gap are divided into the same candidate cluster. In each candidate cluster, a representative peak is selected, and the genome position determined by the two bin anchor points corresponding to the representative peak is output as a high-confidence chromatin loop. The horizontal background is a strip-shaped background area located horizontally to the contact center, used to represent the local contact level in the same horizontal direction as the contact center; the vertical background is a strip-shaped background area located vertically to the contact center, used to represent the local contact level in the same vertical direction as the contact center; the lower left background is a local background area located to the lower left of the contact center, used to represent the local contact level in the area adjacent to the lower left of the contact center; and the ring background is a background area distributed around the inner layer central window within the range defined by the inner and outer boundaries. Enrichment criteria refer to the enrichment fold where the center count of candidate genome bin pairs is greater than the mean contact count of circular background, horizontal background, vertical background, lower left background, and circle background.
10. The single-cell Hi-C chromatin ring recognition method according to claim 9, characterized in that, Step S5 includes: S51. For the candidate genome binning pairs that have passed the screening, read the center count from the pseudo-batch Hi-C contact map of the same cell type; around the contact center, split the circular background into horizontal background, vertical background, lower left background, and circle background, and calculate the average contact count of the circular background, horizontal background, vertical background, lower left background, and circle background respectively. S52. Set an enrichment fold threshold to screen candidate genome binning pairs. Calculate the enrichment degree of the center count relative to the mean contact counts of the circular background, horizontal background, vertical background, lower left background, and circle background in the pseudo-batch Hi-C contact map. The center counts of the candidate genome binning pairs... The following enrichment conditions must be met simultaneously: ; in , , , and These represent candidate genome binning pairs. The average contact counts for the corresponding circular background, circle background, lower left background, horizontal background, and vertical background. , , , and These are the enrichment factor thresholds for the set circular background, circle background, lower left background, horizontal background, and vertical background, respectively. S53, Binding of candidate genomes In each pseudo-cell Hi-C contact map, the number of candidate genome binning pairs with an original contact count greater than 0 within a given neighborhood is counted; screening is then performed. The minimum number of genomic binning pairs in each pseudocell is greater than the number of candidate genomic binning pairs that support the local support screening criteria, where the local support screening criteria is the total number of theoretically valid candidate genomic binning pairs within the given neighborhood. times, These are adjustable parameters; S54. Binning any two candidate genome pairs selected in step S53. Compare the distances between the genome bins in the directions of the two bin anchor points. and When the maximum value of the genome bin distance in the direction of the two bin anchor points does not exceed the preset clustering gap, the two candidate genome bin pairs are determined to have a positional adjacency relationship, and the two-dimensional coordinates of the two candidate genome bin pairs are connected; all candidate genome bin pairs that can be connected by positional adjacency relationship are classified into the same candidate cluster.
