Correlate single-cell Hi-C data.
Project description
scHicCorr
Computes per-chromosome correlations between single-cell Hi-C contact matrices stored in .cool files. Supports preprocessing, weighted correlations, and flexible output formats.
Features
- Symmetrizes and normalizes Hi-C contact matrices
- Applies a 2D mean filter to smooth matrices
- Extracts the first K diagonals for analysis
- Computes weighted correlations between multiple datasets
- Outputs compressed CSV (
.csv.gz) or Parquet - Optionally splits results per chromosome
- Parallel processing via multiple CPU cores
Installation
pip install scHicCorr
Usage
schiccorr input1.cool input2.cool --output_prefix results/output --format parquet --split --h 1 --K 5000000 --cores 4
Arguments
| Argument | Description | Default |
|---|---|---|
input_files |
One or more .cool Hi-C input files |
|
--output_prefix |
Prefix for output files (chromosome name appended if --split) |
|
--format |
Output format: parquet or csv.gz |
parquet |
--split |
Split output by chromosome into separate files | |
--h |
Mean filter size | 1 |
--K |
Number of diagonals to extract | 5000000 |
--cores |
Number of CPU cores for parallel processing | 1 |
--log-level |
Logging level: DEBUG, INFO, WARNING, ERROR |
INFO |
--log-file |
Write logs to file in addition to stdout |
Examples
Single Parquet file:
schiccorr sample1.cool sample2.cool --output_prefix results/hic_corr
Split by chromosome, compressed CSV:
schiccorr sample1.cool sample2.cool --output_prefix results/hic_corr --format csv.gz --split
Log to file:
schiccorr sample1.cool sample2.cool --output_prefix results/hic_corr --log-file run.log
Output
Each row in the output contains reference, comparison, chromosome, and correlation. When --split is used, one file is written per chromosome with the chromosome name appended to the prefix.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file schiccorr-0.0.4.tar.gz.
File metadata
- Download URL: schiccorr-0.0.4.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67080e94ed499bb9465311eb6bc607bf77311ea3a0c08094980121dc803807b0
|
|
| MD5 |
bf7120b1cb741e57e2609c340ddd1175
|
|
| BLAKE2b-256 |
0589467f5af1420b2a797680d8088b4130ee7c3c33bf7d6c73ff884bc1f7732a
|
File details
Details for the file schiccorr-0.0.4-py3-none-any.whl.
File metadata
- Download URL: schiccorr-0.0.4-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e01b0b6cb5515a7d7ebb6bd2783a8fde5129feec8a0073f707c29ce2e3538d0
|
|
| MD5 |
01582d6d73343441444183d8372bf670
|
|
| BLAKE2b-256 |
3750bb0c4d778db32fb583ad1f744f144a2224b85d5640cf1621cb78ea3b2d6f
|