Repository navigation
Suppress protein inference warning in PRELIMINARY_ANALYSIS - #29
Conversation
…ce warning PRELIMINARY_ANALYSIS only performs calibration using the spectral library and does not need protein inference. Adding --no-prot-inf suppresses the misleading "protein inference is enabled but no FASTA provided" warning. The flag is also added to the blocked list so users cannot double-pass it via diann_extra_args. Closes #26 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Document DIA-NN's recommendation to manually fix MS1/MS2 mass accuracy to 10-15 ppm for timsTOF datasets instead of using automatic calibration. Adds a new "Bruker/timsTOF Data" section to usage docs with example command. Closes #26 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
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 |
Review Summary by QodoSuppress protein inference warning and document timsTOF mass accuracy
WalkthroughsDescription• Add --no-prot-inf flag to PRELIMINARY_ANALYSIS to suppress protein inference warning • Block --no-prot-inf from user-provided arguments to prevent conflicts • Add warning for Bruker/timsTOF datasets with automatic mass accuracy calibration • Document recommended mass accuracy settings for timsTOF data in usage guide Diagramflowchart LR
A["PRELIMINARY_ANALYSIS Process"] -->|Add flag| B["--no-prot-inf"]
A -->|Block from args| C["diann_extra_args"]
D[".d file detected"] -->|Check auto-calibration| E["Emit warning"]
F["Usage Documentation"] -->|Add section| G["Bruker/timsTOF Data"]
G -->|Include example| H["Mass accuracy parameters"]
File Changes1. modules/local/diann/preliminary_analysis/main.nf
|
Code Review by Qodo
1. Bruker warning misses fallback
|
There was a problem hiding this comment.
Pull request overview
Suppresses DIA-NN’s protein inference warning during PRELIMINARY_ANALYSIS and adds guidance for Bruker/timsTOF mass accuracy calibration.
Changes:
- Add
--no-prot-infto the DIA-NN invocation inPRELIMINARY_ANALYSIS. - Block
--no-prot-inffrom being passed viadiann_extra_args. - Add a Bruker/timsTOF calibration recommendation and emit a warning when
.dinputs are used with automatic calibration.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| modules/local/diann/preliminary_analysis/main.nf | Adds --no-prot-inf and emits a timsTOF-specific warning during preliminary calibration. |
| docs/usage.md | Documents recommended mass accuracy settings for Bruker/timsTOF datasets and the new warning behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
--no-prot-infflag to the DIA-NN command inPRELIMINARY_ANALYSISto suppress the misleading "protein inference is enabled but no FASTA provided" warning, since this step only performs calibration using the spectral library and does not need protein inference.'--no-prot-inf'to theblockedlist so users cannot accidentally double-pass it viadiann_extra_args.Closes #26
Test plan
--no-prot-infvia--diann_extra_argstriggers the blocked-flag warning and is stripped🤖 Generated with Claude Code