Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
|
|
|
|
|
|
|
|
|
| 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()
|