Skip to content

Commit 87ba9a9

Browse files
authored
Merge pull request #23 from BCCDC-PHL/update-snippy-provenance
make gubbins flexible
2 parents 7cb06d4 + 1ff7f24 commit 87ba9a9

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

main.nf

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,18 @@ workflow {
6565
// The basic idea is to build up a channel with the following structure:
6666
// [provenance_file_1.yml, provenance_file_2.yml, provenance_file_3.yml...]]
6767
// ...and then concatenate them all together in the 'collect_provenance' process.
68-
ch_pipeline_prov = pipeline_provenance.out
69-
ch_snippy_prov = snippy_core.out.provenance
70-
ch_gubbins_prov = gubbins.out.provenance
71-
ch_snp_sites_prov = snp_sites.out.provenance
72-
ch_iqtree_prov = iqtree.out.provenance
73-
ch_shiptv_prov = shiptv.out.provenance
7468

75-
// Now, combine these channels in the desired order
69+
ch_pipeline_prov = pipeline_provenance.out
70+
ch_snippy_prov = snippy_core.out.provenance
71+
ch_snp_sites_prov = snp_sites.out.provenance
72+
ch_iqtree_prov = iqtree.out.provenance
73+
ch_shiptv_prov = shiptv.out.provenance
74+
75+
// Add gubbins output if applicable and combine these channels in the desired order
7676

7777
if (!params.skip_gubbins) {
78+
ch_gubbins_prov = gubbins.out.provenance
79+
7880
ch_provenance = ch_pipeline_prov
7981
.concat(ch_snippy_prov)
8082
.concat(ch_gubbins_prov)

0 commit comments

Comments
 (0)