nf-core / nf-core/tools

Include config `modules.config` in the wrong place ?

Open
#3,300 12 comments 0 reactions 0 assignees View on GitHub

A pull request for this has already been merged.

  • #3301 by @LouisLeNezet — merged
bug
Dominant language
Python
Stars
322
Forks
255
Avg merge
2d 3h
Merged PRs (30d)
5

Description

Description of the bug

Hi !

With the new version of the template the import of the modules.config files as been moved to the bottom of the nextflow.config file.
However all the test config files are imported above in the nextflow.config and therefore any modification to a process present in both a test.config and in the modules.config would be overwritten by the later.

This does happen in phaseimpute and we just moved it next to base.config.

// Load base.config by default for all pipelines
includeConfig 'conf/base.config'

// Load modules.config for DSL2 module specific options
includeConfig 'conf/modules.config'

What were the rational for this modification ?

Command used and terminal output

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

Review the template’s nextflow.config alongside conf/base.config, conf/modules.config, and the test config files to verify the include order and the reported override in phaseimpute. Check merged pull request #3301 for the resolution; done means the intended module and test-specific process settings are applied without one unexpectedly overwriting the other.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.