Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blast.NCBIWWW.qblast should return the rid of the submitted query to the caller #4721

Open
kamurani opened this issue May 6, 2024 · 2 comments

Comments

@kamurani
Copy link
Contributor

kamurani commented May 6, 2024

When using qblast to automate blast searches on NCBI, the RID of the submitted request is not returned to the user. The RID is also not accessible anywhere within the xml-formatted output.

The RID may be useful for later retrieval from NCBI, using the URL https://blast.ncbi.nlm.nih.gov/Blast.cgi?RID={{rid}}&CMD=Get, especially for submitted jobs that take a while to perform, and where the user may wish to revisit the results in the more accessible webpage view.

Within qblast, the RID is already accessed using

rid, rtoe = _parse_qblast_ref_page(handle)

At the moment, I am using a modified version of the qblast function that returns a dictionary of values, as a workaround:

https://github.com/kamurani/biopython/blob/c58c401b7a94bf06e13fadc4f41d5076dd1c78f4/Bio/Blast/NCBIWWW.py#L302-L307

kamurani@c58c401

Is this something that I could modify further to be a useful feature? Would appreciate any advice, and if so happy to make a PR.

@peterjc
Copy link
Member

peterjc commented May 6, 2024

Duplicate of #4263. Your suggested change is an API break (so not acceptable), see also the proposal on #3342 was backward compatible which could be worth reconsidering.

@mdehoon
Copy link
Contributor

mdehoon commented May 6, 2024

@kamurani Have a look at the new qblast function in Bio/Blast/__init__.py. It contains a new qblast function that solves some of the issues of the old qblast function in Bio/Blast/NCBIWWW.py. As it has not yet been released, its API can still be changed.

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

No branches or pull requests

3 participants