Skip to content

remove setting of bowtie2_index to an empty channel - #12490

Open
emmanuel-tan wants to merge 2 commits into
nf-core:masterfrom
emmanuel-tan:dev/FAST_QC_TRIM_FILTER_SETSTRANDEDNESS/bowtie2_index
Open

remove setting of bowtie2_index to an empty channel#12490
emmanuel-tan wants to merge 2 commits into
nf-core:masterfrom
emmanuel-tan:dev/FAST_QC_TRIM_FILTER_SETSTRANDEDNESS/bowtie2_index

Conversation

@emmanuel-tan

Copy link
Copy Markdown

Description

While working on nf-core/rnaseq#1731, noticed that ch_bowtie2_index is declared as a take: input to FASTQ_QC_TRIM_FILTER_SETSTRANDEDNESS, but the workflow body also re-initialized a local variable of the same name to channel.empty() before calling FASTQ_REMOVE_RRNA. This silently discards any pre-built bowtie2 index passed in by the caller, forcing FASTQ_REMOVE_RRNA to always build the index from scratch even when make_bowtie2_index = false and a real index path was supplied.

The re-initialization of ch_bowtie2_index to channel.empty() is removed to allow for a provided index to be used.

PR checklist

  • If you've fixed a bug or added code that should be tested, add tests!
    • No new tests necessary.
  • If you've added a new tool - have you followed the module conventions in the contribution docs
    • No new tool added. Update to existing tool.
  • If necessary, include test data in your PR.
    • No new test data necessary.
  • Remove all TODO statements.
  • Broadcast software version numbers to topic: versions - See version_topics
  • Follow the naming conventions.
  • Follow the parameters requirements.
  • Follow the input/output options guidelines.
  • Add a resource label
  • Use BioConda and BioContainers if possible to fulfil software requirements.
  • Ensure that the test works with either Docker / Singularity. Conda CI tests can be quite flaky:
  • For modules:
    • nf-core modules test --profile docker
    • nf-core modules test --profile singularity
    • nf-core modules test --profile conda
    • No modules changed.
  • For subworkflows:
    • nf-core subworkflows test --profile docker
    • nf-core subworkflows test --profile singularity
    • nf-core subworkflows test --profile conda

@SPPearce

SPPearce commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Please join the organisation via the nf-core slack #github-inivations channel, so that your tests run.
Thanks!

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.

2 participants