Skip to content

Commit

Permalink
Merge pull request #21 from BCCDC-PHL/skip-gubbins-in-provenance
Browse files Browse the repository at this point in the history
make gubbins provenance optional
  • Loading branch information
dfornika authored Dec 4, 2024
2 parents f603314 + 1f08fa6 commit 7cb06d4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,26 @@ workflow {
ch_shiptv_prov = shiptv.out.provenance

// Now, combine these channels in the desired order
ch_provenance = ch_pipeline_prov

if (!params.skip_gubbins) {
ch_provenance = ch_pipeline_prov
.concat(ch_snippy_prov)
.concat(ch_gubbins_prov)
.concat(ch_snp_sites_prov)
.concat(ch_iqtree_prov)
.concat(ch_shiptv_prov)
.collect()

} else {
ch_provenance = ch_pipeline_prov
.concat(ch_snippy_prov)
.concat(ch_snp_sites_prov)
.concat(ch_iqtree_prov)
.concat(ch_shiptv_prov)
.collect()
}


collect_provenance(ch_provenance)

}
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ manifest {
name = "BCCDC-PHL/snippy-core-phylogenomics"
mainScript = 'main.nf'
nextflowVersion = '>=20.01.0'
version= '0.1.2'
version= '0.1.3'
}

params {
Expand Down

0 comments on commit 7cb06d4

Please sign in to comment.