HiClip
Installation
hiclip can be installed using pip.
pip install hiclip
Then, install the appropriate version of PyTorch. After experimental verification, hiclip works well in the environment of pytorch 2.0.1 + CUDA 11.7.
# This is just an example, you can find the appropriate version in https://pytorch.org/get-started/previous-versions/
pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2
Tutorial
generate train dataset
import hiclip
# uri also support .cool file
dataset = hiclip.setup_data(
main_cooler_uri="main/K562.mcool::/resolutions/5000",
sub_cooler_uri="sub/K562.mcool::/resolutions/5000",
target_cooler_uri="target/K562.mcool::/resolutions/5000",
)
dataset.write(filename="dataset", compression="gzip")
train
import anndata
import hiclip
dataset = anndata.read_h5ad("dataset")
hiclip.HiClip.setup_anndata(dataset)
model = hiclip.HiClip(dataset)
model.train(
max_epochs=200,
save_ckpt_every_n_epoch=2,
plan_kwargs={"lr": 1e-3, "weight_decay": 0},
batch_size=4,
num_workers=16,
)
predict or observe
import anndata
import hiclip
dataset = anndata.read_h5ad("dataset")
model = hiclip.HiClip.load(
".hiclip/202X-XX-XX_XX-XX-XX_val_hiclip_metric/epoch=...",
dataset
)
# if predict
pred: anndata.AnnData = model.predict(dataset)
# if observe
pred = model.observe(main_cooler_uri, sub_cooler_uri, chrom, start, end)
The specific case is in the examples folder.
Metadata
Release files for hiclip 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hiclip-0.0.8.tar.gz | 908.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hiclip-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.9 MB
Release files / hiclip-0.0.8.tar.gz
| Download URL | hiclip-0.0.8.tar.gz |
|---|---|
| Size | 908.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
252a6df5ebc18b0a2c199c79007017dac3f44ac695453ec670cb4ab7666f9aee
|
|
BLAKE2b-256 checksum How to use checksums |
f3552f29d1851c5589e9ca0df5f4c05bcd80423b9a3ddc8f0c8edc94f666a22f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2025.
Transparency logRelease files / hiclip-0.0.8-py3-none-any.whl
| Download URL | hiclip-0.0.8-py3-none-any.whl |
|---|---|
| Size | 959.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6e347db40da19f420656fe9cb1d132f57b8bb11395fac1c638e3437a3fb0938
|
|
BLAKE2b-256 checksum How to use checksums |
d8a58832cbd6704368cae9fe5423ba21256ef69979f4c39594f361ec3cf8162a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2025.
Transparency log