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
7 changes: 3 additions & 4 deletions modules/nf-core/gem2/gemmappability/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ process GEM2_GEMMAPPABILITY {
task.ext.when == null || task.ext.when

script:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def VERSION = '20200110' // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions.
"""
gem-mappability \\
Expand All @@ -38,8 +38,7 @@ process GEM2_GEMMAPPABILITY {
"""

stub:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def prefix = task.ext.prefix ?: "${meta.id}"
def VERSION = '20200110' // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions.

"""
Expand Down
70 changes: 70 additions & 0 deletions modules/nf-core/gem2/gemmappability/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
nextflow_process {

name "Test Process GEM2_GEMMAPPABILITY"
script "../main.nf"
process "GEM2_GEMMAPPABILITY"

tag "modules"
tag "modules_nfcore"
tag "gem2"
tag "gem2/gemmappability"
tag "gem2/gemindexer"

setup {
run("GEM2_GEMINDEXER") {
script "../../gemindexer/main.nf"

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

test("sarscov2 - fasta") {

when {
process {
"""
input[0] = GEM2_GEMINDEXER.out.index
input[1] = "100"
"""
}
}
then {
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() }
)
}
}


test("sarscov2 - fasta -- stub") {
options '-stub'
when {
params {
module_args = ''
}
process {
"""
input[0] = GEM2_GEMINDEXER.out.index
input[1] = "100"
"""
}
}
then {
assertAll(
{ assert process.success },
{ assert snapshot(
process.out,
path(process.out.versions[0]).yaml
).match() }
)
}
}
}
77 changes: 77 additions & 0 deletions modules/nf-core/gem2/gemmappability/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"sarscov2 - fasta -- stub": {
"content": [
{
"0": [
[
{
"id": "test",
"single_end": false
},
"test.mappability:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
"1": [
"versions.yml:md5,a685288af01f7b7a98cb7f042c44f323"
],
"map": [
[
{
"id": "test",
"single_end": false
},
"test.mappability:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
"versions": [
"versions.yml:md5,a685288af01f7b7a98cb7f042c44f323"
]
},
{
"GEM2_GEMMAPPABILITY": {
"gem2": 20200110
}
}
],
"meta": {
"nf-test": "0.9.2",
"nextflow": "24.10.4"
},
"timestamp": "2025-04-11T15:41:25.596792189"
},
"sarscov2 - fasta": {
"content": [
{
"0": [
[
{
"id": "test",
"single_end": false
},
"test.mappability:md5,8380b048fec0e8c4f104f49d2bf784c4"
]
],
"1": [
"versions.yml:md5,a685288af01f7b7a98cb7f042c44f323"
],
"map": [
[
{
"id": "test",
"single_end": false
},
"test.mappability:md5,8380b048fec0e8c4f104f49d2bf784c4"
]
],
"versions": [
"versions.yml:md5,a685288af01f7b7a98cb7f042c44f323"
]
}
],
"meta": {
"nf-test": "0.9.2",
"nextflow": "24.10.4"
},
"timestamp": "2025-04-11T15:40:30.596290605"
}
}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ gangstr:
gatk/indelrealigner:
- modules/nf-core/gatk/indelrealigner/**
- tests/modules/nf-core/gatk/indelrealigner/**
gem2/gemmappability:
- modules/nf-core/gem2/gemmappability/**
- tests/modules/nf-core/gem2/gemmappability/**
genescopefk:
- modules/nf-core/genescopefk/**
- tests/modules/nf-core/genescopefk/**
Expand Down
18 changes: 0 additions & 18 deletions tests/modules/nf-core/gem2/gemmappability/main.nf

This file was deleted.

8 changes: 0 additions & 8 deletions tests/modules/nf-core/gem2/gemmappability/nextflow.config

This file was deleted.

9 changes: 0 additions & 9 deletions tests/modules/nf-core/gem2/gemmappability/test.yml

This file was deleted.

Loading