nf-core / nf-core/methylseq

Running in `-stub` mode fails for BISMARK_SUMMARY

Open
#527 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Nextflow
Stars
198
Forks
181
Avg merge
6d 17h
Merged PRs (30d)
1

Description

Description of the bug

This line seems to cause the issue. Because bam is specified as a value channel rather than path.

-[nf-core/methylseq] Pipeline completed with errors-
ERROR ~ Error executing process > 'NFCORE_METHYLSEQ:METHYLSEQ:FASTQ_ALIGN_DEDUP_BISMARK:BISMARK_SUMMARY'

Caused by:
  No signature of method: nextflow.util.ArrayBag.baseName() is applicable for argument types: () values: []
  Possible solutions: average(), average(groovy.lang.Closure), hashCode(), hashCode(), stream(), stream() -- Check script '/home/.nextflow/assets/nf-core/methylseq/workflows/methylseq/../../subworkflows/nf-core/fastq_align_dedup_bismark/../../../modules/nf-core/bismark/summary/main.nf' at line: 36


Source block:
  def args = task.ext.args ?: ''
  def prefix = task.ext.prefix ?: "${bam.baseName()}"
  """
  touch ${prefix}.report.txt
  touch ${prefix}.report.html
  
  cat <<-END_VERSIONS > versions.yml
  "${task.process}":
      bismark: \$(echo \$(bismark -v 2>&1) | sed 's/^.*Bismark Version: v//; s/Copyright.*\$//')
  END_VERSIONS
  """

Container:
  quay.io/biocontainers/bismark:0.24.2--hdfd78af_0

Tip: you can try to figure out what's wrong by changing to the process work dir and showing the script file named `.command.sh`

 -- Check '.nextflow.log' file for details
ERROR ~ Pipeline failed. Please refer to troubleshooting docs: https://nf-co.re/docs/usage/troubleshooting

 -- Check '.nextflow.log' file for details
Command used and terminal output
nextflow run nf-core/methylseq \
-stub \
-profile docker \
...
Relevant files

No response

System information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with modules/nf-core/bismark/summary/main.nf at line 36 and reproduce the failure using the shown Nextflow stub command with the Docker profile. Confirm the BISMARK_SUMMARY process completes in stub mode without the ArrayBag.baseName error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.