Skip to content

Fix/insilico log diann 2.3.2 - #40

Merged
ypriverol merged 10 commits into
devfrom
fix/insilico-log-diann-2.3.2
Apr 10, 2026
Merged

ypriverol merged 10 commits into
devfrom
fix/insilico-log-diann-2.3.2

Conversation

@ypriverol

Copy link
Copy Markdown
Contributor

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the pipeline conventions in the contribution docs
  • If necessary, also make a PR on the bigbio/quantmsdiann branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core pipelines lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Check for unexpected warnings in debug mode (nextflow run . -profile debug,test,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

@coderabbitai

coderabbitai Bot commented Apr 9, 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: 57b783b6-af20-4dbe-99d5-66c2696db4e7

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/insilico-log-diann-2.3.2

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.

ypriverol and others added 5 commits April 9, 2026 10:15
…N >= 2.x

DIA-NN 2.3.2 no longer produces a *lib.log.txt file during in-silico
library generation. The hard-coded `cp *lib.log.txt` caused a fatal error.
Now gracefully handles the missing log file with a fallback message.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…N >= 2.x

DIA-NN 2.3.2 no longer produces a *lib.log.txt file during in-silico
library generation. Instead of using a shell cp workaround, use the
proper Nextflow approach: glob pattern with optional: true in the
output declaration.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Replace shell `cp` log file renaming with native Nextflow output
declarations using the actual DIA-NN filenames and optional: true.
This handles DIA-NN >= 2.x which may not produce log files.

Modules updated:
- preliminary_analysis: report.log.txt (optional)
- assemble_empirical_library: report.log.txt (optional)
- final_quantification: diann_report.log.txt (optional)
- individual_analysis: report.log.txt (optional)

The downstream log parser in dia.nf now uses .ifEmpty() to fall back
to user params when no log file is produced.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Restore the cp-based renaming (e.g., report.log.txt -> *_diann.log)
to preserve sample-specific log names, but guard each cp with
`if [ -f ... ]` so it doesn't fail when DIA-NN >= 2.x doesn't
produce the log file. All log outputs are now marked optional: true.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
DIA-NN names the log file based on the --out parameter
(e.g., --out report.tsv -> report.log.txt). The in-silico library
generation step was missing --out entirely, so DIA-NN 2.3.2 didn't
produce any log file. Adding --out silicolibrarygeneration.tsv
tells DIA-NN to write silicolibrarygeneration.log.txt.

Still marked optional: true in case some DIA-NN versions skip the
log for library-only runs.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@ypriverol
ypriverol force-pushed the fix/insilico-log-diann-2.3.2 branch from 3b46b12 to 02a3efc Compare April 9, 2026 09:16
@github-actions

github-actions Bot commented Apr 9, 2026 •

Copy link
Copy Markdown

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

Posted for pipeline commit fca0093

+| ✅ 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-09 10:58:58

ypriverol and others added 5 commits April 9, 2026 10:27
All DIA-NN modules now capture stdout/stderr via tee to guarantee
a log file exists regardless of DIA-NN version. If DIA-NN also
produces its native .log.txt file, it overwrites the tee output
(native log may contain additional structured information).

This two-layer approach ensures:
- Log files are always produced (tee fallback)
- Native DIA-NN logs are preferred when available (cp override)
- Meaningful per-step names are preserved
- No optional: true needed on log outputs
- .ifEmpty() workaround in dia.nf no longer needed

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Nextflow warns that .first() is useless on a value channel. The
ch_sdrf channel already contains a single value and is multicast
in DSL2, so .first() was redundant. Removed it and map directly.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
FINAL_QUANTIFICATION emits both diann_report.parquet and
diann_report.tsv when both exist (DIA-NN 2.x). The --report flag
only accepts one file. Now selects parquet preferentially over TSV
when both are staged.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
DIA-NN < 1.9 produces TSV, >= 1.9 produces parquet (ignoring the
.tsv extension in --out). The previous glob {tsv,parquet} matched
both files when intermediate versions produced both, breaking
DIANN_MSSTATS which only accepts one file.

Now emits separate channels (main_report_parquet, main_report_tsv)
each marked optional, merged via .mix() in the workflow so only
the version-appropriate format reaches downstream consumers.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
- Remove hardcoded DIA-NN 1.9.2 container from pride_codon_slurm.config
  (cluster config should not dictate DIA-NN version)
- Remove docker.enabled/singularity.enabled from version configs
  (container engine is selected via -profile, not version config)

Users select DIA-NN version via -profile diann_v2_3_2 (or similar)
and container engine via -profile singularity/docker independently.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@ypriverol
ypriverol requested a review from yueqixuan April 10, 2026 08:03
@ypriverol
ypriverol merged commit df3a268 into dev Apr 10, 2026
22 of 34 checks passed
@ypriverol
ypriverol deleted the fix/insilico-log-diann-2.3.2 branch April 12, 2026 08:06
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