Repository navigation
v2.0.0
A ground-up modernization of HLA-PepClust into a clean, pip install-able tool, focused on its core science: cluster-to-allele motif matching, shipped as a fast CLI with a standalone interactive HTML report.
Install
pip install hla-pepclust
clust-search fetch -s human # download the reference (human | mouse | all)
clust-search search <gibbscluster_dir> -s human -o results/Highlights
- Standard packaging —
src/layout,pyproject.toml(hatchling), console entry pointclust-search, published to PyPI. - Class I + II, human & mouse — one compressed Parquet reference per species, built from NetMHCpan-4.2 / NetMHCIIpan-4.3.
- Fetch-on-demand reference —
clust-search fetchpulls the reference from therefdata-2025release and verifies it by SHA-256 (nothing huge committed to git). - Fast numba engine — JIT correlation search with bounded thread pools, so it stays a good citizen on shared servers.
- Standalone HTML report — responsive, logos embedded as data-URIs, opens with a double-click; Seq2Logo reference motifs included.
- Rich CLI — banner, coloured staged logs, results table.
- Publication-ready names — Immunolyser-style allele labels (
HLA_B39124,H2_Kb) in the report and CSV; the CSV keeps a rawformattedkey for downstream joins.
Commands
| command | purpose |
|---|---|
search |
correlate GibbsCluster matrices against the reference -> CSV + HTML report |
fetch |
download the prebuilt reference Parquet(s) |
export-logos |
dump embedded reference logos to PNG (all, or a chosen allotype list) |
build-ref / build-db |
(dev) rebuild the reference from NetMHCpan packs |
Breaking changes
- The Flask/Celery web application has been removed — this is now CLI + HTML report only.
- The reference is no longer bundled; run
clust-search fetchonce after install. - CLI invocation is now
clust-search search ...(see README /--help).
Notes
- Reference data lives on the Reference data 2025 release and is SHA-256 verified.
- Reference motifs are derived from NetMHCpan-4.2 / NetMHCIIpan-4.3 and rendered with Seq2Logo-2.1 (DTU Health Tech) for academic/research use.
- Tested on real human and mouse immunopeptidomics datasets; 226 automated tests, CI on Linux.