Repository navigation
Fix/insilico log diann 2.3.2 - #40
Conversation
|
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 |
…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]>
3b46b12 to
02a3efc
Compare
|
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]>
PR checklist
nf-core pipelines lint).nextflow run . -profile test,docker --outdir <OUTDIR>).nextflow run . -profile debug,test,docker --outdir <OUTDIR>).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).