TL;DR
Single-cell Hi-C (scHi-C) data offers unprecedented insights into 3D genome organization, but analyzing its inherent sparsity and high dimensionality is challenging. This paper introduces scHiCTools, a comprehensive Python toolbox that streamlines scHi-C data analysis, from quality control and smoothing to similarity calculation, embedding, and clustering, making these complex analyses more accessible.
What Problem Does This Paper Address?
Understanding how our genome is folded in three dimensions within individual cells is crucial for deciphering cellular function and differentiation. Single-cell Hi-C (scHi-C) technology allows us to capture these 3D structures at a single-cell resolution. However, scHi-C data presents significant analytical hurdles:
- High Dimensionality and Sparsity: Contact maps are large matrices (tens of thousands of genomic loci), and individual cells often have sparse data due to low sequencing depth, meaning many potential interactions are not detected.
- Interpreting Cell-to-Cell Variation: Cells exhibit dynamic changes in their 3D organization, such as during the cell cycle or differentiation. Analyzing these variations requires robust methods to compare cells and identify underlying patterns.
- Lack of Integrated Tools: While individual computational methods exist, there was a need for a unified, user-friendly platform that integrates various steps of scHi-C data analysis, from initial data processing to visualization.
This paper aims to fill this gap by providing scHiCTools, a toolbox designed to handle these challenges and facilitate the analysis and visualization of scHi-C data.
Methods
scHiCTools offers a modular workflow encompassing five key steps:
- Data Loading and Quality Control: The toolbox supports common scHi-C file formats (.hic, .mcool, .txt) and provides summary plots (contact number histograms, short-range vs. mitotic contact percentages) to assess data quality and screen out low-quality cells.
- Smoothing: To address data sparsity,
scHiCToolsimplements three smoothing methods: - Linear Convolution: A 2D filter that smooths over neighboring bins.
- Random Walk: A method that captures global signals by iteratively updating the contact matrix.
- Network Enhancing: A technique that enhances network signals by adjusting eigenvalues of a doubly stochastic matrix.
- Pairwise Similarity Calculation: To compare cells, three similarity measures are provided:
- InnerProduct: A novel, highly efficient method that calculates similarity based on z-normalized strata of contact maps. This is highlighted as a significant improvement over existing methods in terms of speed.
- fastHiCRep: A faster implementation of the HiCRep method, which uses stratum-adjusted correlation coefficients.
- Selfish: A recently proposed method that uses a sliding window and a "fingerprint matrix" to capture similarities.
- Embedding and Clustering: To visualize cellular relationships in a lower-dimensional space,
scHiCToolsoffers: - Embedding Methods: Multidimensional Scaling (MDS), t-Distributed Stochastic Neighbor Embedding (t-SNE), and PHATE (Potential of Heat-diffusion for Affinity-based Trajectory Embedding).
- Clustering Methods: k-means, spectral clustering, and
scHiCluster(a method specifically designed for scHi-C data). - Visualization: The toolbox supports generating both 2D and 3D scatter plots of the embedded cells, with interactive features for hovering over cells to display labels.
Datasets
The paper utilizes several publicly available scHi-C datasets for evaluation and benchmarking:
- Nagano et al. dataset [2]: Used for evaluating similarity measures, embedding methods, and visualization.
- Collombet et al. dataset [19]: Used for benchmarking clustering performance.
- Flyamer et al. [1], Ramani et al. [3] datasets: Mentioned for providing details on cell numbers and contact numbers in supporting information.
The paper does not introduce new benchmark datasets but rather applies its toolbox to existing ones to demonstrate its capabilities and compare performance.
Key Insights and Ideas
- InnerProduct's Efficiency: The novel InnerProduct similarity measure is a game-changer, offering computational speedups of thousands of times compared to previous methods like HiCRep, making analysis of large cell populations feasible.
- Linear Convolution's Robustness: For smoothing sparse scHi-C data, especially in the presence of dropout events (simulated sequencing errors), linear convolution proves to be the most effective method, maintaining high projection quality even at high dropout rates.
- PHATE and t-SNE for Trajectory Preservation: While MDS is a standard for embedding, PHATE and t-SNE demonstrate superior performance in preserving cell-cycle dynamics, as indicated by higher ACROC scores, suggesting their utility for capturing continuous biological processes.
- scHiCluster for Specialized Clustering: For scHi-C data,
scHiClusteroutperforms general-purpose clustering methods (k-means, spectral clustering) when coupled with InnerProduct, achieving better NMI and ARI scores, though it is less computationally efficient.
Key Results
- Speedup: InnerProduct is thousands of times faster than original HiCRep for pairwise similarity calculation.
- Projection Quality (Cell Cycle): InnerProduct coupled with MDS achieved an ACROC of 0.904, comparable to original HiCRep. PHATE achieved the highest ACROC (0.920), followed by t-SNE (0.901) and MDS (0.904).
- Smoothing Performance: At a high dropout rate (0.7), linear convolution maintained an average ACROC above 0.9, while other methods dropped below 0.9.
- Clustering Performance:
scHiClusterachieved better NMI (0.266) and ARI (0.259) scores compared to InnerProduct+k-means (NMI: 0.222, ARI: 0.208) and InnerProduct+spectral clustering (NMI: 0.241, ARI: 0.197) on a mouse embryo dataset. - Computational Efficiency: The toolbox's methods (InnerProduct, fastHiCRep, Selfish) can process 1,000 cells within minutes, a significant improvement over older methods that took hours.
Limitations and Future Work
- Limitations:
- The paper notes that while
scHiClusterprovides better clustering results, it is less computationally efficient than methods combining InnerProduct with k-means or spectral clustering.
- The paper notes that while
- The performance of smoothing methods varied depending on the type of sparsification applied.
- Future Work:
- The authors plan to continuously update the toolbox with new algorithms, including novel embedding methods like UMAP and advanced clustering techniques such as hierarchical clustering.
- The interactive scatter plot function requires the
plotlylibrary to be installed.
Summary updated