Skip to content

Commit 92435b4

Browse files
committed
updated query
1 parent bb38d8c commit 92435b4

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/uniprot2s3/main.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,16 @@ def fetch_uniprot_data(organism_id):
184184
def fetch_uniprot_reference_proteome_data() -> list:
185185
"""Single URL request for Uniprot proteome data."""
186186
file_path = Path(RAW_DATA_DIR) / f"{PROTEOMES_FILENAME}.{UNIPROT_DESIRED_FORMAT}"
187-
all_proteomes_query = "%28*%29"
188-
# filtered_proteomes_query = (
189-
# "((superkingdom:Bacteria)+OR+(superkingdom:Archaea))+AND+((proteome_type:1)+OR+(proteome_type:2))"
190-
# )
187+
# all_proteomes_query = "%28*%29"
188+
filtered_proteomes_query = (
189+
"((superkingdom:Bacteria)+OR+(superkingdom:Archaea))+AND+((proteome_type:1)+OR+(proteome_type:2))"
190+
)
191+
import pdb; pdb.set_trace()
191192

192193
url = construct_query_url(
193194
UNIPROT_REFERENCE_PROTEOMES_URL,
194195
UNIPROT_DESIRED_FORMAT,
195-
all_proteomes_query,
196+
filtered_proteomes_query,
196197
UNIPROT_REFERENCE_PROTEOMES_FIELDS,
197198
UNIPROT_SIZE,
198199
)
@@ -311,7 +312,7 @@ def run_uniprot_api_parallel(
311312
# If show_status is True, use process_map to display a progress bar
312313
if show_status:
313314
process_map(
314-
fetch_func, taxa_id_common_with_proteomes_list, max_workers=workers
315+
fetch_func, taxa_id_common_with_proteomes_list, max_workers=workers, chunksize=CHUNK_SIZE_PER_WORKER
315316
)
316317
else:
317318
# Set up a pool of worker processes without a progress bar

0 commit comments

Comments
 (0)