Installation¶
From PyPI¶
pip install u-chrom
From source¶
git clone https://github.com/Nanguage/U-Chrom.git
cd U-Chrom
pip install -e .
Optional dependencies¶
Some workflows need heavier dependencies that are published as extras:
Extra |
Installs |
Needed for |
|---|---|---|
|
PyVista, pyvistaqt, VTK, PyQt5, qdarkgraystyle |
|
|
FastAPI, uvicorn |
|
|
hic-straw |
reading |
|
anndata |
|
|
mudata |
|
|
umap-learn |
UMAP in |
|
astropy |
|
|
scikit-image |
SnapFISH-IMPUTE ( |
|
FastHigashi / Higashi |
|
pip install "u-chrom[browser]"
pip install "u-chrom[browser,hic,anndata]" # several at once
GPU acceleration¶
The tensor-heavy steps (axis-wise variance cube, F-test, MDS) run through PyTorch on the best available device:
Device |
Precision |
Typical use |
|---|---|---|
|
float64 |
NVIDIA desktop / server |
|
float32 |
Apple Silicon |
|
float64 |
fallback |
Pass device="auto" (the default) to pick automatically, or an explicit
device name to pin. GPU support is optional — everything works on CPU.
Verifying the install¶
import uchrom
print(uchrom.__version__)
from uchrom import ChromData
If that works, the core package is usable. If you installed the browser extras:
python -m uchrom.browser --help