Skip to main content

modelpolis-sequence

One Python API for sequence-to-function prediction. Each model runs in its own Apptainer image, with its framework and weights inside.

Prerequisites

Run these checks in Bash before installing. The quickstart uses NVIDIA GPU 0.

Need One-line check
Linux on x86-64 uname -sm
NVIDIA GPU and a driver compatible with CUDA 12.8 (tested driver: 580.178.04) nvidia-smi
Apptainer on PATH; user namespaces enabled (tested: 1.4.5). Building an image yourself also needs builds without root using --fakeroot apptainer version && unshare -Ur true
conda, initialized for this shell conda --version
Git and curl git --version && curl --version
HTTPS access to GitHub, conda-forge, PyPI, Docker Hub and Google Cloud Storage curl -I https://github.com https://conda.anaconda.org/conda-forge/ https://pypi.org https://registry-1.docker.io/v2/ https://storage.googleapis.com
Budget 10 GiB free for the environment and the first image (40 GiB to build an image yourself); check each filesystem if separate df -h . "$HOME" /tmp

The registry probe normally returns HTTP 401 and the storage root HTTP 400; both confirm connectivity. unshare checks user namespaces. No host PyTorch, JAX or CUDA toolkit is needed.

Install

git clone https://github.com/tanjiminlab/modelpolis-sequence
cd modelpolis-sequence
conda env create -f environment.yml
conda activate modelpolis-sequence
pip install -e .

First prediction

Malinois predicts MPRA activity in K562, HepG2 and SK-N-SH as log2 RNA/DNA fold change from an oligo of 1–200 bases.

Fetch its image from the registry, then predict. Run from the checkout with the conda environment active:

modelpolis fetch malinois
python examples/quickstart.py

fetch downloads one 4.8 GB file from Docker Hub with Apptainer and checks its sha256 against catalog.toml. On stderr, before a pull it prints Pulling <name> <version> from <reference>; after a catalogue pull it prints the image's licence (see Licences and downloading), or after a pull by rule, Licence and citation: https://hub.docker.com/r/tanlab/modelpolis-<name>. No pull means neither line. No registry login, data root or input file is needed. mp.load("malinois") fetches a missing image itself; fetch does it ahead of time. Every load prints Loading <name> <version> from <sif> on <device> on stderr before starting the worker, using the name and version from the image's spec.

The example generates one seeded random 200-base DNA sequence and prints on stdout:

activity (1, 3)
K562: -0.088692
HepG2: -0.056804
SK-N-SH: 0.084662

The shape is exact; the three prediction values can differ slightly between GPUs and runs.

The commands leave the conda environment and editable checkout installed and the image under ~/.cache/modelpolis/images/malinois/. Set MODELPOLIS_HOME before fetching to put the store elsewhere. The example prints predictions without saving an output file.

Building an image yourself

Every model can also be built from its directory, and AlphaGenome, PARM and motif ensemble score must be:

modelpolis build malinois
modelpolis verify malinois
modelpolis publish malinois

publish places the verified SIF in the local store, where mp.load finds it, and rewrites the model's entry in the checkout's catalog.toml with your SIF's checksum, marked local; rebuilds have different checksums. Nothing is pushed. A Malinois build took about 5 minutes on both an RTX PRO 6000 and an RTX 5090 with the PyTorch base image cached. With precision = "auto", the build tries bf16-mixed first; if its reference check fails, it discards that image and builds fp32, so two build logs and FAIL lines for the trial can be expected. See Adding a model.

Note: Enformer, Borzoi and AlphaGenome pass verify only on the GPU model that made their references (RTX PRO 6000 Blackwell) and fail P1 on an RTX 5090. The other six GPU models verify on both; other GPU hardware is untested. See ROADMAP, M6.T6 for the numbers. A fetched image is not verified on your GPU.

Models

One row per entry in catalog.toml. Versions identify these images, not upstream releases. Inputs are uppercase DNA (ACGTN), lengths are in bases, and output shapes are for full-length inputs, without the leading batch axis. CUDA means an NVIDIA GPU; the listed CPU alternatives may be slower. Model links include reference and publication checks.

Model Version Input length Outputs per sequence Device Paper or source
AlphaGenome (alphagenome) 2.0.0 2,048 (default) or 16,384 Human CAGE, RNA-seq, DNase, ATAC: length × 546, 667, 305, 167 tracks respectively CUDA Avsec et al., 2026
Borzoi (borzoi) 2.0.0 524,288 human: 6,144 bins × 7,611 tracks, 32 bp/bin; four-replicate mean CUDA Linder et al., 2025
ChromBPNet (chrombpnet) 1.0.0 2,114 K562 ATAC-seq profile: 1,000 probabilities; log_count: 1 value (fold 0, bias-corrected) CUDA, CPU ENCODE model ENCFF984RAF
Enformer (enformer) 2.0.0 196,608 human: 896 × 5,313; mouse: 896 × 1,643 (bins × tracks, 128 bp/bin) CUDA, CPU Avsec et al., 2021
Malinois (malinois) 1.1.0 1–200 activity: 3 MPRA values (K562, HepG2, SK-N-SH), log2 RNA/DNA fold change CUDA, CPU Gosai et al., 2024
Motif ensemble score (motif_ensemble_score) 1.0.0 ≤256; ≥50 non-N bases score, score_dedup, score_panel: 1 K562 value each CPU Supplied scoring script; unpublished
Orca (orca) 1.0.0 32,000,000 h1esc, hff: 6 scales × 250 × 250 contact-map bins (32 Mb down to 1 Mb), log fold over the distance background CUDA Zhou, 2022
PARM (parm) 1.0.0 1–600 activity: 1 K562 promoter value, log2 RPM; five-fold mean CUDA, CPU Barbadilla-Martínez et al., 2026
Puffin-D (puffin) 1.0.0 100,000 initiation: 100,000 bases × 10 strand-specific tracks, log10(signal + 1) CUDA, CPU Dudnyk et al., 2024
Sei (sei) 1.0.0 4,096 chromatin: 21,907 probabilities; sequence_class: 40 scores CUDA, CPU Chen et al., 2022

See Licences and downloading for image availability, terms and local build inputs. Padding, cropping and options are described in the model spec and the API guide.

Licences and downloading

Seven images are published at Docker Hub under tanlab, as tanlab/modelpolis-<name>. modelpolis fetch <name> or mp.load("<name>") pulls one under the terms below and checks its sha256 against catalog.toml. The other three are not distributed.

Model How to get it Code and weight licences Restrictions Citation
alphagenome Not distributed: protected weights; project policy Apache-2.0 (code), AlphaGenome model terms (weights) Non-commercial organizations and purposes only; no clinical use or circumvention of access restrictions; comply with model/output terms and supply the terms, modification notices and Notice file when distributing. Avsec et al., 2026
borzoi modelpolis fetch borzoi Apache-2.0 (code: borzoi-pytorch), CC-BY-4.0 (weights) Attribution only Linder et al., 2025
chrombpnet modelpolis fetch chrombpnet MIT (code), ENCODE data-use policy (weights: ENCFF984RAF) Attribution only Pampari et al., 2024 (preprint)
enformer modelpolis fetch enformer MIT (code: enformer-pytorch), CC-BY-4.0 (weights) Attribution only Avsec et al., 2021
malinois modelpolis fetch malinois MIT (model code and weights), AGPL-3.0 (other boda2 code) AGPL-3.0 code: retain notices and provide corresponding source; modified covered code must follow AGPL-3.0, including its network-source requirement. Gosai et al., 2024
motif_ensemble_score Not distributed: unpublished method; no redistribution grant No licence specified (supplied code and fitted weights) No licence grants permission to redistribute the supplied code or fitted weights. Supplied score, unpublished, 2026; scanner: Grant, Bailey and Noble, 2011 (FIMO)
orca modelpolis fetch orca Academic research use only (code), CC-BY-4.0 (weights) Academic research use only; no commercial use; no use or redistribution by a for-profit entity. Zhou, 2022
parm Not distributed: evaluation agreement restricts redistribution Oncode evaluation licence (code), no separate licence specified (weights) Accept the Oncode evaluation agreement; academic research purposes only; non-transferable and non-sublicensable; distribution, publication and services for consideration are restricted. Barbadilla-Martínez et al., 2026
puffin modelpolis fetch puffin Academic research use only (code), CC-BY-4.0 (weights) Academic research use only; no commercial use; no use or redistribution by a for-profit entity. Dudnyk et al., 2024
sei modelpolis fetch sei Academic and research use only (code), CC-BY-4.0 (weights) Academic and research use only. Chen et al., 2022

Pulling or loading an image means accepting its licence. Sei, Puffin and Orca are for academic research only; Puffin and Orca also prohibit use or redistribution by a for-profit entity. Malinois includes AGPL-3.0 boda2 code: its source is in the image at /opt/boda2 and at the pinned upstream revision. Please cite the model's paper when using its predictions.

AlphaGenome, PARM and motif ensemble score are not distributed. To build locally:

  • AlphaGenome: obtain the weights under their own terms, then run modelpolis build alphagenome --weights <path>; the build inputs also require the pinned XLA cache at the data root.
  • PARM: accept the linked Oncode evaluation agreement and run modelpolis build parm, which obtains the pinned code and five K562 weight files.
  • Motif ensemble score: obtain permission to use the supplied method and fitted files, follow the input instructions, then run modelpolis build motif_ensemble_score --weights <fitted-directory>. Its MEME tools have separate educational, research and non-profit terms.

Attribution accompanying the images. These notices supplement those inside the images, as agreed in the approved licence note. The following five weight sets are under CC-BY-4.0:

  • Enformer: Avsec et al./DeepMind; converted to PyTorch by EleutherAI, used with Phil Wang's enformer-pytorch port. The pinned weight files are unmodified from that conversion.
  • Borzoi: Linder et al./Calico; PyTorch conversion and port by johahi. The four pinned replicates (0, 1, 2, 3) are unmodified from those conversions; predictions are averaged across replicates.
  • Sei: Kathleen Chen and the Sei authors; Zenodo record 4906997. sei.pth and projvec_targets.npy are extracted unchanged from sei_model.tar.gz.
  • Puffin-D: Kseniia Dudnyk, Chenlai Shi and Jian Zhou; Zenodo record 7941729. puffin_D.pth is unmodified.
  • Orca: Jian Zhou; Zenodo record 6234936. Only the 16 H1-ESC/HFF state dictionaries and two distance-background arrays are extracted from resources_core.tar.gz, all unmodified; the genome and other resources are omitted.

Enformer's human/mouse track lists are unchanged from Calico's Basenji source (Apache-2.0); Borzoi's human track list is unchanged from Calico's Borzoi source (Apache-2.0). ChromBPNet's K562 fold-0 weights are from the Kundaje lab and ENCODE: ENCFF984RAF, annotation ENCSR467RSV, experiment ENCSR868FGK.

The eight PyTorch model images use the public PyTorch base with NVIDIA runtime libraries under NVIDIA's CUDA and cuDNN terms; AlphaGenome uses NVIDIA's CUDA base and motif ensemble score uses Python's base. All images contain open-source packages under their own licences, whose texts are inside each image. Modelpolis itself is under the MIT licence.

More

Metadata

Release files for modelpolis 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for modelpolis 0.1.0
File Size Uploaded Provenance Actions
modelpolis-0.1.0.tar.gz 66.5 kB With provenance Details for modelpolis-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for modelpolis 0.1.0
File Interpreter ABI Platform Actions
modelpolis-0.1.0-py3-none-any.whl Python 3 none any Details for modelpolis-0.1.0-py3-none-any.whl

Total release size: 136.2 kB

Release files / modelpolis-0.1.0.tar.gz

Download URL modelpolis-0.1.0.tar.gz
Size 66.5 kB
Tags Source
SHA-256 checksum
How to use checksums
79810d42d941ebd91018a4dcebb2481acf67a7e893866942a4a2eaf5741820ba
BLAKE2b-256 checksum
How to use checksums
80ac8f3a37c3388d6952374909d4f6dfb0901239164ea020ece3ffe47c083db7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 30, 2026.

Transparency log

Release files / modelpolis-0.1.0-py3-none-any.whl

Download URL modelpolis-0.1.0-py3-none-any.whl
Size 69.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d22e613ea419b4949d0255fd3cfc95861921171b65dd8a973f88c7c7e6efcb73
BLAKE2b-256 checksum
How to use checksums
a8b4761f36812b21e87c69efd8372fa54a29861a24907c2a3c9947d8150256f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 30, 2026.

Transparency log

Security for modelpolis 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for modelpolis-0.1.0.tar.gz

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 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page