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

openvax / topiary / 24363658924 / 1
90%
master: 90%

Build:
DEFAULT BRANCH: master
Ran 13 Apr 2026 08:00PM UTC
Files 31
Run time 2s
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

13 Apr 2026 07:52PM UTC coverage: 87.994% (+0.7%) from 87.281%
24363658924.1

push

github

web-flow
AntigenFragment abstraction — v5.2.0 (#120)

* Add AntigenFragment abstraction — v5.2.0

Core abstraction for antigens from any origin (somatic variants,
structural variants, ERVs, CTAs, viral proteins, allergens,
autoantigens, synthetic constructs), unified through one prediction
pipeline.  Designed to be reusable by vaxrank for vaccine-window
selection, not just epitope scoring.

New module topiary/antigen.py:
- AntigenFragment dataclass (frozen, eq=False).  Free-form
  `source_type` tag (recommended vocabulary documented but not
  enforced); `target_intervals: list[tuple[int,int]] | None` for
  disjoint regions (tandem-duplication breakpoints, ERV non-self
  regions, etc.); `reference_sequence` + `germline_sequence` with
  germline-precedence `effective_baseline`.  Identity by
  `fragment_id`: human-readable prefix + SHA-1 hash (8 hex).
  Convenience constructors `from_variant` (handles in-frame vs
  frameshift target semantics) and `from_junction` (fusion / splice
  / cryptic-exon variants).  Stdlib-only serialization
  `to_dict`/`from_dict`/`to_json`/`from_json`; compact `__str__`.

New module topiary/io_antigen.py:
- `read_antigens` / `write_antigens` / `iter_antigens` TSV IO.
  JSON-encoded columns for `target_intervals` and `annotations`.
  Unknown columns rejected to catch typos; use annotations dict for
  tool-specific extensions.

TopiaryPredictor.predict_from_antigens(fragments):
- Scans each fragment's sequence, propagates fragment-level fields
  (source_type, variant, effect, effect_type, gene, gene_id,
  transcript_id, gene_expression, transcript_expression, plus every
  annotation key) onto prediction rows.
- Threads `fragment_id` through so downstream code (vaxrank) can
  group peptides back to their source.
- Emits `overlaps_target` (bool / NaN) computed from each peptide's
  position vs. the fragment's target_intervals.
- Backwards-compat `contains_mutant_residues` for source types
  prefixed with `variant`.
- `wt_peptide` + `wt_pep... (continued)

2983 of 3390 relevant lines covered (87.99%)

0.88 hits per line

Source Files on job python-3.10 - 24363658924.1
  • Tree
  • List 31
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 24363658924
  • 8b299f15 on github
  • Prev Job for on master (#24329770744.3)
  • Next Job for on master (#24409795081.1)
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