Skip to content

Commit d9c84ed

Browse files
SPPearceewelsclaude
authored
Update more sentieon modules (#9735)
* Fix environment variable references for strict syntax compliance Wrap environment variables in env() function to comply with Nextflow strict syntax mode (NXF_SYNTAX_PARSER=v2). This addresses 58 lint errors across Sentieon and Spotiflow module test configs. Changes: - Sentieon modules: Replace ${SENTIEON_LICSRVR_IP} with ${env('SENTIEON_LICSRVR_IP')} - Sentieon modules: Replace ${SENTIEON_AUTH_MECH} with ${env('SENTIEON_AUTH_MECH')} - Spotiflow module: Replace ${HOME} with ${env('HOME')} This is part of the migration to Nextflow strict syntax where implicit environment variable references are not allowed. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * Use System.getenv() for backwards compatability * Update sentieon/bwamem to topic * Add bwa version back * Fix linting * Swap environment.yml to new version * Use nft-bam * Use nft-bam * Update all sentieon modules * Fix some modules * Prettier * Add missing variable from stub * Update qualcal * Update varcal * More updates * Fix singularity container for wgsmetrics and conda versions * Fix some undefined it warnings * Update snapshot * Remove trailing spaces * Fix wgsmetrics linting * Fix dedup * Fix sentieon/dedup * Update more modules * Update more modules * Bump all modules to 202503.02 * Update snapshots * Update datametrics and rsem * Update rsem * Use correct version * Update datametrics --------- Co-authored-by: Phil Ewels <phil.ewels@seqera.io> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 55cca68 commit d9c84ed

51 files changed

Lines changed: 705 additions & 714 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

modules/nf-core/sentieon/datametrics/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ channels:
44
- conda-forge
55
- bioconda
66
dependencies:
7-
- bioconda::sentieon=202503.01
7+
- bioconda::sentieon=202503.02
88
- conda-forge::gnuplot=5.4.10

modules/nf-core/sentieon/datametrics/main.nf

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ process SENTIEON_DATAMETRICS {
55

66
conda "${moduleDir}/environment.yml"
77
container "${workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container
8-
? 'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/20/2050c5321a5426e31b9ed1e3e98356913fe3c316a7ef02c4fb872983a730db6f/data'
9-
: 'community.wave.seqera.io/library/sentieon_gnuplot:a6da525a6c9ce6e3'}"
8+
? 'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/ae/ae67a134620c3af22c8563a2913c4639caa0d75ce25764e7b10c996b242aa023/data'
9+
: 'community.wave.seqera.io/library/sentieon_gnuplot:41931fca35668c97'}"
1010

1111
input:
1212
tuple val(meta), path(bam), path(bai)
@@ -25,7 +25,7 @@ process SENTIEON_DATAMETRICS {
2525
tuple val(meta), path('*qd_metrics.pdf'), emit: qd_plot, optional: true
2626
tuple val(meta), path('*is_metrics.pdf'), emit: is_plot, optional: true
2727
tuple val(meta), path('*gc_metrics.pdf'), emit: gc_plot, optional: true
28-
path "versions.yml", emit: versions
28+
tuple val("${task.process}"), val('sentieon'), eval('sentieon driver --version | sed "s/.*-//g"'), topic: versions, emit: versions_sentieon
2929

3030
when:
3131
task.ext.when == null || task.ext.when
@@ -59,11 +59,6 @@ process SENTIEON_DATAMETRICS {
5959
sentieon plot QualDistribution -o ${prefix}_qd_metrics.pdf ${prefix}_qd_metrics.txt
6060
sentieon plot InsertSizeMetricAlgo -o ${prefix}_is_metrics.pdf ${prefix}_is_metrics.txt
6161
fi
62-
63-
cat <<-END_VERSIONS > versions.yml
64-
"${task.process}":
65-
sentieon: \$(echo \$(sentieon driver --version 2>&1) | sed -e "s/sentieon-genomics-//g")
66-
END_VERSIONS
6762
"""
6863

6964
stub:
@@ -83,10 +78,5 @@ process SENTIEON_DATAMETRICS {
8378
touch ${prefix}_qd_metrics.pdf
8479
touch ${prefix}_is_metrics.pdf
8580
fi
86-
87-
cat <<-END_VERSIONS > versions.yml
88-
"${task.process}":
89-
sentieon: \$(echo \$(sentieon driver --version 2>&1) | sed -e "s/sentieon-genomics-//g")
90-
END_VERSIONS
9181
"""
9282
}

modules/nf-core/sentieon/datametrics/meta.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,27 @@ output:
168168
description: "PDF containing plot of GC bias"
169169
pattern: "*.pdf"
170170
ontologies: []
171+
versions_sentieon:
172+
- - ${task.process}:
173+
type: string
174+
description: The process the versions were collected from
175+
- sentieon:
176+
type: string
177+
description: The tool name
178+
- sentieon driver --version | sed "s/.*-//g":
179+
type: string
180+
description: The command used to generate the version of the tool
181+
topics:
171182
versions:
172-
- versions.yml:
173-
type: file
174-
description: File containing software versions
175-
pattern: "versions.yml"
176-
ontologies:
177-
- edam: http://edamontology.org/format_3750 # YAML
183+
- - ${task.process}:
184+
type: string
185+
description: The process the versions were collected from
186+
- sentieon:
187+
type: string
188+
description: The tool name
189+
- sentieon driver --version | sed "s/.*-//g":
190+
type: string
191+
description: The command used to generate the version of the tool
178192
authors:
179193
- "@ramprasadn"
180194
maintainers:

modules/nf-core/sentieon/datametrics/tests/main.nf.test

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,16 @@ nextflow_process {
3535
then {
3636
assert process.success
3737
assertAll(
38-
{ assert snapshot(process.out).match() }
38+
{ assert snapshot(
39+
path(process.out.mq_metrics[0][1]).readLines()[1..3].join("\n").md5(),
40+
path(process.out.qd_metrics[0][1]).readLines()[1..3].join("\n").md5(),
41+
path(process.out.gc_summary[0][1]).readLines()[1..3].join("\n").md5(),
42+
path(process.out.gc_metrics[0][1]).readLines()[1..3].join("\n").md5(),
43+
path(process.out.aln_metrics[0][1]).readLines()[1..3].join("\n").md5(),
44+
path(process.out.is_metrics[0][1]).readLines()[1..3].join("\n").md5(),
45+
process.out.findAll { key, val -> key.startsWith("versions") }
46+
).match()
47+
}
3948
)
4049
}
4150
}
@@ -66,17 +75,17 @@ nextflow_process {
6675
assert process.success
6776
assertAll(
6877
{ assert snapshot(
69-
process.out.mq_metrics,
70-
process.out.qd_metrics,
71-
process.out.gc_summary,
72-
process.out.gc_metrics,
73-
process.out.aln_metrics,
74-
process.out.is_metrics,
78+
path(process.out.mq_metrics[0][1]).readLines()[1..3].join("\n").md5(),
79+
path(process.out.qd_metrics[0][1]).readLines()[1..3].join("\n").md5(),
80+
path(process.out.gc_summary[0][1]).readLines()[1..3].join("\n").md5(),
81+
path(process.out.gc_metrics[0][1]).readLines()[1..3].join("\n").md5(),
82+
path(process.out.aln_metrics[0][1]).readLines()[1..3].join("\n").md5(),
83+
path(process.out.is_metrics[0][1]).readLines()[1..3].join("\n").md5(),
7584
file(process.out.mq_plot[0][1]).name,
7685
file(process.out.qd_plot[0][1]).name,
7786
file(process.out.is_plot[0][1]).name,
7887
file(process.out.gc_plot[0][1]).name,
79-
path(process.out.versions[0]).yaml
88+
process.out.findAll { key, val -> key.startsWith("versions") }
8089
).match()
8190
}
8291
)

0 commit comments

Comments
 (0)