Skip to content

Add --debug logging flag (#56) and fix RGI-bwt multi-value parsing (#84) - #111

Merged
fmaguire merged 1 commit into
pha4ge:masterfrom
LeonidasSp:fix/logging-and-rgi-bwt-parsing
Aug 10, 2026
Merged

fmaguire merged 1 commit into
pha4ge:masterfrom
LeonidasSp:fix/logging-and-rgi-bwt-parsing

Conversation

@LeonidasSp

Copy link
Copy Markdown
Contributor

Issue #56: Replace print-to-stderr with Python logging module. Add --debug CLI flag that switches between clean user-facing error messages (WARNING level) and full tracebacks (DEBUG level). Add KeyError catch in input parsing with a helpful message when expected columns are missing.

Issue #84: Handle RGI-bwt output where reference_gene_length contains semicolon-separated values (e.g., '3561; 3564; 3570') and sequence_identity contains dash-separated ranges (e.g., '92.82 - 100.0'). Extracts the first numeric value instead of crashing with a ValueError.

Includes test fixture for RGI-bwt multi-value output and two new tests.

…ing (pha4ge#84)

Issue pha4ge#56: Replace print-to-stderr with Python logging module. Add --debug
CLI flag that switches between clean user-facing error messages (WARNING
level) and full tracebacks (DEBUG level). Add KeyError catch in input
parsing with a helpful message when expected columns are missing.

Issue pha4ge#84: Handle RGI-bwt output where reference_gene_length contains
semicolon-separated values (e.g., '3561; 3564; 3570') and
sequence_identity contains dash-separated ranges (e.g., '92.82 - 100.0').
Extracts the first numeric value instead of crashing with a ValueError.

Includes test fixture for RGI-bwt multi-value output and two new tests.
@fmaguire fmaguire closed this in 13ec781 Aug 10, 2026
@fmaguire fmaguire reopened this Aug 10, 2026
@fmaguire
fmaguire merged commit 8506792 into pha4ge:master Aug 10, 2026
3 of 8 checks passed
@fmaguire

Copy link
Copy Markdown
Member

Amazing, thanks so much for your contributions, they are excellent!

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.

2 participants