# Save and rerun conveniently using stored value of "params"?

**URL:** <https://community.seqera.io/t/save-and-rerun-conveniently-using-stored-value-of-params/1038>\
**Category:** Ask for help\
**Created:** [July 31, 2024, 11:54pm UTC](https://community.seqera.io/t/save-and-rerun-conveniently-using-stored-value-of-params/1038 "2024-07-31T23:54:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bskubi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/bskubi/32/545_2.png) [@bskubi](https://community.seqera.io/u/bskubi)\
**Post date:** [July 31, 2024, 11:54pm UTC](https://community.seqera.io/t/save-and-rerun-conveniently-using-stored-value-of-params/1038/1 "2024-07-31T23:54:12Z")

</div>

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.

Is there an existing convenient way to do that?

---

<div class="post-metadata">

**Author:** ![mribeirodantas](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/mribeirodantas/32/235_2.png) [@mribeirodantas](https://community.seqera.io/u/mribeirodantas)\
**Post date:** [August 1, 2024, 1:41pm UTC](https://community.seqera.io/t/save-and-rerun-conveniently-using-stored-value-of-params/1038/2 "2024-08-01T13:41:28Z")

</div>

There’s the [nf-prov](https://github.com/nextflow-io/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:

`nextflow.config`

```auto
plugins {
  id 'nf-prov'
}

prov {
  enabled = true
  formats {
    bco {
      file = 'bco.json'
      overwrite = true
    }
  }
}

```

Then `nextflow run hello --foo bar --zoo beh`. In the `bco.json` file created, you will find the params used in that run:

 ![CleanShot 2024-08-01 at 10.40.48@2x](https://europe1.discourse-cdn.com/flex013/uploads/seqera/original/1X/b491a55004f7860c811fa4b5cb3b92a6415e1e26.png)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/system/32/2402_2.png) [@system](https://community.seqera.io/u/system)\
**Post date:** [July 4, 2025, 3:59am UTC](https://community.seqera.io/t/save-and-rerun-conveniently-using-stored-value-of-params/1038/3 "2025-07-04T03:59:12Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
