Closed
Conversation
topiary.self_proteome imports from Bio.Align.substitution_matrices for BLOSUM62 scoring (added in v5.9.0), but biopython was never declared as a dependency — CI on any PR that triggers the self_proteome tests fails with ModuleNotFoundError: No module named 'Bio'.
Contributor
Author
|
Closing — alternative approach coming (biopython should not be a dep). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
`topiary.self_proteome` imports `from Bio.Align.substitution_matrices import load` for BLOSUM62 scoring (added in v5.9.0, #138), but `biopython` was never added to `requirements.txt`. As a result, `pip install -e .` in CI does not pull it in, and any PR that exercises the `test_self_proteome.py` suite fails with:
```
FAILED tests/test_self_proteome.py::TestNearest::test_exact_match_distance_zero - ModuleNotFoundError: No module named 'Bio'
... (17 failures)
```
This is blocking CI on PRs #141, #142, #143, #144.
Change
Add `biopython>=1.80` to `requirements.txt`. The 1.80 floor matches the `substitution_matrices` API surface and is conservative — any modern install will satisfy it.
No version bump; this is a declared-dependency correction, not a behavior change.
Test plan