Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions modules/nf-core/authentict/deam2cont/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ channels:
- bioconda
dependencies:
- bioconda::authentict=1.0.1
- bioconda::samtools=1.16.1
12 changes: 12 additions & 0 deletions modules/nf-core/authentict/deam2cont/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,16 @@ process AUTHENTICT_DEAM2CONT {
samtools: \$(echo \$(samtools --version 2>&1) | sed 's/^.*samtools //; s/Using.*\$//')
END_VERSIONS
"""

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

"""
touch ${prefix}.txt
cat <<-END_VERSIONS > versions.yml
"${task.process}":
authentict: \$(echo \$(AuthentiCT --version 2>&1) )
samtools: \$(echo \$(samtools --version 2>&1) | sed 's/^.*samtools //; s/Using.*\$//')
END_VERSIONS
"""
}
75 changes: 75 additions & 0 deletions modules/nf-core/authentict/deam2cont/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
nextflow_process {

name "Test Process AUTHENTICT_DEAM2CONT"

script "../main.nf"
process "AUTHENTICT_DEAM2CONT"

tag "modules"
tag "modules_nfcore"
tag "authentict"
tag "authentict/deam2cont"
tag "samtools"
tag "samtools/calmd"

setup {
run("SAMTOOLS_CALMD") {
script "../../../samtools/calmd/main.nf"

process {
"""
input[0] = [
[id:'test',single_end:false],// meta map
file(params.modules_testdata_base_path + "genomics/homo_sapiens/illumina/bam/test.paired_end.sorted.bam",checkIfExists:true)
]
input[1] = [
[id : "genome"],
file(params.modules_testdata_base_path + "genomics/homo_sapiens/genome/genome.fasta",checkIfExists:true)
]
"""
}
}
}

test("test_authentict_deam2cont") {
when {
process {
"""
input[0] = SAMTOOLS_CALMD.out.bam
input[1] = [[],[]]
input[2] = [[],[]]
"""
}
}
then {
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() }
)
}
}

test("test_authentict_deam2cont - stub") {

options '-stub'

when {
process {
"""
input[0] = SAMTOOLS_CALMD.out.bam
input[1] = [[],[]]
input[2] = [[],[]]
"""
}
}
then {
assertAll(
{ assert process.success },
{ assert snapshot(
process.out,
process.out.versions.collect{path(it).yaml}
).match() }
)
}
}
}
80 changes: 80 additions & 0 deletions modules/nf-core/authentict/deam2cont/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"test_authentict_deam2cont - stub": {
"content": [
{
"0": [
[
{
"id": "test",
"single_end": false
},
"test.txt:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
"1": [
"versions.yml:md5,961ace1ec9622bad5cf075b76410bdd2"
],
"txt": [
[
{
"id": "test",
"single_end": false
},
"test.txt:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
"versions": [
"versions.yml:md5,961ace1ec9622bad5cf075b76410bdd2"
]
},
[
{
"AUTHENTICT_DEAM2CONT": {
"authentict": "1.0.1",
"samtools": "1.16.1"
}
}
]
],
"meta": {
"nf-test": "0.9.2",
"nextflow": "24.10.5"
},
"timestamp": "2025-03-24T11:23:39.766851518"
},
"test_authentict_deam2cont": {
"content": [
{
"0": [
[
{
"id": "test",
"single_end": false
},
"test.txt:md5,ab81cf4fbb7eedea260798c5bcad6a5d"
]
],
"1": [
"versions.yml:md5,961ace1ec9622bad5cf075b76410bdd2"
],
"txt": [
[
{
"id": "test",
"single_end": false
},
"test.txt:md5,ab81cf4fbb7eedea260798c5bcad6a5d"
]
],
"versions": [
"versions.yml:md5,961ace1ec9622bad5cf075b76410bdd2"
]
}
],
"meta": {
"nf-test": "0.9.2",
"nextflow": "24.10.5"
},
"timestamp": "2025-03-24T11:23:30.499727901"
}
}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
authentict/deam2cont:
- modules/nf-core/authentict/deam2cont/**
- tests/modules/nf-core/authentict/deam2cont/**
bamtools/convert:
- modules/nf-core/bamtools/convert/**
- tests/modules/nf-core/bamtools/convert/**
Expand Down
19 changes: 0 additions & 19 deletions tests/modules/nf-core/authentict/deam2cont/main.nf

This file was deleted.

5 changes: 0 additions & 5 deletions tests/modules/nf-core/authentict/deam2cont/nextflow.config

This file was deleted.

12 changes: 0 additions & 12 deletions tests/modules/nf-core/authentict/deam2cont/test.yml

This file was deleted.

Loading