From 08ee2c6585b5808229d8df24cb3e87f6b6c5dc5e Mon Sep 17 00:00:00 2001 From: sureshhewa Date: Wed, 6 Dec 2023 10:16:03 +0000 Subject: [PATCH] change uniprot batch size --- .kubernetes.yml | 1 - app/routes/pride.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.kubernetes.yml b/.kubernetes.yml index ed5a032..b58a515 100644 --- a/.kubernetes.yml +++ b/.kubernetes.yml @@ -81,4 +81,3 @@ spec: protocol: TCP targetPort: http type: ClusterIP -# type: NodePort diff --git a/app/routes/pride.py b/app/routes/pride.py index cc02e31..00bc156 100644 --- a/app/routes/pride.py +++ b/app/routes/pride.py @@ -645,7 +645,7 @@ async def update_protein_metadata(list_of_project_sub_details): async def find_uniprot_data(list_of_project_sub_details): i = 1 - batch_size = 10 + batch_size = 4 base_in_URL = "https://rest.uniprot.org/uniprotkb/search?query=accession:" fields_in_URL = "&fields=protein_name,gene_primary&size=50" seperator = "%20OR%20"