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

openvax / topiary / 24422940523
88%
master: 90%

Build:
Build:
LAST BUILD BRANCH: v5.16.2
DEFAULT BRANCH: master
Ran 14 Apr 2026 09:13PM UTC
Jobs 3
Files 32
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

14 Apr 2026 09:06PM UTC coverage: 88.11% (-0.2%) from 88.298%
24422940523

Pull #132

github

iskandr
Add NetMHC-family cache loaders (part of #128)

Five new classmethods on CachedPredictor that adapt mhctools'
existing stdout parsers into cache-shaped DataFrames — no new
parsing code, just a thin wrapper layer:

- from_netmhcpan_stdout(path, mode=...) — wraps
  mhctools.parsing.parse_netmhcpan_stdout, which auto-detects
  NetMHCpan 2.8 / 3 / 4 / 4.1.  mode selects between
  binding_affinity (default) and elution_score on 4+.
- from_netmhc_stdout(path, version=...) — classic NetMHC (3 / 4 /
  4.1 via the version-specific parse_netmhc{3,4,41}_stdout).
- from_netmhcpan_cons_stdout(path) — NetMHCcons.
- from_netmhciipan_stdout(path, version=..., mode=...) —
  NetMHCIIpan legacy / 4 / 4.3.  mode selects elution_score
  (default) or binding_affinity.
- from_netmhcstabpan_stdout(path) — NetMHCstabpan (pMHC stability).

Shared helpers at module level:
- _read_text(path): file → string
- _bindings_to_dataframe(preds): list[BindingPrediction] → DataFrame
  with cache columns (peptide, allele, peptide_length, score,
  affinity, percentile_rank, value).
- _version_from_header(text): parses "NetMHCpan version 4.1b" etc.
  out of the stdout preamble.  predictor_version is auto-composed
  from that when the caller doesn't supply one.

Only caveat: mhctools parses stdout captures, not NetMHC's -xlsfile
tab-delimited output.  Documented in docs/cached.md; separate issue
if someone needs .xls support.

6 new tests with embedded sample stdout snippets (no large fixture
files in the repo).  Full suite 1099 passing (up from 1093), lint
clean, mkdocs --strict clean.
Pull Request #132: Add NetMHC-family cache loaders (part of #128)

46 of 60 new or added lines in 1 file covered. (76.67%)

3268 of 3709 relevant lines covered (88.11%)

2.64 hits per line

Uncovered Changes

Lines Coverage ∆ File
14
87.88
-2.84% topiary/cached.py
Jobs
ID Job ID Ran Files Coverage
1 python-3.12 - 24422940523.1 14 Apr 2026 09:13PM UTC 32
88.11
GitHub Action Run
2 python-3.11 - 24422940523.2 14 Apr 2026 09:13PM UTC 32
88.11
GitHub Action Run
3 python-3.10 - 24422940523.3 14 Apr 2026 09:14PM UTC 32
88.11
GitHub Action Run
Source Files on build 24422940523
  • Tree
  • List 32
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24422940523
  • Pull Request #132
  • PR Base - master (#24421423053)
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