Code and derived parameters for the manuscript: Power-law penalties correct distance bias in single-cell co-accessibility and deep-learning chromatin interaction predictions.
The processed datasets, including Hi-C loop sets and co-accessibility scores used in this study, are available on Zenodo:
👉 Link to Zenodo Dataset
git clone https://github.com/jlab-code/polymer-penalty.git
cd polymer-penaltypip install -r requirements.txtUse our parameters derived for Soybean, Rice, and Maize.
- Place your co-accessibility scores in the
data/directory. - Open the Jupyter Notebook:
scripts/apply_correction.ipynb. - Select your target species:
# USER: Select species and model type
SPECIES = "Soybean"
USE_GLOBAL_CONSENSUS = True - Run all cells.
Use our GMM-pipeline to generate a custom model for any species.
- Place your Hi-C loops in
.bedpeformat in thedata/directory. - Open the Jupyter Notebook:
scripts/get_penalty_function.ipynb. - Update the data path:
hic_path = "../data/your_new_species_HiC.bedpe"- Run all cells.
The code in this repository is actively maintained. For the latest features, bug fixes, and parameter updates, please refer to the GitHub repository: https://github.com/jlab-code/polymer-penalty.
Power-law penalties correct distance bias in single-cell co-accessibility and deep-learning chromatin interaction predictions. (2026).