Closed odoublewen closed 1 year ago
optional-input.nf
and confirm that it works locallybaseDir
with projectDir
in that scriptUpdated optional-input.nf
and also replaced both instances of deprecated baseDir
with projectDir
everywhere in both the .md and .nf file.
Confirmed it works:
$ nextflow run optional-input.nf
N E X T F L O W ~ version 22.10.0
Launching `optional-input.nf` [sharp_fermat] DSL2 - revision: 663aa00679
executor > local (3)
[ec/66da87] process > foo (2) [100%] 3 of 3 ✔
your_commad --input prot_2.fa
your_commad --input prot_1.fa
your_commad --input prot_3.fa
$ nextflow run optional-input.nf --filter foo.txt
N E X T F L O W ~ version 22.10.0
Launching `optional-input.nf` [sharp_wescoff] DSL2 - revision: 663aa00679
executor > local (3)
[c3/f7795c] process > foo (3) [100%] 3 of 3 ✔
your_commad --input prot_3.fa --filter foo.txt
your_commad --input prot_2.fa --filter foo.txt
your_commad --input prot_1.fa --filter foo.txt
Updates the solution according to https://github.com/nextflow-io/nextflow/issues/1645#issuecomment-648396928