feat(blast): expose NCBI web BLAST algorithm parameters (#58)#229
Draft
Elarwei001 wants to merge 3 commits into
Draft
feat(blast): expose NCBI web BLAST algorithm parameters (#58)#229Elarwei001 wants to merge 3 commits into
Elarwei001 wants to merge 3 commits into
Conversation
Add word_size, gapcosts, matrix, nucl_reward, nucl_penalty, and perc_identity arguments to `gget blast` (Python API and CLI) so the tool more fully matches the "Algorithm parameters" panel of the NCBI web BLAST app. Values are validated and forwarded to the BLAST URL API (WORD_SIZE, GAPCOSTS, MATRIX, NUCL_REWARD, NUCL_PENALTY, PERC_IDENT). All default to None (server default), preserving existing behavior. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
for more information, see https://pre-commit.ci
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #229 +/- ##
==========================================
+ Coverage 56.14% 56.67% +0.53%
==========================================
Files 29 29
Lines 9244 9275 +31
==========================================
+ Hits 5190 5257 +67
+ Misses 4054 4018 -36 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Add unit tests for the invalid nucl_reward and nucl_penalty branches of _build_algorithm_params so the helper is fully covered network-free. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Resolves #58
Summary
gget blast: Exposed the NCBI web BLAST "Algorithm parameters" sogget blastmore fully matches the web app (resolves issue 58). New argumentsword_size,gapcosts,matrix,nucl_reward,nucl_penalty, andperc_identity(CLI:-ws/--word_size,-gc/--gapcosts,-mx/--matrix,-nr/--nucl_reward,-np/--nucl_penalty,-pi/--perc_identity) are validated and forwarded to the BLAST URL API (WORD_SIZE,GAPCOSTS,MATRIX,NUCL_REWARD,NUCL_PENALTY,PERC_IDENT). All default toNone(server default), so existing behavior is unchanged.Testing
Unit tests added/extended in
tests/test_blast.pywith fixture entries intests/fixtures/test_blast.json; run with pytest.