Skip to content

[MolNetEnhancer] Expects a zip file #64

@Sam-Will

Description

@Sam-Will

I've been trying to use MolNetEnhancer on GNPS2 but it seems to fail as it expects a zip file

I tried the workflow with both a feature based and classical network gnps_id but both failed:
Feature_based_taskID: d2f4cabe47bb4299a35ac056e767fda5
Classical_task_ID: e33c34466bf64730a4a4d52cd43b9738

Error message below:

Thanks for all the hard work!

[04/f2d800] process > processData [100%] 1 of 1, failed: 1
Error executing process > 'processData'

Caused by:
  Process `processData` terminated with an error exit status (1)

Command executed:

  mkdir output_network
  python /app/workflows_user/molnetenhancer_nextflow_workflow/bin/molnetenhancer.py     b0f7e7442fbe4e6582a6ddd1bf520755     output_network     --nap None     --derep None     --varquest None     --ms2lda None

Command exit status:
  1

Command output:
  GNPS request success: False

Command error:
  Traceback (most recent call last):
    File "/app/workflows_user/molnetenhancer_nextflow_workflow/bin/molnetenhancer.py", line 75, in <module>
      main()
    File "/app/workflows_user/molnetenhancer_nextflow_workflow/bin/molnetenhancer.py", line 35, in main
      ms2lda_gnps_job_id=args.gnps_ms2lda_job, nap_job_id=args.nap)
    File "/app/workflows_user/molnetenhancer_nextflow_workflow/bin/molnetenhancer.py", line 46, in process
      GNPS_file = request_GNPS_file(GNPS_job_ID, output_directory) + '/'
    File "/app/workflows_user/molnetenhancer_nextflow_workflow/bin/chemClass2Network.py", line 30, in request_GNPS_file
      zf = ZipFile(BytesIO(result.content))
    File "/app/launchserver/env/conda_envs/conda_env-01940cd7e1114399b86401f527eecef5/lib/python3.7/zipfile.py", line 1258, in __init__
      self._RealGetContents()
    File "/app/launchserver/env/conda_envs/conda_env-01940cd7e1114399b86401f527eecef5/lib/python3.7/zipfile.py", line 1325, in _RealGetContents
      raise BadZipFile("File is not a zip file")
  zipfile.BadZipFile: File is not a zip file

Work dir:
  /data/nf_data/server/nf_work/d2f4cabe47bb4299a35ac056e767fda5/04/f2d80051dde5dd7cd6dddf7e2cb6a5

Tip: view the complete command output by changing to the process work dir and entering the command `cat .command.out`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions