-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from BCCDC-PHL/add_prov
add provenance
- Loading branch information
Showing
11 changed files
with
234 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
process collect_provenance { | ||
|
||
|
||
executor 'local' | ||
|
||
publishDir "${params.outdir}", pattern: "*_provenance.yml", mode: 'copy' | ||
|
||
input: | ||
path(provenance_files) | ||
|
||
output: | ||
file("*_provenance.yml") | ||
|
||
script: | ||
""" | ||
cat ${provenance_files} >\$(date +%Y%m%d%H%M%S)_provenance.yml | ||
""" | ||
} | ||
|
||
process pipeline_provenance { | ||
|
||
tag { pipeline_name + " / " + pipeline_version } | ||
|
||
executor 'local' | ||
|
||
input: | ||
tuple val(session_id), val(run_name), val(pipeline_name), val(pipeline_version), val(analysis_start) | ||
|
||
output: | ||
file("pipeline_provenance.yml") | ||
|
||
script: | ||
""" | ||
printf -- "- pipeline_name: ${pipeline_name}\\n" >> pipeline_provenance.yml | ||
printf -- " pipeline_version: ${pipeline_version}\\n" >> pipeline_provenance.yml | ||
printf -- " nextflow_session_id: ${session_id}\\n" >> pipeline_provenance.yml | ||
printf -- " nextflow_run_name: ${run_name}\\n" >> pipeline_provenance.yml | ||
printf -- " timestamp_analysis_start: ${analysis_start}\\n" >> pipeline_provenance.yml | ||
""" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters