Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
339da05
Updated rseqc/bamstat: Added BAI support per #9460 & topics-based ver…
rhassaine Dec 10, 2025
d99323a
Updated rseqc/inferexperiment: Added BAI support per #9460 & topics-b…
rhassaine Dec 10, 2025
fe31835
Updated rseqc/innerdistance: Added BAI support per #9460 & topics-bas…
rhassaine Dec 10, 2025
af35cd5
Updated rseqc/junctionannotation: Added BAI support per #9460 & topic…
rhassaine Dec 10, 2025
52f1df3
Updated rseqc/junctionsaturation: Added BAI support per #9460 & topic…
rhassaine Dec 10, 2025
0cb997f
Updated rseqc/readdistribution: Added BAI support per #9460 & topics-…
rhassaine Dec 10, 2025
b950b4a
Updated rseqc/readduplication: Added BAI support per #9460 & topics-b…
rhassaine Dec 10, 2025
b9fa5cd
Updated rseqc/tin: Added topics-based versions
rhassaine Dec 10, 2025
d2875eb
Updated bam_rseqc subworkflow - BAI support, channel syntax fix - top…
rhassaine Dec 10, 2025
1ea6fd0
Failed snapshot update - linting error
rhassaine Dec 12, 2025
f05f109
Snapshot Update & Channel syntax fix
rhassaine Dec 15, 2025
a428c1b
Channel syntax update
rhassaine Dec 16, 2025
ac88cb6
Test & Snapshot Updated - version assertion to circumvent nf-core too…
rhassaine Dec 16, 2025
09ea7cf
Merge branch 'nf-core:master' into rseqc_add_bam_index
rhassaine Dec 16, 2025
48ab9e6
Fixed null entries in snapshot
rhassaine Dec 16, 2025
98889db
Updated subworkflow assertions on optional files (& snapshot) - migra…
rhassaine Dec 16, 2025
6ca229f
Linting failures fixes - dedicated versions assertions
rhassaine Dec 16, 2025
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
2 changes: 1 addition & 1 deletion modules/nf-core/rseqc/bamstat/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ channels:
- conda-forge
- bioconda
dependencies:
- bioconda::rseqc=5.0.3
- bioconda::rseqc=5.0.4
- conda-forge::r-base=3.5
18 changes: 4 additions & 14 deletions modules/nf-core/rseqc/bamstat/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ process RSEQC_BAMSTAT {

conda "${moduleDir}/environment.yml"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/rseqc:5.0.3--py39hf95cd2a_0' :
'biocontainers/rseqc:5.0.3--py39hf95cd2a_0' }"
'https://depot.galaxyproject.org/singularity/rseqc:5.0.4--pyhdfd78af_1' :
'biocontainers/rseqc:5.0.4--pyhdfd78af_1' }"

input:
tuple val(meta), path(bam)
tuple val(meta), path(bam), path(bai)

output:
tuple val(meta), path("*.bam_stat.txt"), emit: txt
path "versions.yml" , emit: versions
tuple val("${task.process}"), val('rseqc'), eval('bam_stat.py --version | sed "s/bam_stat.py //"'), emit: versions_rseqc, topic: versions

when:
task.ext.when == null || task.ext.when
Expand All @@ -25,21 +25,11 @@ process RSEQC_BAMSTAT {
-i $bam \\
$args \\
> ${prefix}.bam_stat.txt

cat <<-END_VERSIONS > versions.yml
"${task.process}":
rseqc: \$(bam_stat.py --version | sed -e "s/bam_stat.py //g")
END_VERSIONS
"""

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

cat <<-END_VERSIONS > versions.yml
"${task.process}":
rseqc: \$(bam_stat.py --version | sed -e "s/bam_stat.py //g")
END_VERSIONS
"""
}
33 changes: 27 additions & 6 deletions modules/nf-core/rseqc/bamstat/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ input:
description: the bam file to calculate statistics of
pattern: "*.{bam}"
ontologies: []
- bai:
type: file
description: BAM index file
pattern: "*.{bai}"
ontologies: []
output:
txt:
- - meta:
Expand All @@ -37,16 +42,32 @@ output:
description: bam statistics report
pattern: "*.bam_stat.txt"
ontologies: []
versions_rseqc:
- - ${task.process}:
type: string
description: The process the versions were collected from
- rseqc:
type: string
description: The tool name
- bam_stat.py --version | sed "s/bam_stat.py //":
type: eval
description: The expression to obtain the version of the tool
topics:
versions:
- versions.yml:
type: file
description: File containing software versions
pattern: "versions.yml"
ontologies:
- edam: http://edamontology.org/format_3750 # YAML
- - ${task.process}:
type: string
description: The process the versions were collected from
- rseqc:
type: string
description: The tool name
- bam_stat.py --version | sed "s/bam_stat.py //":
type: eval
description: The expression to obtain the version of the tool
authors:
- "@drpatelh"
- "@kevinmenden"
- "@rhassaine"
maintainers:
- "@drpatelh"
- "@kevinmenden"
- "@rhassaine"
28 changes: 17 additions & 11 deletions modules/nf-core/rseqc/bamstat/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -16,38 +16,44 @@ nextflow_process {
when {
process {
"""
input[0] = [
input[0] = channel.of([
[ id:'test' ], // meta map
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/bam/test.paired_end.sorted.bam')
]
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/bam/test.paired_end.sorted.bam', checkIfExists: true),
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/bam/test.paired_end.sorted.bam.bai', checkIfExists: true)
])
"""
}
}

then {
assert process.success
assert snapshot(process.out).match()
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() }
)
}
}

test("sarscov2 - [meta] - bam - stub") {

options "-stub"
options "-stub"

when {
process {
"""
input[0] = [
input[0] = channel.of([
[ id:'test' ], // meta map
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/bam/test.paired_end.sorted.bam')
]
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/bam/test.paired_end.sorted.bam', checkIfExists: true),
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/bam/test.paired_end.sorted.bam.bai', checkIfExists: true)
])
"""
}
}

then {
assert process.success
assert snapshot(process.out).match()
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() }
)
}
}
}
40 changes: 28 additions & 12 deletions modules/nf-core/rseqc/bamstat/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
]
],
"1": [
"versions.yml:md5,58f74a7ff9d2966142c81a4a4735dbf3"
[
"RSEQC_BAMSTAT",
"rseqc",
"5.0.4"
]
],
"txt": [
[
Expand All @@ -21,16 +25,20 @@
"test.bam_stat.txt:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
"versions": [
"versions.yml:md5,58f74a7ff9d2966142c81a4a4735dbf3"
"versions_rseqc": [
[
"RSEQC_BAMSTAT",
"rseqc",
"5.0.4"
]
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.2"
"nf-test": "0.9.2",
"nextflow": "25.10.2"
},
"timestamp": "2024-06-21T09:16:13.970299"
"timestamp": "2025-12-10T12:09:27.652778872"
},
"sarscov2 - [meta] - bam": {
"content": [
Expand All @@ -44,7 +52,11 @@
]
],
"1": [
"versions.yml:md5,58f74a7ff9d2966142c81a4a4735dbf3"
[
"RSEQC_BAMSTAT",
"rseqc",
"5.0.4"
]
],
"txt": [
[
Expand All @@ -54,15 +66,19 @@
"test.bam_stat.txt:md5,2675857864c1d1139b2a19d25dc36b09"
]
],
"versions": [
"versions.yml:md5,58f74a7ff9d2966142c81a4a4735dbf3"
"versions_rseqc": [
[
"RSEQC_BAMSTAT",
"rseqc",
"5.0.4"
]
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
"nf-test": "0.9.2",
"nextflow": "25.10.2"
},
"timestamp": "2023-12-14T17:00:23.830276754"
"timestamp": "2025-12-10T12:09:21.393873778"
}
}
2 changes: 1 addition & 1 deletion modules/nf-core/rseqc/inferexperiment/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ channels:
- conda-forge
- bioconda
dependencies:
- bioconda::rseqc=5.0.3
- bioconda::rseqc=5.0.4
- conda-forge::r-base=3.5
18 changes: 4 additions & 14 deletions modules/nf-core/rseqc/inferexperiment/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ process RSEQC_INFEREXPERIMENT {

conda "${moduleDir}/environment.yml"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/rseqc:5.0.3--py39hf95cd2a_0' :
'biocontainers/rseqc:5.0.3--py39hf95cd2a_0' }"
'https://depot.galaxyproject.org/singularity/rseqc:5.0.4--pyhdfd78af_1' :
'biocontainers/rseqc:5.0.4--pyhdfd78af_1' }"

input:
tuple val(meta), path(bam)
tuple val(meta), path(bam), path(bai)
path bed

output:
tuple val(meta), path("*.infer_experiment.txt"), emit: txt
path "versions.yml" , emit: versions
tuple val("${task.process}"), val('rseqc'), eval('infer_experiment.py --version | sed "s/infer_experiment.py //"'), emit: versions_rseqc, topic: versions

when:
task.ext.when == null || task.ext.when
Expand All @@ -27,21 +27,11 @@ process RSEQC_INFEREXPERIMENT {
-r $bed \\
$args \\
> ${prefix}.infer_experiment.txt

cat <<-END_VERSIONS > versions.yml
"${task.process}":
rseqc: \$(infer_experiment.py --version | sed -e "s/infer_experiment.py //g")
END_VERSIONS
"""

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

cat <<-END_VERSIONS > versions.yml
"${task.process}":
rseqc: \$(infer_experiment.py --version | sed -e "s/infer_experiment.py //g")
END_VERSIONS
"""
}
35 changes: 29 additions & 6 deletions modules/nf-core/rseqc/inferexperiment/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ input:
description: the bam file to calculate statistics of
pattern: "*.{bam}"
ontologies: []
- bai:
type: file
description: BAM index file
pattern: "*.{bai}"
ontologies: []
- bed:
type: file
description: a bed file for the reference gene model
Expand All @@ -42,16 +47,34 @@ output:
description: infer_experiment results report
pattern: "*.infer_experiment.txt"
ontologies: []
versions_rseqc:
- - ${task.process}:
type: string
description: The name of the process
- rseqc:
type: string
description: The name of the tool
- infer_experiment.py --version | sed "s/infer_experiment.py //":
type: eval
description: The expression to obtain the version of the tool

topics:
versions:
- versions.yml:
type: file
description: File containing software versions
pattern: "versions.yml"
ontologies:
- edam: http://edamontology.org/format_3750 # YAML
- - ${task.process}:
type: string
description: The name of the process
- rseqc:
type: string
description: The name of the tool
- infer_experiment.py --version | sed "s/infer_experiment.py //":
type: eval
description: The expression to obtain the version of the tool

authors:
- "@drpatelh"
- "@kevinmenden"
- "@rhassaine"
maintainers:
- "@drpatelh"
- "@kevinmenden"
- "@rhassaine"
14 changes: 8 additions & 6 deletions modules/nf-core/rseqc/inferexperiment/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ nextflow_process {
when {
process {
"""
input[0] = Channel.of([
input[0] = channel.of([
[ id:'test' ], // meta map
file(params.modules_testdata_base_path + "genomics/sarscov2/illumina/bam/test.paired_end.sorted.bam", checkIfExists: true)
file(params.modules_testdata_base_path + "genomics/sarscov2/illumina/bam/test.paired_end.sorted.bam", checkIfExists: true),
file(params.modules_testdata_base_path + "genomics/sarscov2/illumina/bam/test.paired_end.sorted.bam.bai", checkIfExists: true)
])
input[1] = Channel.of(file(params.modules_testdata_base_path + "genomics/sarscov2/genome/bed/test.bed", checkIfExists: true))
input[1] = channel.of(file(params.modules_testdata_base_path + "genomics/sarscov2/genome/bed/test.bed", checkIfExists: true))
"""
}
}
Expand All @@ -37,11 +38,12 @@ nextflow_process {
when {
process {
"""
input[0] = Channel.of([
input[0] = channel.of([
[ id:'test' ], // meta map
file(params.modules_testdata_base_path + "genomics/sarscov2/illumina/bam/test.paired_end.sorted.bam", checkIfExists: true)
file(params.modules_testdata_base_path + "genomics/sarscov2/illumina/bam/test.paired_end.sorted.bam", checkIfExists: true),
file(params.modules_testdata_base_path + "genomics/sarscov2/illumina/bam/test.paired_end.sorted.bam.bai", checkIfExists: true)
])
input[1] = Channel.of(file(params.modules_testdata_base_path + "genomics/sarscov2/genome/bed/test.bed", checkIfExists: true))
input[1] = channel.of(file(params.modules_testdata_base_path + "genomics/sarscov2/genome/bed/test.bed", checkIfExists: true))
"""
}
}
Expand Down
Loading
Loading