Skip to content

Add auto-detecting parser for NetMHCpan output#176

Merged
iskandr merged 2 commits into
masterfrom
auto-detect-netmhcpan-format
Apr 6, 2026
Merged

Add auto-detecting parser for NetMHCpan output#176
iskandr merged 2 commits into
masterfrom
auto-detect-netmhcpan-format

Conversation

@iskandr
Copy link
Copy Markdown
Contributor

@iskandr iskandr commented Apr 6, 2026

Summary

  • Add parse_netmhcpan_stdout() that reads the header line between dash separators to auto-detect the column layout, eliminating the need for callers to pick a version-specific parser
  • Supports NetMHCpan 2.8, 3.0, 4.0 (BA and EL modes), and 4.1 (BA and EL modes)
  • Logs the detected version/mode via logging.info
  • Bump version to 2.2.0

Test plan

  • 6 new tests covering auto-detection for each supported version/mode
  • All 49 existing tests still pass
  • Passes pylint lint check

iskandr added 2 commits April 6, 2026 16:42
Add parse_netmhcpan_stdout() that reads the header line to detect the
column layout instead of requiring the caller to pick a version-specific
parser. Supports NetMHCpan 2.8, 3.0, 4.0 (BA and EL), and 4.1 (BA and
EL). Logs the detected version via the standard logging module.
@iskandr iskandr merged commit 940bc73 into master Apr 6, 2026
4 checks passed
@iskandr iskandr deleted the auto-detect-netmhcpan-format branch April 6, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant