Zymo-Research / aladdin-shotgun

MIT License
0 stars 2 forks source link

AMR++ SNPverify error #95

Open zxl124 opened 4 months ago

zxl124 commented 4 months ago

For certain samples, SNPverify errors due to "out of memory", but still errors with the following error message even with increased memory.

Command error:
  concurrent.futures.process._RemoteTraceback:
  """
  Traceback (most recent call last):
    File "/usr/local/lib/python3.8/concurrent/futures/process.py", line 239, in _process_worker
      r = call_item.fn(*call_item.args, **call_item.kwargs)
    File "/usr/local/lib/python3.8/concurrent/futures/process.py", line 198, in _process_chunk
      return [fn(*args) for args in chunk]
    File "/usr/local/lib/python3.8/concurrent/futures/process.py", line 198, in <listcomp>
      return [fn(*args) for args in chunk]
    File "/opt/analysis/nextflow-bin/SNP_Verification.py", line 229, in iterate
      verify(read, gene_variant, config)
    File "/opt/analysis/nextflow-bin/SNP_Verification_Processes/__init__.py", line 49, in verify
      nTupleCheck(read, gene, mapOfInterest, seqOfInterest, config)
    File "/opt/analysis/nextflow-bin/SNP_Verification_Processes/nTupleCheck.py", line 171, in nTupleCheck
      if mt == seqOfInterest[queryIndex]:
  TypeError: string indices must be integers
  """
  The above exception was the direct cause of the following exception:
  Traceback (most recent call last):
    File "/opt/analysis/nextflow-bin/SNP_Verification.py", line 353, in <module>
      main()
    File "/opt/analysis/nextflow-bin/SNP_Verification.py", line 348, in main
      [gene_variant_dict.update(r) for r in results]
    File "/opt/analysis/nextflow-bin/SNP_Verification.py", line 348, in <listcomp>
      [gene_variant_dict.update(r) for r in results]
    File "/usr/local/lib/python3.8/concurrent/futures/process.py", line 484, in _chain_from_iterable_of_lists
      for element in iterable:
    File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 619, in result_iterator
      yield fs.pop().result()
    File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 437, in result
      return self.__get_result()
    File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result
      raise self._exception
  TypeError: string indices must be integers

Input file triggering this error at s3://zymo-filesystem/tmp/shotgun_troubleshooting/

zxl124 commented 4 months ago

deployed a temporary fix in #97