Skip to content

Commit

Permalink
Specify the NCBI key to enable more request to NCBI API
Browse files Browse the repository at this point in the history
  • Loading branch information
tcezard committed Dec 6, 2024
1 parent 60ff173 commit 1183b49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eva_submission/eload_ingestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def get_db_name(self, assembly_accession):
"""
# query EVAPRO for db name based on taxonomy id and accession
with self.metadata_connection_handle as conn:
db_name = resolve_variant_warehouse_db_name(conn, assembly_accession, self.taxonomy)
db_name = resolve_variant_warehouse_db_name(conn, assembly_accession, self.taxonomy, ncbi_api_key=cfg.get('eutils_api_key'))
if not db_name:
raise ValueError(f'Database name for taxid:{self.taxonomy} and assembly {assembly_accession} '
f'could not be retrieved or constructed')
Expand Down

0 comments on commit 1183b49

Please sign in to comment.