carpentries-incubator / workflows-nextflow

Workflow management with Nextflow and nf-core
https://carpentries-incubator.github.io/workflows-nextflow/
Other
19 stars 29 forks source link

wc.nf script duplicates output lines #13

Closed tomsing1 closed 3 years ago

tomsing1 commented 3 years ago

When I run the wc.nf script with the specified version of nextflow, the output (number of lines + filename) is duplicated:

nextflow run wc.nf
N E X T F L O W  ~  version 20.10.0
Launching `wc.nf` [goofy_hugle] - revision: 46c287748f
executor >  local (1)
[14/39d7d2] process > numLines (1) [100%] 1 of 1 ✔
    3628 ref1_1.fq.gz

    3628 ref1_1.fq.gz

When I rerun it after commenting out the num_out.view() line in the script, the output is only shown once:

nextflow run wc.nf
N E X T F L O W  ~  version 20.10.0
Launching `wc.nf` [kickass_stone] - revision: 0ccac4963b
executor >  local (1)
[51/c915be] process > numLines (1) [100%] 1 of 1 ✔
    3628 ref1_1.fq.gz
ggrimes commented 3 years ago

The contents of wc.nf file in episode has been changed and this will be fixed.