-
Notifications
You must be signed in to change notification settings - Fork 956
Fix file extension for module PBMARKDUP #9784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -40,7 +40,8 @@ nextflow_process { | |||||
|
|
||||||
| } | ||||||
|
|
||||||
| test("acropora cervicornis - bam - multiple tests with dupfile and log") { | ||||||
| test("acropora cervicornis - multiple input with dupfile logfile and remove duplicates") { | ||||||
|
|
||||||
| when { | ||||||
|
|
||||||
| params { | ||||||
|
|
@@ -52,8 +53,9 @@ nextflow_process { | |||||
| input[0] = Channel.of( | ||||||
| [ | ||||||
| [ id:'test' ], // meta map | ||||||
| [ file(params.modules_testdata_base_path + 'genomics/eukaryotes/acropora_cervicornis/m84093_241116_151316_s2.hifi_reads.bc2028.subset.1.bam', checkIfExists: true), | ||||||
| file(params.modules_testdata_base_path + 'genomics/eukaryotes/acropora_cervicornis/m84093_241116_151316_s2.hifi_reads.bc2028.subset.2.bam', checkIfExists: true) | ||||||
| [ | ||||||
| file(params.modules_testdata_base_path + 'genomics/eukaryotes/acropora_cervicornis/m84093_241116_151316_s2.hifi_reads.bc2028.subset.1.bam', checkIfExists: true), | ||||||
| file(params.modules_testdata_base_path + 'genomics/eukaryotes/acropora_cervicornis/m84093_241116_151316_s2.hifi_reads.bc2028.subset.2.bam', checkIfExists: true) | ||||||
| ] | ||||||
| ] | ||||||
| ) | ||||||
|
|
@@ -70,34 +72,33 @@ nextflow_process { | |||||
|
|
||||||
| } | ||||||
|
|
||||||
| test("acropora cervicornis - bam - multiple tests remove duplicates") { | ||||||
| test("homo sapiens - Multiple input types - with dupfile logfile and remove duplicates") { | ||||||
|
||||||
| test("homo sapiens - Multiple input types - with dupfile logfile and remove duplicates") { | |
| test("acropora cervicornis - Multiple input types - with dupfile logfile and remove duplicates") { |
Copilot
AI
Jan 27, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here pbmarkdup_args uses ${prefix} inside a Groovy double-quoted string, but prefix is not defined in this nf-test parameter scope, so it interpolates to the literal string null (reflected by the null.dup.bam filenames in the snapshot). To avoid this surprising behaviour and better reflect the intention of tying the duplicate file name to the module’s output prefix, consider either using an explicit fixed dup file name here or passing the desired prefix via task.ext.prefix instead of relying on ${prefix} in the params string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new suffix resolution logic adds explicit handling for compressed FASTA/FASTQ inputs (e.g.
.fasta.gz,.fastq.gz), but the updated pbmarkdup tests only cover uncompressed fasta/fastq and BAM inputs, so the.gzbranch isn’t exercised. Given this module already has nf-test coverage, it would be worthwhile to add at least one test using a.fasta.gzor.fastq.gzinput to verify that the output file name preserves the full compressed extension as intended.