Skip to content

Commit

Permalink
Merge pull request #23 from BCCDC-PHL/update-snippy-provenance
Browse files Browse the repository at this point in the history
make gubbins flexible
  • Loading branch information
dfornika authored Dec 5, 2024
2 parents 7cb06d4 + 1ff7f24 commit 87ba9a9
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,18 @@ workflow {
// The basic idea is to build up a channel with the following structure:
// [provenance_file_1.yml, provenance_file_2.yml, provenance_file_3.yml...]]
// ...and then concatenate them all together in the 'collect_provenance' process.
ch_pipeline_prov = pipeline_provenance.out
ch_snippy_prov = snippy_core.out.provenance
ch_gubbins_prov = gubbins.out.provenance
ch_snp_sites_prov = snp_sites.out.provenance
ch_iqtree_prov = iqtree.out.provenance
ch_shiptv_prov = shiptv.out.provenance

// Now, combine these channels in the desired order
ch_pipeline_prov = pipeline_provenance.out
ch_snippy_prov = snippy_core.out.provenance
ch_snp_sites_prov = snp_sites.out.provenance
ch_iqtree_prov = iqtree.out.provenance
ch_shiptv_prov = shiptv.out.provenance

// Add gubbins output if applicable and combine these channels in the desired order

if (!params.skip_gubbins) {
ch_gubbins_prov = gubbins.out.provenance

ch_provenance = ch_pipeline_prov
.concat(ch_snippy_prov)
.concat(ch_gubbins_prov)
Expand Down

0 comments on commit 87ba9a9

Please sign in to comment.