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

openvax / topiary / 33021538992
94%

Build:
DEFAULT BRANCH: master
Ran 26 Aug 2026 11:05PM UTC
Jobs 3
Files 35
Run time 1min
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

26 Aug 2026 10:58PM UTC coverage: 90.424% (+0.2%) from 90.202%
33021538992

push

github

web-flow
Add peptide_view() for per-mhc_dependence peptide-level projection (#181)

peptide_view(node) reduces a kind to one value per peptide, dispatching on
the predictor's allele mode: best-across-alleles for single_allele kinds, a
direct read for haplotype and allele-free ones. Closes #169.

The allele-free case could not be expressed before. An antigen-processing
row carries no allele, so it forms its own group and every per-allele group
reads NaN; producers duplicated the row across the patient's alleles to work
around it. With peptide_view the frame keeps one canonical row and the value
is broadcast at evaluation time, so
"affinity <= 500 & peptide_view(processing.score) >= 0.5" works on an
unduplicated frame.

Dispatch prefers EvalContext(kind_support=...) - the only thing that can tell
haplotype from single_allele, since both put a real allele on every row - and
otherwise reads what the rows show, which is what the DSL already assumed.
Inconsistent input raises rather than picking a row silently.

Parses in string form, so it works in --filter-by / --sort-by and in consumer
config files, and round-trips through to_expr_string().

Also fixes a bug that predates this node: apply_sort inferred its "auto"
direction only from a bare Field, and BestAlleleField isn't one, so
apply_sort(df, [Affinity.best_value]) ranked the worst binders first - 5000 nM
above 50 nM - while the bare field ranked correctly. Direction is now read
through the wrappers that reduce a field to one value per peptide.

peptide_view refuses what it cannot honor: a best_*_allele field, a scoped
wt./shuffled./self. field inside a filter (the wrapper was a hole in that
guard, reachable from --filter-by), an unknown mhc_dependence value, and a
grouping with no peptide dimension. Peptide-level values are compared with a
float tolerance so a CSV round-trip and an in-process computation agree.

Claude-Session: https://claude.ai/code/session_01BAUqjqDDPXaTdtUDJqapJG

130 of 134 new or added lines in 4 files covered. (97.01%)

5156 of 5702 relevant lines covered (90.42%)

2.71 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
91.09
0.97% topiary/ranking/nodes.py
Jobs
ID Job ID Ran Files Coverage
1 python-3.11 - 33021538992.1 26 Aug 2026 11:05PM UTC 35
90.42
GitHub Action Run
2 python-3.12 - 33021538992.2 26 Aug 2026 11:05PM UTC 35
90.42
GitHub Action Run
3 python-3.10 - 33021538992.3 26 Aug 2026 11:05PM UTC 35
90.42
GitHub Action Run
Source Files on build 33021538992
  • Tree
  • List 35
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #33021538992
  • 58747bc1 on github
  • Prev Build on v5.17.1 (#32994295656)
  • Next Build on master (#33027815713)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc