Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Param defaults are override to null if params.name = is found in main.nf #2833

Closed
mirpedrol opened this issue Mar 8, 2024 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@mirpedrol
Copy link
Member

Description of the bug

When we obtain the configuration defaults we parse the main.nf to find params declared there.

match = re.match(r"^\s*(params\.[a-zA-Z0-9_]+)\s*=", line)

In some cases this regex matches wrong lines and overrides the real defaults to null.
https://github.com/nf-core/sarek/pull/1422/files#diff-6401496ba455b9488ffa902a6e4d7732b2c60ff2d77c5c3ef96b28a7ac7d3b28R166

Command used and terminal output

No response

System information

No response

@mirpedrol mirpedrol added the bug Something isn't working label Mar 8, 2024
@asp8200 asp8200 self-assigned this Mar 11, 2024
@asp8200 asp8200 mentioned this issue Mar 11, 2024
4 tasks
@asp8200 asp8200 closed this as completed Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants