Skip to content

test: load prokaryotic config in nf-test instead of duplicating params#1736

Merged
pinin4fjords merged 4 commits into
devfrom
fix/prokaryotic-nftest-use-profile
Feb 27, 2026
Merged

test: load prokaryotic config in nf-test instead of duplicating params#1736
pinin4fjords merged 4 commits into
devfrom
fix/prokaryotic-nftest-use-profile

Conversation

@pinin4fjords
Copy link
Copy Markdown
Member

Summary

Addresses @adamrtalbot's PR #1717 feedback that prokaryotic nf-tests should not re-set params already defined in the prokaryotic profile.

Adds config "../conf/prokaryotic.config" at the nextflow_pipeline level in tests/prokaryotic.nf.test, so prokaryotic-specific settings are loaded from the config file rather than duplicated in each test's params block.

Removed from params blocks (now inherited from conf/prokaryotic.config):

  • prokaryotic = true
  • gffread_transcript_fasta = true
  • aligner = 'bowtie2_salmon'
  • featurecounts_feature_type = 'CDS'
  • skip_rseqc, skip_dupradar, skip_qualimap
  • skip_bigwig

Kept in params blocks (test-specific):

  • Test data paths (input, fasta, gff, gtf=null, etc.)
  • aligner = 'star_salmon' override for star_salmon tests
  • Test skips: skip_bbsplit, skip_preseq, skip_biotype_qc, skip_deseq2_qc
  • min_trimmed_reads = 0

Follows up on #1734 which composed test_prokaryotic on prokaryotic in nextflow.config.

Test plan

  • Prokaryotic stub tests pass
  • Prokaryotic full tests pass (snapshots may need regeneration if config loading order affects output)

🤖 Generated with Claude Code

Add config "../conf/prokaryotic.config" to the prokaryotic test suite
so that prokaryotic-specific settings (prokaryotic flag, aligner,
gffread, featurecounts_feature_type, skip_bigwig, skip_rseqc,
skip_dupradar, skip_qualimap) come from the profile config rather
than being duplicated in each test's params block.

Tests now only set:
- Test data paths (input, fasta, gff, gtf=null, etc.)
- Aligner override for star_salmon tests
- Test-specific skips (bbsplit, preseq, biotype_qc, deseq2_qc)
- min_trimmed_reads = 0

Addresses review feedback from @adamrtalbot in PR #1717.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nf-core-bot
Copy link
Copy Markdown
Member

Warning

Newer version of the nf-core template is available.

Your pipeline is using an old version of the nf-core template: 3.5.1.
Please update your pipeline to the latest version.

For more documentation on how to update your pipeline, please see the nf-core documentation and Synchronisation documentation.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 27, 2026

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

Posted for pipeline commit f8927b3

+| ✅ 202 tests passed       |+
#| ❔   9 tests were ignored |#
#| ❔   1 tests had warnings |#
!| ❗   9 tests had warnings |!
Details

❗ Test warnings:

  • files_exist - File not found: assets/multiqc_config.yml
  • nextflow_config - Config manifest.version should end in dev: 3.23.0
  • pipeline_todos - TODO string in nextflow.config: Specify any additional parameters here
  • pipeline_todos - TODO string in methods_description_template.yml: #Update the HTML below to your preferred methods description, e.g. add publication citation for this pipeline
  • pipeline_todos - TODO string in awsfulltest.yml: You can customise AWS full pipeline tests as required
  • pipeline_todos - TODO string in base.config: Check the defaults for all processes
  • pipeline_todos - TODO string in main.nf: Optionally add in-text citation tools to this list.
  • pipeline_todos - TODO string in main.nf: Optionally add bibliographic entries to this list.
  • pipeline_todos - TODO string in main.nf: Only uncomment below if logic in toolCitationText/toolBibliographyText has been filled!

❔ Tests ignored:

❔ Tests fixed:

✅ Tests passed:

Run details

  • nf-core/tools version 3.5.1
  • Run at 2026-02-27 13:19:23

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@pinin4fjords
Copy link
Copy Markdown
Member Author

Note that we don't have per-test profile config in CI, hence this workaround

pinin4fjords and others added 2 commits February 27, 2026 13:11
The prokaryotic config now applies skip_bigwig = true to all
prokaryotic tests (including star_salmon), which is correct
behavior but changes the expected output. Removing snapshots
so CI regenerates them.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove bigwig-related entries (BEDTOOLS_GENOMECOV_FW/REV,
UCSC_BEDCLIP/BEDGRAPHTOBIGWIG, bigwig file paths) from the
star_salmon prokaryotic snapshot since skip_bigwig=true is now
applied via the prokaryotic config. Task count 58 -> 46.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@pinin4fjords pinin4fjords merged commit 35ce3a7 into dev Feb 27, 2026
28 checks passed
@pinin4fjords pinin4fjords deleted the fix/prokaryotic-nftest-use-profile branch March 3, 2026 10:36
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.

3 participants