Skip to content

feat(blast): add taxonomy/organism filtering via taxid and entrez_query (#71)#228

Draft
Elarwei001 wants to merge 2 commits into
scverse:devfrom
Elarwei001:feature/blast-taxonomy-71
Draft

feat(blast): add taxonomy/organism filtering via taxid and entrez_query (#71)#228
Elarwei001 wants to merge 2 commits into
scverse:devfrom
Elarwei001:feature/blast-taxonomy-71

Conversation

@Elarwei001

Copy link
Copy Markdown
Contributor

Resolves #71

Summary

gget blast: Added taxonomy/organism filtering via the new taxid and entrez_query arguments (CLI: --taxid/-tax and --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.py with fixture entries in tests/fixtures/test_blast.json; run with pytest.

Elarwei001 and others added 2 commits June 24, 2026 22:29
…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]>
@codecov-commenter

codecov-commenter commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.73684% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 56.69%. Comparing base (5cf607f) to head (cad0b69).
⚠️ Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
gget/gget_blast.py 94.73% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Elarwei001 Elarwei001 marked this pull request as draft June 25, 2026 03:44
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