Skip to content

docs: clarify params.json vs SDRF-derived parameters (mods, enzyme, tolerances) - #103

Merged
ypriverol merged 2 commits into
devfrom
docs/clarify-params-vs-sdrf
Jun 3, 2026
Merged

ypriverol merged 2 commits into
devfrom
docs/clarify-params-vs-sdrf

Conversation

@ypriverol

Copy link
Copy Markdown
Contributor

Problem

pipeline_info/params_<timestamp>.json does not contain the PTMs (and enzyme, mass tolerances) annotated in the SDRF — and worse, it shows pipeline defaults (e.g. variable_mods: "Oxidation (M)", precursor_mass_tolerance: 5) that the SDRF silently overrides per sample at runtime, so a reader can't tell the true values.

Root cause (not a code bug)

params.json is JsonOutput.toJson(params) (the launch-time params map), written at pipeline init by the vendored nf-core utils_nextflow_pipeline subworkflow. The SDRF-derived values (fixedmodifications, variablemodifications, enzyme, tolerances, m/z, …) are resolved at runtime, per sample into the meta objects and diann_config.cfg — they are never in params, so they can't appear in params.json. They're also per-sample, so they can't live faithfully in a single global JSON.

We deliberately did not try to overwrite params.json with SDRF values: it's dumped before SDRF parsing runs, it's global (not per-sample), and rewriting it would break its reproducibility purpose (-params-file).

Fix (docs only)

The authoritative resolved values already exist in results/sdrf/diann_config.cfg (mods, enzyme) + the published SDRF. So this clarifies, rather than duplicating them into a new artifact:

  • docs/output.md: list params_<timestamp>.json, add an IMPORTANT note that it holds launch defaults (not the per-sample SDRF-resolved values), and add an 'SDRF parsing outputs' section pointing to sdrf/diann_config.cfg / diann_design.tsv / the SDRF as the source of truth.
  • docs/parameters.md: note at the top that modifications, enzyme, and tolerances come from the SDRF per sample and override the listed defaults.

No behavior change; no new outputs. prettier/markdown clean.

params_<timestamp>.json records launch-time pipeline parameters only.
Modifications, enzyme and mass tolerances are taken from the SDRF per
sample at runtime and override the defaults shown there (fixed mods and
enzyme have no parameter at all, so they never appear in params.json).
Document that the authoritative resolved values live in
results/sdrf/diann_config.cfg + the SDRF, and add an 'SDRF parsing
outputs' section describing sdrf/. No behavior change.
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@coderabbitai

coderabbitai Bot commented Jun 3, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 048e180c-198b-43a2-bd69-94bc8c766425

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/clarify-params-vs-sdrf

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

github-actions Bot commented Jun 3, 2026 •

Copy link
Copy Markdown

nf-core pipelines lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 8d72766

+| ✅ 108 tests passed       |+
#| ❔  18 tests were ignored |#
#| ❔   1 tests had warnings |#
!| ❗   4 tests had warnings |!
Details

❗ Test warnings:

  • files_exist - File not found: conf/igenomes.config
  • files_exist - File not found: conf/igenomes_ignored.config
  • files_exist - File not found: .github/workflows/awstest.yml
  • files_exist - File not found: .github/workflows/awsfulltest.yml

❔ Tests ignored:

❔ Tests fixed:

✅ Tests passed:

Run details

  • nf-core/tools version 4.0.2
  • Run at 2026-06-03 15:06:47

New conf/diann_versions/v2_5_1.config + profile diann_v2_5_1
(container ghcr.io/bigbio/diann:2.5.1), the academic counterpart to the
2.5.1 Enterprise build. README + usage version tables and CHANGELOG updated.
@ypriverol
ypriverol merged commit 036b82d into dev Jun 3, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant