You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Impossibility to add email and tool in NCBIWWW qblast queries #2865
Documentation of NCBIWWW recall NCBI guidelines among which one reads :
3/ Use the URL parameter email and tool, so that the NCBI can contact you if there is a problem.
It depends, I'm rather new to biopython.
If it is just adding an email field to NCBIWWW and adding it to urlencode, it is OK. Are there other dependancies I am missing ?
I wrote it and submitted a pull request. Yet I cannot run the online test it since I cannot get an answer from NCBI blast server. It seems they are really busy, probably with covid19.
Let me say that is not unusual with qblast nowadays. Single queries go sometimes fast, but sometimes take tens of minutes. The whole qblast unittest can take 2 hours.
Activity
peterjc commentedon May 7, 2020
Confirming with current version of https://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&PAGE_TYPE=BlastDocs&DOC_TYPE=DeveloperInfo
We definitely do this in
Bio.Entrez, but it does seem to be missing inBio.Blast.NCBIWWWhttps://github.com/biopython/biopython/blob/master/Bio/Entrez/__init__.py
https://github.com/biopython/biopython/blob/master/Bio/Blast/NCBIWWW.py
It looks like I missed this while working on #1684 back in 2018, but this oversight is even older.
Probably the simplest route would be the same module level attribute approach used in our Entrez code?
@koko256 would you be interested in implementing this?
koko256 commentedon May 7, 2020
It depends, I'm rather new to biopython.
If it is just adding an email field to NCBIWWW and adding it to urlencode, it is OK. Are there other dependancies I am missing ?
peterjc commentedon May 7, 2020
That should be it - plus adding a test like this:
That was from https://github.com/biopython/biopython/blob/master/Tests/test_Entrez.py - we'd want something similar added to https://github.com/biopython/biopython/blob/master/Tests/test_NCBI_qblast.py
koko256 commentedon May 7, 2020
OK. I'll do that.
koko256 commentedon May 7, 2020
I wrote it and submitted a pull request. Yet I cannot run the online test it since I cannot get an answer from NCBI blast server. It seems they are really busy, probably with covid19.
MarkusPiotrowski commentedon May 7, 2020
The "new" Common URL API (https://ncbi.github.io/blast-cloud/dev/api.html) doesn't have these parameters, so their documentation is slightly outdated. However, I'm sure these parameters will still be valid (as it seems for all parameters of the old qblast API which are not part of the Common URL API )
peterjc commentedon May 7, 2020
Maybe we should double check with the NCBI before applying the changes (especially if live testing is proving difficult right now)?
koko256 commentedon May 11, 2020
To answer Makus's comment, I could add a test and add the TOOL et EMAIL parameters only if the query is to be sent to the ncbi servers.
koko256 commentedon May 11, 2020
I manage to have a successfull blast with the new code, but only once. I modified the code to allow a callback function to print the RID and it seems our request are not treated at the moment (taking the RID at page https://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=GetSaved&RECENT_RESULTS=on display the status "searching" until being remove after 40mn). Unfortunately, putting the email field (I even tried Entrez's api_key) changes nothing.
Edit: I have 47mn old queries. I don't know what is the policy then.
MarkusPiotrowski commentedon May 11, 2020
Let me say that is not unusual with qblast nowadays. Single queries go sometimes fast, but sometimes take tens of minutes. The whole qblast unittest can take 2 hours.
koko256 commentedon May 12, 2020
The new code passed the online tests tonight. I modified the code to conform to flake8.
peterjc commentedon Nov 18, 2022
Original issue should be resolved by #4149