Charles Plessy
12/13/2024, 8:19 AMdev branch, the tests fail because ext.args are not passed anymore. I have no idea why; can somebedy help me? In pairgenomealign the symptom of this problem is that the pipeline fails because the input and output files become the same. https://github.com/nf-core/pairgenomealign/actions/runs/12311020270/job/34360516211?pr=24
I have reproduced the problem offline and confirmed from .command.sh files in the work directory that ext.args are also not passed to other modules. For instance for the process `CUTN_TARGET`:
$ diff -u 97/b1cf5b3cf2dc31d23273ddca85dbfd/.command.sh 41/45455b2cd5bfda6cc162eff422947f/.command.sh
--- 97/b1cf5b3cf2dc31d23273ddca85dbfd/.command.sh 2024-12-13 16:24:13.000000000 +0900
+++ 41/45455b2cd5bfda6cc162eff422947f/.command.sh 2024-12-13 16:20:36.000000000 +0900
@@ -7,7 +7,7 @@
seqtk \
cutN \
- \
+ -n 10 \
-g genome.fasta \
> targetGenome.bed
$ grep -A2 CUTN_TARGET conf/modules.config
withName: CUTN_TARGET {
ext.args = { "-n 10" }
}
$ grep -C2 args modules/nf-core/seqtk/cutn/main.nf
script:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
--
seqtk \\
cutN \\
$args \\
-g $fasta \\
> ${prefix}.bedmashehu
12/13/2024, 8:36 AMCharles Plessy
12/13/2024, 8:46 AMdiff --git a/nextflow.config b/nextflow.config
index f8051ce..35e43a5 100644
--- a/nextflow.config
+++ b/nextflow.config
@@ -303,3 +303,4 @@ validation {
afterText = validation.help.afterText
}
}
+includeConfig 'conf/modules.config'Charles Plessy
12/13/2024, 8:49 AMmashehu
12/13/2024, 9:12 AMMahesh Binzer-Panchal
12/13/2024, 9:20 AMmodules.config and adding { } around any values using params.* in them, i.e. assignments to ext.args, ext.prefix, etc. Be careful with publishDir, as only the path part and I think saveAs accept a closure.Charles Plessy
12/14/2024, 4:54 AMext.args = { "something" }. Can you give me an example?