Downloads · 30 days
0
chnftq/Capricorn
Capricorn is a machine learning model from chnftq. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated May 7, 2024
Repo size
2.9 GB
Likes
0
Public
Click a slice to open those files.
.pt2.9 GB · 100%
From the Hugging Face model README
The python implementation of Capricorn.
Capricorn is a tool for HiC contact matrix enhancement. Capricorn combines small-scale chromatin features with HiC matrix and utilize the diffusion model to generate High-coverage HiC matrices.
For more information, please read the preprint paper in (https://www.biorxiv.org/content/10.1101/2023.10.25.564065v2).
The following packages are required. We also provided recommended versions.
dataset_information.py, set your root directory for data. For example, let the root directory be /data/hic_data.RAW_dir directory under your root directory. Unzip the raw
HiC data into the directory. This would create a new directory with the cellline name under the directory.The scripts will run several scripts to get the data for training, validation and test:
hic_matrix_dir.See the codes for more details.
python -m data_processing.Preprocess -c GM12878
python -m data_processing.Preprocess -c K562
./weights../weights../checkpoints/{start_time}_Capricorn_GM12878. You could replace GM12878 with the cellline you need.python train_Capricorn.py --cell-line GM12878
checkpoint_name, data_file and CELLLINE according to your need.python infer_Capricorn.py -ckpt checkpoint_name -f data_file -c CELLLINE
HiC_evaluation/batch_evaluation.py for more details.Example experiment, which evaluating the low-coverage matrices(resolution 10kb_d16_seed0) with loop F1 scores on GM12878 cell line.python -m HiC_evaluation.batch_evaluation -e Example -pt