Skip to content

Process aliases #96

@tzvi909

Description

@tzvi909

Hi,

Please can you patch the error I'm getting when including my module via an alias to use a different set of module parameters in the module config file. basically the issue is that when I do process ".*XXXXX_XXX as .*XXXX_YYYY" with the same module script dir.
The inclusion statement is correct in the mock.nf generated but the process runs with the alias name instead of the actual process name which should be the former value in the include statement ( XXXXX_XXX()). Otherwise the process does not run properly and there is a module compilation error.

The error I'm getting with the --debug flag when running nf-test:

` Test Process .*ALIAS_of_first_process
Test [e4693079] 'Testing in PON creation mode (no expected failures)'

Nextflow Command:
  /home/XXXX/nextflow -quiet -log /home/XXXX/.nextflow/XXXXXX/.nf-test/tests/e469307945b9a81b526631acc632e16a/meta/nextflow.log run /home/XXXXX/.nextflow/XXXXXXX/.nf-test/tests/e469307945b9a81b526631acc632e16a/meta/mock.nf -c /home/XXXXXXXX/.nextflow/XXXXXXX/tests/nextflow.config -params-file /home/XXXXXXX/.nextflow/XXXXXXX/.nf-test/tests/e469307945b9a81b526631acc632e16a/meta/params.json -ansi-log false -profile docker,aws,test -with-trace /home/XXXXXXX/.nextflow/XXXXXXX/.nf-test/tests/e469307945b9a81b526631acc632e16a/meta/trace.csv -w /home/XXXXXXX/.nextflow/XXXXXXXXX/.nf-test/tests/e469307945b9a81b526631acc632e16a/work -dump-channels --debug`

Stdout:
ERROR ~ Script compilation error
- file : /home/XXXXXXX/.nextflow/XXXXXXXX/.nf-test/tests/e469307945b9a81b526631acc632e16a/meta/mock.nf
- cause: Unexpected input: '{' @ line 53, column 10.
workflow {
^

  1 error

`
Thanks in advance.

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