Commit bfeb0ce1 authored by Mikaël Salson's avatar Mikaël Salson Committed by Mathieu Giraud Use NCBI key if available

Allow to reach up to 10 rq/sec instead of 3.
See here for having one :
parent 3c6db6fc
......@@ -2,9 +2,11 @@
import urllib
import sys
import re
import os
API_EUTILS += 'api_key='+os.environ['NCBI_KEY']+'&' if 'NCBI_KEY' in os.environ else ''
API_NUCCORE_ID = API_EUTILS + 'db=nuccore&rettype=fasta&retmode=text' + '&id=%s'
API_NUCCORE_ID_FROM_TO = API_EUTILS + 'db=nuccore&rettype=fasta&retmode=text' + '&id=%s' + '&from=%s&to=%s'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment