• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openvax / vaxrank / 25406891687
96%
master: 88%

Build:
Build:
LAST BUILD BRANCH: v3.1.8
DEFAULT BRANCH: master
Ran 05 May 2026 11:11PM UTC
Jobs 0
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
25406891687

push

github

web-flow
ProcessingPrediction split (#272) (#277)

Phase A of the architectural cleanup. Pepsickle results now have
their own record type, parallel to EpitopePrediction.

The two prediction kinds live on different axes:

- ``EpitopePrediction`` is a **(peptide, allele) MHC-binding** score
  (``mhctools.BindingPredictor`` output — pMHC affinity / presentation /
  stability).
- ``ProcessingPrediction`` is a **(peptide, source_sequence)
  proteasomal-cleavage** score (``mhctools.ProcessingPredictor``
  output — no allele axis).

Pre-2.22 vaxrank annotated EpitopePrediction objects in place with
``pepsickle_*`` fields. That conflated the two and made it awkward
to add a second per-position cleavage predictor (NetChop, PAProC,
…) without colliding.

This commit:

- Adds ``vaxrank/processing_prediction.py`` with
  ``ProcessingPrediction`` (frozen dataclass): peptide_sequence,
  source_sequence, predictor_name, predictor_version,
  c_term_cleavage_prob, max_internal_cut_prob, processing_score.
  ``key()`` returns the join key ``(peptide, source, predictor_name)``
  used by report writers at render time.
- Modifies ``annotate_processing`` to also build a
  ``{key: ProcessingPrediction}`` map alongside the existing
  in-place mutation, and return ``(n_annotated, map)`` (was just
  ``int``). The map is the post-2.22 canonical record.
- Keeps the legacy in-place mutation for one deprecation cycle so
  existing report writers continue to render. New downstream code
  consumes the map.

Tests:

- New ``test_annotate_processing_returns_processing_prediction_map``
  pins the map shape + content + cross-check against the in-place
  mutation.
- Existing tests updated to unpack the new ``(n, map)`` tuple.

Phase B (future PR): drop the in-place mutation entirely; update
report writers to look up ProcessingPrediction by key at render
time. Until then, ``EpitopePrediction.pepsickle_*`` fields are
deprecated and read-only mirrors of the canonical record.

Bump to 2.22.0.
Source Files on build 25406891687
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #25406891687
  • 4774a726 on github
  • Prev Build on v2.21.0 (#25405832350)
  • Next Build on main (#25409595351)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc