For reproducibility, I’d like to save a snapshot of the value of “params” when nextflow run is launched. Ideally the params would be saved in such a way that the user could easily use it as input to a rerun of the pipeline.
There’s the nf-prov Nextflow plugin for provenance information. Among the things it does is save information about your run, including pipeline parameters. See the example below: