Skip to content

camelCase params duplicated with hypens #2061

@ewels

Description

@ewels

Bug report

Expected behavior and actual behavior

When using a param with camelCase, a duplicated copy is made with hyphens (camel-case). I've never noticed this before, but the new @nf-core schema validation now warns about these params as they are unexpected.

Expected behaviour would be to, well, not do this. 😀

Steps to reproduce the problem

params.snake_case = 'foo'
params.camelCase = 'bar'
params.multiCamelCaseParam = 'baz'

println(params)

Program output

$ nextflow run main.nf
N E X T F L O W  ~  version 21.03.0-edge
Launching `main.nf` [elegant_euler] - revision: b5f0bc6361
[snake_case:foo, camelCase:bar, camel-case:bar, multiCamelCaseParam:baz, multi-camel-case-param:baz]

More readable:

  • snake_case: foo
  • camelCase: bar
  • camel-case: bar
  • multiCamelCaseParam: baz
  • multi-camel-case-param: baz

'cc @KevinMenden @Leon-Bichmann

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