Skip to content

Conversation

@eduard-watchmaker
Copy link
Contributor

PR checklist

Closes #XXX

  • 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 module conventions in the contribution docs
  • If necessary, include test data in your PR.
  • Remove all TODO statements.
  • Emit the versions.yml file.
  • 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 <MODULE> --profile docker
      • nf-core modules test <MODULE> --profile singularity
      • nf-core modules test <MODULE> --profile conda
    • For subworkflows:
      • nf-core subworkflows test <SUBWORKFLOW> --profile docker
      • nf-core subworkflows test <SUBWORKFLOW> --profile singularity
      • nf-core subworkflows test <SUBWORKFLOW> --profile conda

@eduard-watchmaker eduard-watchmaker requested review from a team as code owners October 30, 2025 20:50
Copy link
Contributor

@Joon-Klaps Joon-Klaps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes in nf-test.config is something that needs to be double checked.

@eduard-watchmaker
Copy link
Contributor Author

The changes in nf-test.config is something that needs to be double checked.

Removed and added to specific subworkflow tests directives!

Copy link
Contributor

@Joon-Klaps Joon-Klaps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, quite a few things I should have spotted in the first round.

@eduard-watchmaker
Copy link
Contributor Author

The Channel.empty() works with my tests, the mentioned [[:], [] ] did not, so I kept as it.

Thanks again for your time and review.

@eduard-watchmaker
Copy link
Contributor Author

@Joon-Klaps any thoughts on the state of the branch?

@Joon-Klaps
Copy link
Contributor

@nf-core-bot update gpu snapshot path: subworkflows/nf-core/fastq_align_dedup_bwamem

@Joon-Klaps
Copy link
Contributor

@eduard-watchmaker, seems like the gpu snapshot files are still empty. This is likely becuase you've provided Channel.empty() as an input. Whenever a nextflow process recevies an Channel.empty(), it doesn't get executed. There is a difference between Channel.of([[:], []]) and Channel.empty().

I'm suprised to hear that [[:], []] didn't work, as it's the default way of providing empty inputs. Why didn't it work?

Also you didn't adress this https://github.com/nf-core/modules/pull/9309/files#r2485746222.

@eduard-watchmaker
Copy link
Contributor Author

@eduard-watchmaker, seems like the gpu snapshot files are still empty. This is likely becuase you've provided Channel.empty() as an input. Whenever a nextflow process recevies an Channel.empty(), it doesn't get executed. There is a difference between Channel.of([[:], []]) and Channel.empty().

I'm suprised to hear that [[:], []] didn't work, as it's the default way of providing empty inputs. Why didn't it work?

Also you didn't adress this https://github.com/nf-core/modules/pull/9309/files#r2485746222.

I keep getting the:
Caused by:
Path value cannot be null

but that may actually not be the reason of it, although I can't find the culprit at all.

Comment on lines 55 to 60
input[3] = BWA_INDEX.out.index
input[4] = false // skip_deduplication
input[5] = true // use_gpu
input[6] = [[:], [] ] // interval_file
input[7] = [[:], [] ] // known_sites
input[8] = "bam" // output_fmt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your variables are not passed correcty,
How it's written within the subworkflow:

ch_reads // channel: [ val(meta), [ reads ] ]
ch_fasta // channel: [ val(meta), [ fasta ] ]
ch_fasta_index // channel: [ val(meta), [ fasta index ] ]
ch_bwamem_index // channel: [ val(meta), [ bwam index ] ]
skip_deduplication // boolean: whether to deduplicate alignments
use_gpu // boolean: whether to use GPU or CPU for bwamem alignment
output_fmt // string: output format for parabricks fq2bam (e.g., 'bam' or 'cram')
interval_file // channel: [ val(meta), [ interval file ] ]
known_sites // channel: [ val(meta), [ known sites ] ]

Outfmt comes before interval_file & known sites

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, that totally went under my radar!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed, still get error:
Caused by:
Path value cannot be null

maybe bwa_index is nmot working, I need to explore and debug more, any ideas welcome!

@famosab
Copy link
Contributor

famosab commented Nov 18, 2025

Ah yes the bwa/index issue I suspect. See github.com//issues/9230 for the ongoing discussion.

include { FASTQ_ALIGN_BWA } from '../../nf-core/fastq_align_bwa/main'
include { PICARD_ADDORREPLACEREADGROUPS } from '../../../modules/nf-core/picard/addorreplacereadgroups/main'
include { PICARD_MARKDUPLICATES } from '../../../modules/nf-core/picard/markduplicates/main'
include { PARABRICKS_FQ2BAM } from '../../../modules/nf-core/parabricks/fq2bam/main'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this not be the meth version then?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry why would this be the meth version? We want the bwamem version to align normal DNA

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of the comment a few lines below that :)

@eduard-watchmaker
Copy link
Contributor Author

Ah yes the bwa/index issue I suspect. See github.com//issues/9230 for the ongoing discussion.

I assume these tests were running on the original version of fq2bam? Unsure why they are not working now with the samew bwa mem issue.

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.

5 participants