Skip to content

feat: rename FDR params and expose matrix-level q-value controls#44

Merged
ypriverol merged 2 commits intodevfrom
fix/fdr-parameter-redesign
Apr 10, 2026
Merged

feat: rename FDR params and expose matrix-level q-value controls#44
ypriverol merged 2 commits intodevfrom
fix/fdr-parameter-redesign

Conversation

@ypriverol
Copy link
Copy Markdown
Member

Summary

  • Rename protein_level_fdr_cutoffprecursor_qvalue to accurately reflect DIA-NN's --qvalue (precursor-level, not protein-level)
  • Expose matrix_qvalue (default 0.01, maps to --matrix-qvalue) and matrix_spec_q (default 0.05, maps to --matrix-spec-q)
  • Remove misleading "Protein inference" schema section; new params live under "DIA-NN"
  • Add --matrix-qvalue and --matrix-spec-q to blocked flags in FINAL_QUANTIFICATION

Proteogenomics use case

Users can now set --matrix_spec_q 1.0 to retain variant proteins (e.g., COSMIC) that always have Protein.Q.Value = 1.0 due to insufficient unique peptides, without affecting precursor-level filtering.

Closes #42

Test plan

  • Run with default params — verify DIA-NN receives --qvalue 0.01 --matrix-qvalue 0.01 --matrix-spec-q 0.05
  • Run with --matrix_spec_q 1.0 — verify variant proteins are retained in pg_matrix
  • Verify --diann_extra_args '--matrix-qvalue 0.05' is stripped with a warning

🤖 Generated with Claude Code

Rename protein_level_fdr_cutoff -> precursor_qvalue to accurately
reflect that DIA-NN's --qvalue controls precursor-level filtering,
not protein-level FDR.

Expose two new matrix-level FDR parameters:
- matrix_qvalue (default 0.01): maps to --matrix-qvalue
- matrix_spec_q (default 0.05): maps to --matrix-spec-q

This enables proteogenomics workflows to independently control
matrix filtering (e.g., matrix_spec_q=1.0 to retain variant
proteins that lack sufficient unique peptides).

Closes #42

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 10, 2026

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: 5b164ea0-5e81-4894-8ebf-7865d984f970

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 fix/fdr-parameter-redesign

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
Copy link
Copy Markdown

github-actions bot commented Apr 10, 2026

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

Posted for pipeline commit 9bbcee7

+| ✅ 106 tests passed       |+
#| ❔  19 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 3.5.2
  • Run at 2026-04-10 07:53:44

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ypriverol ypriverol merged commit 4a30d95 into dev Apr 10, 2026
20 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.

Clarify DIA-NN FDR parameters: rename protein_level_fdr_cutoff and expose matrix-level FDR controls

1 participant