Skip to content

FIX: correctly set the DB param before the EFetch request#252

Merged
mikerobeson merged 1 commit into
bokulich-lab:masterfrom
misialq:get-proteins-fix
Feb 19, 2026
Merged

FIX: correctly set the DB param before the EFetch request#252
mikerobeson merged 1 commit into
bokulich-lab:masterfrom
misialq:get-proteins-fix

Conversation

@misialq

@misialq misialq commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

When using query to fetch protein sequences we would make two requests: esearch + efetch. The DB for the first was set correctly, while for the second one it was hardcoded to "nuccore" (which is incorrect for fetching protein sequences). The code was updated to dynamically set the DB for the second request, depending on the DB used for the first request.

Note: I'm not sure why this worked before but perhaps NCBI just started enforcing passing the correct DB in the linked EFetch request...

@misialq misialq requested a review from mikerobeson February 19, 2026 11:09
@mikerobeson

Copy link
Copy Markdown
Collaborator

Thank you for doing this @misialq! I was able to successfully run the command as outlined from this user's post. All tests also passed. I'll go ahead and merge. 🙏

@mikerobeson mikerobeson merged commit 72292cd into bokulich-lab:master Feb 19, 2026
4 checks passed
@misialq misialq deleted the get-proteins-fix branch February 19, 2026 16:08
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