uclahs-cds / pipeline-recalibrate-BAM

Nextflow pipeline to perform Indel Realignment and Base Quality Score Recalibration
https://uclahs-cds.github.io/pipeline-recalibrate-BAM/
GNU General Public License v2.0
1 stars 1 forks source link

Use store_object_as_json method to store parameters #47

Closed nwiltsie closed 9 months ago

nwiltsie commented 9 months ago

Description

This just makes use of the new store_object_as_json method from https://github.com/uclahs-cds/pipeline-Nextflow-config/pull/43 to store the pipeline's parameters in ${params.log_output_dir}/params.json.

The parameters from my test run were successfully saved to /hot/software/pipeline/pipeline-recalibrate-BAM/Nextflow/development/unreleased/nwiltsie_log_params/A-mini-n2/recalibrate-BAM-1.0.0-rc.4/TWGSAMIN000001/log-recalibrate-BAM-1.0.0-rc.4-20231222T191057Z/params.json.

Testing Results

Checklist

yashpatel6 commented 9 months ago

Would it make sense for the JSON to be saved under log-.../nextflow-log/?

nwiltsie commented 9 months ago

Would it make sense for the JSON to be saved under log-.../nextflow-log/?

Yeah that seems fair! I'll update it.

nwiltsie commented 9 months ago

Okay, after bd3485b the params file is now saved under nextflow-log/:

/hot/software/pipeline/pipeline-recalibrate-BAM/Nextflow/development/unreleased/nwiltsie_log_params/A-mini-n2/recalibrate-BAM-1.0.0-rc.4/TWGSAMIN000001/log-recalibrate-BAM-1.0.0-rc.4-20231222T194513Z/nextflow-log/params.json

(I canceled that job almost immediately but the file was still produced correctly.)