jlgaralc commited on
Commit
11685aa
·
verified ·
1 Parent(s): 82e9c6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -70,12 +70,16 @@ def run_blast(arguments_string: str) -> str:
70
 
71
  api_url = 'https://blast.ncbi.nlm.nih.gov/blast/Blast.cgi'
72
  payload = {
73
- 'CMD': 'Put',
74
- 'PROGRAM': program,
75
- 'DATABASE': database,
76
- 'QUERY': query_sequence # Let requests handle the encoding
 
 
 
77
  }
78
 
 
79
  try:
80
  response = requests.post(api_url, data=payload)
81
  response.raise_for_status()
 
70
 
71
  api_url = 'https://blast.ncbi.nlm.nih.gov/blast/Blast.cgi'
72
  payload = {
73
+ 'CMD': 'Put',
74
+ 'PROGRAM': program,
75
+ 'DATABASE': database,
76
+ 'QUERY': query_sequence,
77
+ 'HITLIST_SIZE': '5', # Return only the top 5 hits
78
+ 'DESCRIPTIONS': '5', # Print only 5 descriptions
79
+ 'ALIGNMENTS': '5'
80
  }
81
 
82
+
83
  try:
84
  response = requests.post(api_url, data=payload)
85
  response.raise_for_status()