bokulich-lab / q2-fondue

Functions for reproducibly Obtaining and Normalizing Data re-Used from Elsewhere
BSD 3-Clause "New" or "Revised" License
20 stars 6 forks source link

get-metadata IndexError & hangs #35

Closed adamovanja closed 3 years ago

adamovanja commented 3 years ago

Running get-metadata (as well as get-all) with project ID PRJEB14529, PRJEB23239 or PRJEB10914 prints error and hangs indefinitely.

Steps to reproduce:

Expected behaviour: Command returns and metadata.qza artifact is created.

Actual behaviour: Command prints below error and hangs indefinitely:

Exception in thread Thread-10:
Traceback (most recent call last):
  File "/Users/anjaadamov/opt/anaconda3/envs/fondue-new/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/Users/anjaadamov/opt/anaconda3/envs/fondue-new/lib/python3.8/site-packages/entrezpy/requester/threadedrequest.py", line 48, in run
    self.run_one_request(request, analyzer)
  File "/Users/anjaadamov/opt/anaconda3/envs/fondue-new/lib/python3.8/site-packages/entrezpy/requester/threadedrequest.py", line 71, in run_one_request
    analyzer.parse(response, request)
  File "/Users/anjaadamov/Documents/projects/05_q2fondue/q2-fondue/q2_fondue/entrezpy_clients/_efetch.py", line 513, in parse
    self.analyze_result(response, request)
  File "/Users/anjaadamov/Documents/projects/05_q2fondue/q2-fondue/q2_fondue/entrezpy_clients/_efetch.py", line 507, in analyze_result
    self.result.add_metadata(response, request.uids)
  File "/Users/anjaadamov/Documents/projects/05_q2fondue/q2-fondue/q2_fondue/entrezpy_clients/_efetch.py", line 476, in add_metadata
    parsed_results[i], desired_id=uid)
IndexError: list index out of range