nf-test
nf-test copied to clipboard
Process aliases
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.