Install & Compatibility
Where this runs
tested against v1.5.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
build_error
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 32.6s · import 2.276s · 959MB
864MB installed
● package 864MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
crested
✓ import crested
Main import, top-level module.
crested.tl
✓ import crested.tl
Training and inference module. Triggers backend load.
crested.pp
✓ import crested.pp
Preprocessing module.
crested.pl
✓ import crested.pl
Plotting module, reorganized in v1.7.0.
crested.Genome
✓ from crested import Genome
✗ crested.Genome()
Genome class for sequence loading.
Minimal example to load a pretrained model, create test data, and run predictions.
import crested
# Load a pretrained model from the repository
model = crested.pp.load_model('BorzoiHuman')
# Create a simple AnnData object with a genomic region
data = crested.pp.example_data()
# Make predictions
crested.tl.predict(model, data)
# Inspect predictions
print(data.obs.head())
crested --version
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'crested.tl'
`crested.tl` is only imported when accessed; it requires a backend (torch or tensorflow). This error occurs if you try to import it directly without having installed the backend.
fixInstall torch (`pip install torch`) or tensorflow (`pip install tensorflow`). Then use `import crested.tl`.
AttributeError: module 'crested.pl' has no attribute 'contribution_scores'
Since v1.7.0, the function was moved to `crested.pl.explain.contribution_scores`.
fixUse `crested.pl.explain.contribution_scores` instead.
ValueError: This model requires a TensorFlow backend, but TensorFlow is not installed.
Some pretrained models (e.g., Borzoi) were trained with TensorFlow and require it for prediction.
fixInstall tensorflow: `pip install tensorflow`.
RuntimeError: Expected all tensors to be on the same device
Common when mixing CPU and GPU tensors during prediction. Often due to not moving input data to the model's device.
fixEnsure input AnnData object's `.X` is on the same device as the model: `model.to(device)` and `data.X = data.X.to(device)`.
Upgrade
Version history
1.9.0latest on PyPI · released Jun 17, 2026
Audit
Dependencies
torchoptionalRequired for model training and prediction
tensorflowoptionalRequired for TensorFlow backend models