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

openvax / vaxrank / 24700368155
96%
master: 88%

Build:
Build:
LAST BUILD BRANCH: v3.1.8
DEFAULT BRANCH: master
Ran 21 Apr 2026 02:22AM 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
24700368155

push

github

web-flow
Migrate EpitopePrediction, MutantProteinFragment, VaccinePeptide to DataclassSerializable (#232)

* Migrate EpitopePrediction, MutantProteinFragment, VaccinePeptide to DataclassSerializable

Completes the Serializable → @dataclass migration started in 2.5.0 for
PatientInfo and VaxrankResults. All three classes now use
`serializable.DataclassSerializable`; the wire JSON format is unchanged
(to_dict keys match the previous init-arg names), so persisted results
round-trip across the change.

- EpitopePrediction: `length` moved from init-arg-derived attribute to
  a @property. Legacy JSON that still carries `length` is handled via
  `_SERIALIZABLE_KEYWORD_ALIASES = {"length": None}` on the mixin,
  replacing the manual key-drop in the old from_dict.
- MutantProteinFragment: straight conversion — no init logic besides
  attribute assignment. Factory classmethods and computed @property
  methods carry over unchanged.
- VaccinePeptide: filtering, sorting, and score-derivation moved from
  __init__ to __post_init__. Derived attributes (mutant/wildtype epitope
  lists, scores, manufacturability_scores) declared as
  `field(init=False, repr=False)` so they don't appear in the generated
  __init__ signature or the default repr. Custom to_dict retained (it
  emits the recombined epitope_predictions list and conditionally omits
  default-valued fields).

Adds tests/test_serialization_roundtrip.py with JSON, pickle, and
dict-shape coverage — including a legacy-JSON-with-length test for
EpitopePrediction and invariants on VaccinePeptide's __post_init__
(epitope split, mode validation, rules tuple coercion, derived fields
absent from to_dict).

No behavioral changes. 306 passed / 1 skipped locally.

* Add real-object roundtrip tests for MutantProteinFragment + VaccinePeptide

Closes the two test-coverage gaps flagged on PR #232 review. Both now
use a real ``varcode.Variant`` (constructed with ``ensembl=None`` — no
Ensembl DB required) and an empty list of supporting ... (continued)
Source Files on build 24700368155
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #24700368155
  • fa46eaab on github
  • Prev Build on v2.5.0 (#24683976091)
  • Next Build on main (#24700499899)
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