feat(blast): add taxonomy/organism filtering via taxid and entrez_query (#71)#228
Draft
Elarwei001 wants to merge 2 commits into
Draft
feat(blast): add taxonomy/organism filtering via taxid and entrez_query (#71)#228Elarwei001 wants to merge 2 commits into
Elarwei001 wants to merge 2 commits into
Conversation
…ry (scverse#71) Add `taxid` and `entrez_query` arguments to `gget blast` (Python API and CLI) so searches can be restricted by organism, mirroring the "Organism" field of the NCBI web BLAST app. `taxid` accepts a single ID or a list (combined with OR as `txid<ID>[ORGN]`); `entrez_query` passes a raw NCBI Entrez query through to `ENTREZ_QUERY`. When both are given they are AND-combined. Both default to None, preserving backward compatibility. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
for more information, see https://pre-commit.ci
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #228 +/- ##
==========================================
+ Coverage 56.14% 56.69% +0.55%
==========================================
Files 29 29
Lines 9244 9263 +19
==========================================
+ Hits 5190 5252 +62
+ Misses 4054 4011 -43 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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 #71
Summary
gget blast: Added taxonomy/organism filtering via the newtaxidandentrez_queryarguments (CLI:--taxid/-taxand--entrez_query/-eq), mirroring the "Organism" field of the NCBI web BLAST app (resolves issue 71).Testing
Unit tests added/extended in
tests/test_blast.pywith fixture entries intests/fixtures/test_blast.json; run with pytest.