Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
ac1d7a1
Fix variable redeclaration errors in strict syntax mode
ewels Jan 16, 2026
e756d66
Fix additional variable redeclaration errors (part 2)
ewels Jan 16, 2026
62d0cd1
Fix variable redeclaration errors (part 3)
ewels Jan 16, 2026
8954f04
Fix final variable redeclaration errors (part 4)
ewels Jan 16, 2026
18b8615
Merge branch 'master' into fix/variable-redeclarations
ewels Jan 17, 2026
d946669
Fix variable redeclarations in response to PR review
ewels Jan 19, 2026
1471170
Update meta.yml files to match renamed meta variables
ewels Jan 19, 2026
3ace1b0
Apply suggestions from code review
SPPearce Jan 19, 2026
644b06d
Merge branch 'master' into fix/variable-redeclarations
SPPearce Jan 19, 2026
4982649
Merge branch 'master' into fix/variable-redeclarations
SPPearce Jan 19, 2026
a03c0ef
Merge branch 'master' into fix/variable-redeclarations
ewels Jan 21, 2026
d2a8fc4
Merge branch 'master' into fix/variable-redeclarations
ewels Jan 21, 2026
e54424b
Fix blobtk/plot prefix variable scope
ewels Jan 21, 2026
d1e3ec5
Fix test infrastructure issues
ewels Jan 21, 2026
9e3fd98
Fix hmmer/hmmrank test data URL
ewels Jan 21, 2026
90ac386
Update test snapshots
ewels Jan 21, 2026
8f98741
Merge branch 'master' into fix/variable-redeclarations
ewels Jan 21, 2026
f6fdb19
Fix template variable access in cellranger/count and scds
ewels Jan 21, 2026
3516cc1
Fix scds test data URL
ewels Jan 21, 2026
ff7b2be
Fix test failures for hmmer/hmmrank, svtyper/svtypersso, and scds
ewels Jan 21, 2026
2881774
Revert scds changes - test data issue pre-exists this PR
ewels Jan 21, 2026
5d8f244
Fix scds: update test data URL and remove def from prefix
ewels Jan 21, 2026
51f4ddd
Merge branch 'master' into fix/variable-redeclarations
ewels Jan 22, 2026
dbeedc4
Update scds test data URL to modules branch filtered matrix
ewels Jan 22, 2026
dbe0748
Fix svtyper/svtypersso snapshots and keep scds prefix fix
ewels Jan 22, 2026
7b1f8af
Merge branch 'master' into fix/variable-redeclarations
ewels Jan 22, 2026
c343e7b
Fix scds test data URL and svtyper snapshots
ewels Jan 22, 2026
f196c74
Merge branch 'master' into fix/variable-redeclarations
ewels Jan 22, 2026
3ca9a30
Add def back to args in cellranger/count
ewels Jan 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions modules/nf-core/blobtk/plot/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ process BLOBTK_PLOT {
error "BLOBTK_PLOT can't use both local_path and online_path, use `[]` as input for the unused channel."
}

resource = online_path ?: local_path
prefix = task.ext.prefix ?: "${meta.id}"
def resource = online_path ?: local_path
prefix = task.ext.prefix ?: "${meta.id}"

"""
blobtk plot \\
Expand All @@ -52,7 +52,7 @@ process BLOBTK_PLOT {
"""

stub:
def prefix = task.ext.prefix ?: "${meta.id}"
prefix = task.ext.prefix ?: "${meta.id}"
"""
touch ${prefix}.png

Expand Down
4 changes: 2 additions & 2 deletions modules/nf-core/cellranger/count/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ process CELLRANGER_COUNT {
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
error "CELLRANGER_COUNT module does not support Conda. Please use Docker / Singularity / Podman instead."
}
args = task.ext.args ?: ''
def args = task.ext.args ?: ''
prefix = task.ext.prefix ?: "${meta.id}"
template "cellranger_count.py"

Expand All @@ -29,7 +29,7 @@ process CELLRANGER_COUNT {
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
error "CELLRANGER_COUNT module does not support Conda. Please use Docker / Singularity / Podman instead."
}
def prefix = task.ext.prefix ?: "${meta.id}"
prefix = task.ext.prefix ?: "${meta.id}"
"""
mkdir -p "${prefix}/outs/"
echo "$prefix" > ${prefix}/outs/fake_file.txt
Expand Down
4 changes: 2 additions & 2 deletions modules/nf-core/cellrangerarc/mkref/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ process CELLRANGERARC_MKREF {
def fast_name = fasta.name
def gtf_name = gtf.name
def motifs_name = motifs.name
def reference_config = reference_config.name
def reference_config_name = reference_config.name
def args = task.ext.args ?: ''

if ( !reference_name ){
Expand All @@ -46,7 +46,7 @@ process CELLRANGERARC_MKREF {
gtf = "${gtf_name}"
motifs = "${motifs_name}"
add = "${args}"
reference_config = "${reference_config}"
reference_config = "${reference_config_name}"

if ( reference_config == "[]" ):

Expand Down
8 changes: 4 additions & 4 deletions modules/nf-core/chewbbaca/createschema/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ process CHEWBBACA_CREATESCHEMA {
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def schema = "--n ${prefix}"
def prodigal_tf = prodigal_tf ? "--ptf ${prodigal_tf}" : ""
def cds = cds ? "--cds ${cds}" : ""
def prodigal_tf_opt = prodigal_tf ? "--ptf ${prodigal_tf}" : ""
def cds_opt = cds ? "--cds ${cds}" : ""

"""
find ./input_genomes/ -name "*.gz" | sed 's/.gz//' | xargs -I {} bash -c 'gzip -cdf {}.gz > {}'
Expand All @@ -37,8 +37,8 @@ process CHEWBBACA_CREATESCHEMA {
-o results \\
$schema \\
$args \\
$prodigal_tf \\
$cds \\
$prodigal_tf_opt \\
$cds_opt \\
--cpu $task.cpus

cat <<-END_VERSIONS > versions.yml
Expand Down
4 changes: 2 additions & 2 deletions modules/nf-core/cnvnator/cnvnator/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ process CNVNATOR_CNVNATOR {
def args = task.ext.args ?: ''
prefix = task.ext.prefix ?: bam ? "${meta.id}" : "${meta2.id}"
output_meta = bam ? meta : meta2
def calls_cmd = args.contains("-call") ? "touch ${prefix}.tab" : ''
def calls_cmd_opt = args.contains("-call") ? "touch ${prefix}.tab" : ''
"""
touch ${prefix}.root
$calls_cmd
$calls_cmd_opt

cat <<-END_VERSIONS > versions.yml
"${task.process}":
Expand Down
8 changes: 4 additions & 4 deletions modules/nf-core/crumble/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ process CRUMBLE {
args.contains("-O cram") ? "cram" :
"bam"
def bedin = keepbed ? "-R ${keepbed}" : ""
def bedout = bedout ? "-b ${prefix}.out.bed" : ""
def bedout_opt = bedout ? "-b ${prefix}.out.bed" : ""
if ("$input" == "${prefix}.${extension}") error "Input and output names are the same, use \"task.ext.prefix\" to disambiguate!"

def CRUMBLE_VERSION = '0.9.1' //WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions.
"""
crumble \\
$args \\
$bedin \\
$bedout \\
$bedout_opt \\
$input \\
${prefix}.${extension}

Expand All @@ -55,13 +55,13 @@ process CRUMBLE {
args.contains("-O bam") ? "bam" :
args.contains("-O cram") ? "cram" :
"bam"
def bedout = bedout ? "touch ${prefix}.out.bed" : ''
def bedout_opt = bedout ? "touch ${prefix}.out.bed" : ''
if ("$input" == "${prefix}.${extension}") error "Input and output names are the same, use \"task.ext.prefix\" to disambiguate!"

def CRUMBLE_VERSION = '0.9.1' //WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions.
"""
touch ${prefix}.${extension}
$bedout
$bedout_opt

cat <<-END_VERSIONS > versions.yml
"${task.process}":
Expand Down
4 changes: 2 additions & 2 deletions modules/nf-core/crumble/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ nextflow_process {
{ assert process.success },
{ assert snapshot(
process.out.bam,
bam(process.out.cram[0][1]).getHeaderMD5(),
file(process.out.cram[0][1]).name,
process.out.sam,
process.out.bed,
process.out.versions
Expand Down Expand Up @@ -62,7 +62,7 @@ nextflow_process {
{ assert process.success },
{ assert snapshot(
process.out.bam,
bam(process.out.cram[0][1]).getHeaderMD5(),
file(process.out.cram[0][1]).name,
process.out.sam,
file(process.out.bed[0][1]).name, // empty
process.out.versions
Expand Down
14 changes: 7 additions & 7 deletions modules/nf-core/crumble/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@
"test-crumble": {
"content": [
[

],
"12375c4b3bcdf1fc3d246a1238e37d7c",
"test.cram",
[

],
[

],
[
"versions.yml:md5,42f81b0ca409a32457bf2e2017dcf8da"
Expand All @@ -85,11 +85,11 @@
"test-crumble-bedout": {
"content": [
[

],
"36e5cf603a948d5a1217d86242cba41a",
"test.cram",
[

],
"test.out.bed",
[
Expand Down
2 changes: 1 addition & 1 deletion modules/nf-core/diann/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ process DIANN {
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
error "DIANN module does not support Conda. Please use Docker / Singularity / Podman instead."
}
def prefix = task.ext.prefix ?: "${meta.id}" ?: "diann"
prefix = task.ext.prefix ?: "${meta.id}" ?: "diann"

"""
# Library outputs
Expand Down
4 changes: 2 additions & 2 deletions modules/nf-core/eklipse/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ process EKLIPSE {
script:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def ref_gb = ref_gb ? "$ref_gb" : "/usr/local/bin/data/NC_012920.1.gb"
def ref_gb_path = ref_gb ? "$ref_gb" : "/usr/local/bin/data/NC_012920.1.gb"
def VERSION = "1.8" // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions.
"""
echo "$bam\t${prefix}" > infile.txt
eKLIPse.py \\
-in infile.txt \\
$args \\
-ref $ref_gb
-ref $ref_gb_path
mv eKLIPse_*/eKLIPse_deletions.csv eKLIPse_${prefix}_deletions.csv
mv eKLIPse_*/eKLIPse_genes.csv eKLIPse_${prefix}_genes.csv
mv eKLIPse_*/eKLIPse_${prefix}.png eKLIPse_${prefix}.png
Expand Down
2 changes: 1 addition & 1 deletion modules/nf-core/flash/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ process FLASH {


stub:
def prefix = task.ext.prefix ?: "${meta.id}"
prefix = task.ext.prefix ?: "${meta.id}"
"""

echo "" | gzip > ${prefix}.fastq.gz
Expand Down
8 changes: 4 additions & 4 deletions modules/nf-core/gmmdemux/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ process GMMDEMUX {
script:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def skip = skip ? "--skip $skip" : ""
def skip_opt = skip ? "--skip $skip" : ""
def examine_cells = examine ? "--examine $examine" : ""
def VERSION = '0.2.2.3' // WARN: Version information not provided by tool on CLI. Please update version string below when bumping container versions.
def type_report = type_report ? "-f ." : "-s ."
def type_report_opt = type_report ? "-f ." : "-s ."
def summary_rep = summary_report ? "-r ${prefix}_summary_report.txt" : ""
"""
if [[ ${summary_report} == true ]]; then
cat /dev/null > ${prefix}_summary_report.txt
fi

GMM-demux $args \\
$type_report \\
$type_report_opt \\
$summary_rep \\
$skip \\
$skip_opt \\
$examine_cells \\
$hto_matrix \\
$hto_names \\
Expand Down
4 changes: 2 additions & 2 deletions modules/nf-core/happy/sompy/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ process HAPPY_SOMPY {
def targets = targets_bed ? "-T ${targets_bed}" : ""
def false_positives = false_positives_bed ? "--false-positives ${false_positives_bed}" : ""
def ambiguous = ambiguous_beds ? "--ambiguous ${ambiguous_beds}" : ""
def bams = bams ? "--bam ${bams}" : ""
def bams_opt = bams ? "--bam ${bams}" : ""
def VERSION = '0.3.14' // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions.
"""
som.py \\
Expand All @@ -44,7 +44,7 @@ process HAPPY_SOMPY {
${targets} \\
${false_positives} \\
${ambiguous} \\
${bams} \\
${bams_opt} \\
-o ${prefix}

cat <<-END_VERSIONS > versions.yml
Expand Down
4 changes: 2 additions & 2 deletions modules/nf-core/hmmer/hmmfetch/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ process HMMER_HMMFETCH {
def prefix = task.ext.prefix ?: "${meta.id}"
def keyarg = key ?: ''
def kfopt = keyfile ? '-f' : ''
def index = ! key && ! keyfile ? '--index' : ''
def index_opt = ! key && ! keyfile ? '--index' : ''
def outfile = ! key && ! keyfile ? '' : "> ${prefix}.hmm"

"""
hmmfetch \\
$kfopt \\
$index \\
$index_opt \\
$args \\
$hmm \\
$keyarg \\
Expand Down
8 changes: 4 additions & 4 deletions modules/nf-core/hmmer/hmmfetch/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ nextflow_process {
"""
input[0] = [
[ id:'test', single_end:false ],
file('https://raw.githubusercontent.com/tseemann/barrnap/master/db/arc.hmm')
file('https://raw.githubusercontent.com/tseemann/barrnap/0.9/db/arc.hmm', checkIfExists: true)
]
input[1] = '16S_rRNA'
input[2] = []
Expand All @@ -44,7 +44,7 @@ nextflow_process {

input[0] = [
[ id:'test', single_end:false ],
file('https://raw.githubusercontent.com/tseemann/barrnap/master/db/arc.hmm')
file('https://raw.githubusercontent.com/tseemann/barrnap/0.9/db/arc.hmm', checkIfExists: true)
]
input[1] = []
input[2] = keyfile
Expand All @@ -69,7 +69,7 @@ nextflow_process {
"""
input[0] = [
[ id:'test', single_end:false ],
file('https://raw.githubusercontent.com/tseemann/barrnap/master/db/arc.hmm')
file('https://raw.githubusercontent.com/tseemann/barrnap/0.9/db/arc.hmm', checkIfExists: true)
]
input[1] = []
input[2] = []
Expand All @@ -94,7 +94,7 @@ nextflow_process {
"""
input[0] = [
[ id:'test', single_end:false ],
file('https://raw.githubusercontent.com/tseemann/barrnap/master/db/arc.hmm')
file('https://raw.githubusercontent.com/tseemann/barrnap/0.9/db/arc.hmm', checkIfExists: true)
]
input[1] = []
input[2] = []
Expand Down
4 changes: 2 additions & 2 deletions modules/nf-core/hmmer/hmmrank/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ nextflow_process {
process {
"""
input[0] = Channel.fromList([
tuple([ id: 'arc16s' ], file("https://raw.githubusercontent.com/tseemann/barrnap/master/db/arc.hmm")),
tuple([ id: 'bac16s' ], file("https://raw.githubusercontent.com/tseemann/barrnap/master/db/bac.hmm"))
tuple([ id: 'arc16s' ], file("https://raw.githubusercontent.com/tseemann/barrnap/0.9/db/arc.hmm", checkIfExists: true)),
tuple([ id: 'bac16s' ], file("https://raw.githubusercontent.com/tseemann/barrnap/0.9/db/bac.hmm", checkIfExists: true))
])
input[1] = Channel.of('16S_rRNA').first()
input[2] = []
Expand Down
6 changes: 3 additions & 3 deletions modules/nf-core/hmmer/hmmrank/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{
"id": "16S-test"
},
"16S-test.hmmrank.tsv.gz:md5,b4f48685b5b0127114c68dda279c0cbd"
"16S-test.hmmrank.tsv.gz:md5,ee4e777c815c37727358ab4ebda276b3"
]
],
"1": [
Expand All @@ -30,7 +30,7 @@
{
"id": "16S-test"
},
"16S-test.hmmrank.tsv.gz:md5,b4f48685b5b0127114c68dda279c0cbd"
"16S-test.hmmrank.tsv.gz:md5,ee4e777c815c37727358ab4ebda276b3"
]
],
"versions": [
Expand All @@ -51,7 +51,7 @@
{
"id": "16S-test"
},
"16S-test.hmmrank.tsv.gz:md5,b4f48685b5b0127114c68dda279c0cbd"
"16S-test.hmmrank.tsv.gz:md5,ee4e777c815c37727358ab4ebda276b3"
]
]
],
Expand Down
4 changes: 2 additions & 2 deletions modules/nf-core/ichorcna/createpon/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ process ICHORCNA_CREATEPON {
def map = map_wig ? "mapWig='${map_wig}'," : 'mapWig=NULL,'
def centro = centromere ? "centromere='${centromere}'," : ''
def rep = rep_time_wig ? "repTimeWig='${rep_time_wig}'," : 'repTimeWig=NULL,'
def exons = exons ? "exons.bed='${exons}'," : ''
def exons_opt = exons ? "exons.bed='${exons}'," : ''

"""
#!/usr/bin/env Rscript
Expand All @@ -43,7 +43,7 @@ process ICHORCNA_CREATEPON {
${rep}
filelist = "filelist.txt",
outfile = "${prefix}",
${exons}
${exons_opt}
${centro}
$args
)
Expand Down
4 changes: 2 additions & 2 deletions modules/nf-core/igvreports/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ process IGVREPORTS {
script:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def fasta = fasta ? "--fasta ${fasta}" : ""
def fasta_opt = fasta ? "--fasta ${fasta}" : ""
// If tracks is not null, create a string of the track paths
def track_arg = tracks ? "--tracks "+ tracks.collect { it.toString() }.join(' ') : ""
// if "--tracks" is in the args, then add track_string immediately after it in
Expand All @@ -34,7 +34,7 @@ process IGVREPORTS {
"""
create_report $sites \
$args \
$fasta \
$fasta_opt \
$track_arg \
--output ${prefix}_report.html

Expand Down
4 changes: 2 additions & 2 deletions modules/nf-core/jvarkit/sam2tsv/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ process JVARKIT_SAM2TSV {
script:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def regions_file = regions_file ? " --regions" + " '${regions_file}' " : ""
def regions_opt = regions_file ? " --regions" + " '${regions_file}' " : ""

"""
mkdir -p TMP
Expand All @@ -30,7 +30,7 @@ process JVARKIT_SAM2TSV {
--reference "${fasta}" \\
--output "${prefix}.tsv" \\
${args} \\
${regions_file} \\
${regions_opt} \\
"${bam}"
rm -rf TMP

Expand Down
Loading
Loading