Repository navigation
feat(diann): version-aware precursor q-value + fast-mode flags off by default - #101
Conversation
… disable fast-mode flags)
…bration flags by default precursor_qvalue: - default -> null (auto). VersionUtils.resolvePrecursorQvalue resolves by diann_version: <2.5 -> 0.01 (1%), >=2.5 -> 0.05 (5%). An explicit --precursor_qvalue always overrides (null is the only 'auto' sentinel; schema default removed so it is never repopulated). final_quantification (--qvalue) and diann_msstats (--qvalue_threshold) both use the resolver. Matrix thresholds (matrix_qvalue, matrix_spec_q) unchanged. performance_mode: - default -> false. The DIA-NN calibration speed flags '--min-corr 2 --corr-diff 1 --time-corr-only' can drop IDs (DIA-NN guidance) and are now opt-in. quick_mass_acc unchanged (still true). Updates nextflow.config, lib/VersionUtils.groovy, the two consuming modules, nextflow_schema.json, docs/parameters.md, CHANGELOG, and the design spec.
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
…-qvalue # Conflicts: # CHANGELOG.md
|
…-qvalue # Conflicts: # CHANGELOG.md
Summary
Aligns two DIA-NN defaults with current guidance (discussed with Vadim Demichev; fast-mode report from José Nimo).
1. Version-aware precursor q-value
precursor_qvaluedefault →null(auto).VersionUtils.resolvePrecursorQvalue(params)resolves bydiann_version:< 2.5)>= 2.5)Applies to the DIA-NN main report (
--qvalue) and the MSstats input (--qvalue_threshold). Matrix thresholds (matrix_qvalue,matrix_spec_q) are unchanged.User override is guaranteed. An explicit
--precursor_qvalue(CLI /-c/ profile) is non-null and returned verbatim — never overwritten. The schemadefault: 0.01was removed so the schema layer can't repopulate the param and silently defeat the auto/override logic; type is now["number","null"].2. Fast-mode calibration flags off by default
performance_modedefault →false. Per Vadim,--min-corr 2 --corr-diff 1 --time-corr-onlycan be really harmful to IDs, so they're now opt-in.quick_mass_acc(--quick-mass-acc) is unchanged (fine to keep; only minor run-to-run randomness).Verification (local)
resolvePrecursorQvalueexercised via Nextflow: 1.8.1/2.1.0/2.3.2→0.01, 2.5.0/2.6→0.05, explicit 0.02 on 2.5.0→0.02, explicit 0.05 on 1.8.1→0.05, null version→0.01.nextflow configparses for the default anddiann_v2_5_0profiles (precursor_qvalue=null,performance_mode=false).nf-core pipelines lint: 0 failures. prettier/eof/trailing-whitespace clean.Open item — 2.5.0 CI coverage
No current test profile pins DIA-NN 2.5.0 (
test_dia/test_latest_dia≤ 2.2.0,test_dda2.3.2 — all map to 0.01), so CI doesn't yet exercise the0.05path. Options: add a 2.5.0 invocation asserting--qvalue 0.05, or bump the "Latest" matrix to 2.5.0. Flagged for discussion.Design spec:
docs/design/2026-06-02-diann-recommended-defaults-design.md.