Skip to content

Fix NetMHCpan version sniffing and NetMHCIIpan parsing errors - #182

Merged
iskandr merged 2 commits into
masterfrom
fix-netmhc-parsing-bugs
Apr 9, 2026
Merged

Fix NetMHCpan version sniffing and NetMHCIIpan parsing errors#182
iskandr merged 2 commits into
masterfrom
fix-netmhc-parsing-bugs

Conversation

@iskandr

@iskandr iskandr commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • Added 4 new tests for NetMHCIIpan parsing with BindLevel and NA values
  • All 205 existing tests pass
  • Lint clean

iskandr added 2 commits April 8, 2026 20:52
- Use os.devnull instead of bogus filename for version detection so
  netMHCpan doesn't error with "Unable to open(r) file" (fixes #170)
- Use subprocess.run instead of check_output so non-zero exit from
  version sniffing doesn't raise CalledProcessError
- Add ignored_value_indices to parse_netmhciipan43_stdout and
  parse_netmhciipan4_stdout to strip optional BindLevel indicators
  (<=SB, <=WB) that only appear on some rows (fixes #169)
- Handle non-numeric values (e.g. NA) in score/rank/ic50 float
  conversion via _try_float helper, returning NaN instead of crashing
@iskandr
iskandr merged commit fa91939 into master Apr 9, 2026
4 checks passed
@iskandr
iskandr deleted the fix-netmhc-parsing-bugs branch April 9, 2026 02:11
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.

Unable to open(r) file when running netMHCpan --version _MHCTOOLS_VERSION_SNIFFING NetMHCIIpan4.3 tests failing

1 participant