Repository navigation
Add local and online PfamScan support - #12
Conversation
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
Fix Windows temporary-file handling in the local scanner; add the missing Pfam API documentation.
Review effort: Lite
Findings: None
What changed in this PR
Adds local and online PfamScan adapters for the v2 domain-scanning workflow.
Changes:
- Added local PfamScan execution and parsing.
- Added online submission, polling, and JSON result handling.
- Added focused local and online scanner tests.
| File | Summary |
|---|---|
tests/v2/test_online_pfam.py |
Tests online scanning behavior. |
tests/v2/test_local_pfam.py |
Tests local scanning behavior. |
src/lverage/pfam.py |
Implements both scanners. Needs Windows-safe temporary-file handling and API documentation updates. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Awesome. So I looked at the copilot review and agreed with what it said after I reviewed. So the problem was that Windows is a pain with temporary files and can fail to run a process on a file that is currently open/being written to. So I applied a patch that makes sure the file is closed and applied a try and catch statement around just in case. |
|
@ShinThomas If possible re-run the code and its tests to make sure they work fine with my adjustment. Then comment on the PR again and I'll look at it. |
|
Retested after the temporary-file handling patch.
|
Summary
Adds local and online PfamScan support to the refactor-v2 domain scanning workflow.
Changes
Local PfamScan
LocalPfamScannerpfam_scan.plDomainRecordOnline PfamScan
OnlinePfamScannerDomainRecordTests
Added focused test modules:
tests/v2/test_local_pfam.pytests/v2/test_online_pfam.pyFocused local and online Pfam tests pass, and the full v2 test suite passes.
Remaining work