Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get-ena-submission-list cronjob failing due to curated sequences #3328

Open
anna-parker opened this issue Dec 2, 2024 · 0 comments
Open

Comments

@anna-parker
Copy link
Contributor

anna-parker commented Dec 2, 2024

I added a check when searching for sequences to submit which warns us if a sequence has ena specific metadata fields and was not submitted to ENA by pathoplexus and was not uploaded by the insdc_ingset_user however there appears to have been an issue with sending my error message:

00:00:24     INFO (get_ena_submission_list.py: 114) - Getting released sequences for organism: ebola-sudan
--- Logging error ---
Traceback (most recent call last):
  File "/opt/conda/lib/python3.12/logging/__init__.py", line 1160, in emit
    msg = self.format(record)
          ^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.12/logging/__init__.py", line 999, in format
    return fmt.format(record)
           ^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.12/logging/__init__.py", line 703, in format
    record.message = record.getMessage()
                     ^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.12/logging/__init__.py", line 392, in getMessage
    msg = msg % self.args
          ~~~~^~~~~~~~~~~
TypeError: not all arguments converted during string formatting
Call stack:
  File "/package/scripts/get_ena_submission_list.py", line 129, in <module>
    get_ena_submission_list()
  File "/opt/conda/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/opt/conda/lib/python3.12/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/opt/conda/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/conda/lib/python3.12/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/package/scripts/get_ena_submission_list.py", line 117, in get_ena_submission_list
    submittable_entries = filter_for_submission(config, db_config, released_entries, organism)
  File "/package/scripts/get_ena_submission_list.py", line 45, in filter_for_submission
    logging.warning(
Message: 'Found sequence: PP_00000UB.4 with ena-specific-metadata fields and not submitted by us '
Arguments: ('or insdc_ingest_user. Potential user error: discarding sequence.',)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant