Open nwiltsie opened 3 months ago
All UCLA pipelines should use the store_object_as_json method from https://github.com/uclahs-cds/pipeline-Nextflow-config to save the final parameters to the nextflow-log/ directory.
store_object_as_json
nextflow-log/
Here is an example (from this PR) of using the method. The json_extractor.store_object_as_json() call must be the last step of methods.setup().
json_extractor.store_object_as_json()
methods.setup()
--- a/config/methods.config +++ b/config/methods.config @@ -4,6 +4,7 @@ includeConfig "${projectDir}/external/pipeline-Nextflow-config/config/bam/bam_pa includeConfig "${projectDir}/external/pipeline-Nextflow-config/config/methods/common_methods.config" includeConfig "${projectDir}/external/pipeline-Nextflow-config/config/schema/schema.config" includeConfig "${projectDir}/external/pipeline-Nextflow-config/config/retry/retry.config" +includeConfig "${projectDir}/external/pipeline-Nextflow-config/config/store_object_as_json/store_object_as_json.config" methods { @@ -129,5 +130,10 @@ methods { methods.setup_docker_cpus() methods.verify_input_deletion() methods.set_recal_tables() + + json_extractor.store_object_as_json( + params, + new File("${params.log_output_dir}/nextflow-log/params.json") + ) } }
All UCLA pipelines should use the
store_object_as_json
method from https://github.com/uclahs-cds/pipeline-Nextflow-config to save the final parameters to thenextflow-log/
directory.Here is an example (from this PR) of using the method. The
json_extractor.store_object_as_json()
call must be the last step ofmethods.setup()
.