Skip to content

Update remote BLAST timings (less frequent) - #1684

Merged
peterjc merged 2 commits into
biopython:masterfrom
peterjc:blast_delays
Jun 14, 2018
Merged

peterjc merged 2 commits into
biopython:masterfrom
peterjc:blast_delays

Conversation

@peterjc

@peterjc peterjc commented Jun 12, 2018

Copy link
Copy Markdown
Member

This pull request addresses issue #1682, although rather than relaxing our historic limits this does the opposite and is now stricter.

I hereby agree to dual licence this and any previous contributions under both the Biopython License Agreement AND the BSD 3-Clause License.

@peterjc

peterjc commented Jun 12, 2018

Copy link
Copy Markdown
Member Author

Not sure who is best to review this, maybe @chapmanb or @mdehoon?

@codecov

codecov Bot commented Jun 12, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #1684 into master will increase coverage by 0.03%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1684      +/-   ##
==========================================
+ Coverage   85.52%   85.55%   +0.03%     
==========================================
  Files         327      327              
  Lines       50028    50087      +59     
==========================================
+ Hits        42785    42853      +68     
+ Misses       7243     7234       -9
Impacted Files Coverage Δ
Bio/Blast/NCBIWWW.py 11.62% <0%> (-0.14%) ⬇️
Bio/SeqIO/__init__.py 93.1% <0%> (+8.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d580e99...d4e650b. Read the comment docs.

@chapmanb

Copy link
Copy Markdown
Member

Peter -- looks good to me. If you wanted to make it even simpler you could do a 20 second query (for quick results, based on #1682) then fall back to polling every minute. That complies with NCBI's request, makes the code simpler, and might help some with responsiveness. I'm sure the initial 2 minutes was arbitrary. Either way is cool and thanks for tackling this.

@peterjc

peterjc commented Jun 12, 2018

Copy link
Copy Markdown
Member Author

Interesting idea Brad, yes, starting with a 20s wait might overall be faster than an optimistic 10s gap which might rarely succeed first time, thus always taking at least 70s.

Suggestions from Brad Chapman. We could do some
benchmarking but there are so many variables here
including global location, time of day, caching,
etc.
@peterjc

peterjc commented Jun 14, 2018

Copy link
Copy Markdown
Member Author

The automated tests broke, this was a mistake on the master, already fixed.

@peterjc
peterjc merged commit ba613e2 into biopython:master Jun 14, 2018
@peterjc
peterjc deleted the blast_delays branch June 14, 2018 10:00
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