Skip to content

After removing failures there are no samples left #4

Description

@kittychaseNC

Description of the bug

Pipeline fails, no samples left but phoenix QC passed all samples

.nextflow.log

outdir_GRiPHin_Summary.xlsx

Command used and terminal output

nextflow run cdcgov/phylophoenix -profile docker --outdir /mnt/WGSData/MolecularEpi/250728/outdir_phylo --indir /mnt/WGSData/MolecularEpi/250728/outdir/

ERROR ~ Error executing process > 'PHYLOPHOENIX_WF:PHYLOPHOENIX:GRIPHIN_WORKFLOW:GRIPHIN (1)'

Caused by:
  Process `PHYLOPHOENIX_WF:PHYLOPHOENIX:GRIPHIN_WORKFLOW:GRIPHIN (1)` terminated with an error exit status (1)


Command executed:

  # rename input samplesheet so it gets passed along.
  if [[ samplesheet_test_illumina_amplicon.csv != "Directory_samplesheet.csv" ]]; then
      mv samplesheet_test_illumina_amplicon.csv Directory_samplesheet.csv
  fi

  GRiPHin.py --ar_db ResGANNCBI_20230517_srst2.fasta --coverage 30 --samplesheet Directory_samplesheet.csv  --phoenix

  cat <<-END_VERSIONS > versions.yml
  "PHYLOPHOENIX_WF:PHYLOPHOENIX:GRIPHIN_WORKFLOW:GRIPHIN":
     python: $(python --version | sed 's/Python //g')
     phoenix_base_container: base_v2.1.0
  END_VERSIONS

Command exit status:
  1

Command output:
  (empty)

Command error:
  Traceback (most recent call last):
    File "/home/EADS/kchase4/.nextflow/assets/cdcgov/phylophoenix/bin/GRiPHin.py", line 1565, in <module>
      main()
    File "/home/EADS/kchase4/.nextflow/assets/cdcgov/phylophoenix/bin/GRiPHin.py", line 1534, in main
      QC_reason, MLST_scheme_1, MLST_scheme_2, MLST_type_1, MLST_type_2, MLST_alleles_1, MLST_alleles_2, MLST_source_1, MLST_source_2 = Get_Metrics(args.phoenix, args.scaffolds, args.set_coverage, srst2_ar_df, pf_df, ar_df, ats, kraken_trim, kraken_trim_report, kraken_wtasmbld_report, kraken_wtasmbld, quast_report, busco_short_summary, asmbld_ratio, gc, sample_name, mlst_file, fairy_file, gamma_ar_file, gamma_pf_file, gamma_hv_file, fast_ani_fi ar_dic)
    File "/home/EADS/kchase4/.nextflow/assets/cdcgov/phylophoenix/bin/GRiPHin.py", line 743, in Get_Metrics
      Q30_R1_per, Q30_R2_per, Total_Raw_Seq_bp, Total_Raw_reads, Total_Trimmed_bp, Paired_Trimmed_reads, Total_Trimmed_reads, Trim_Q30_R1_percent, Trim_Q30_R2_percent = get_Q30(trim_stats, raw_stats)
    File "/home/EADS/kchase4/.nextflow/assets/cdcgov/phylophoenix/bin/GRiPHin.py", line 79, in get_Q30
      data_df = pd.read_csv(trim_stats, sep='\t', header=0)
    File "/pyenv/versions/3.7.12/lib/python3.7/site-packages/pandas/util/_decorators.py", line 311, in wrapper
      return func(*args, **kwargs)
    File "/pyenv/versions/3.7.12/lib/python3.7/site-packages/pandas/io/parsers/readers.py", line 586, in read_csv
      return _read(filepath_or_buffer, kwds)
    File "/pyenv/versions/3.7.12/lib/python3.7/site-packages/pandas/io/parsers/readers.py", line 482, in _read
      parser = TextFileReader(filepath_or_buffer, **kwds)
    File "/pyenv/versions/3.7.12/lib/python3.7/site-packages/pandas/io/parsers/readers.py", line 811, in __init__
      self._engine = self._make_engine(self.engine)
    File "/pyenv/versions/3.7.12/lib/python3.7/site-packages/pandas/io/parsers/readers.py", line 1040, in _make_engine
      return mapping[engine](self.f, **self.options)  # type: ignore[call-arg]
    File "/pyenv/versions/3.7.12/lib/python3.7/site-packages/pandas/io/parsers/c_parser_wrapper.py", line 51, in __init__
      self._open_handles(src, kwds)
    File "/pyenv/versions/3.7.12/lib/python3.7/site-packages/pandas/io/parsers/base_parser.py", line 229, in _open_handles
      errors=kwds.get("encoding_errors", "strict"),
    File "/pyenv/versions/3.7.12/lib/python3.7/site-packages/pandas/io/common.py", line 614, in get_handle
      storage_options=storage_options,
    File "/pyenv/versions/3.7.12/lib/python3.7/site-packages/pandas/io/common.py", line 312, in _get_filepath_or_buffer
      with urlopen(req_info) as req:
    File "/pyenv/versions/3.7.12/lib/python3.7/site-packages/pandas/io/common.py", line 212, in urlopen
      return urllib.request.urlopen(*args, **kwargs)
    File "/pyenv/versions/3.7.12/lib/python3.7/urllib/request.py", line 222, in urlopen
      return opener.open(url, data, timeout)
    File "/pyenv/versions/3.7.12/lib/python3.7/urllib/request.py", line 531, in open
      response = meth(req, response)
    File "/pyenv/versions/3.7.12/lib/python3.7/urllib/request.py", line 641, in http_response
      'http', request, response, code, msg, hdrs)
    File "/pyenv/versions/3.7.12/lib/python3.7/urllib/request.py", line 569, in error
      return self._call_chain(*args)
    File "/pyenv/versions/3.7.12/lib/python3.7/urllib/request.py", line 503, in _call_chain
      result = func(*args)
    File "/pyenv/versions/3.7.12/lib/python3.7/urllib/request.py", line 649, in http_error_default
      raise HTTPError(req.full_url, code, msg, hdrs, fp)
  urllib.error.HTTPError: HTTP Error 404: Not Found

Work dir:
  /mnt/WGSData/work/d7/e42ff1d4420e6c78ea7f9e6dd064c9

Container:
  quay.io/jvhagey/phoenix:base_v2.1.0

Tip: when you have fixed the problem you can continue the execution adding the option `-resume` to the run command line

 -- Check '.nextflow.log' file for details

Relevant files

No response

System information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions