Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added nf-test for gatk4/gatherpileupsummaries #6312

Merged
merged 1 commit into from
Aug 26, 2024
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
2 changes: 1 addition & 1 deletion modules/nf-core/gatk4/gatherpileupsummaries/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ process GATK4_GATHERPILEUPSUMMARIES {

output:
tuple val(meta), path("*.pileups.table"), emit: table
path "versions.yml" , emit: versions
path "versions.yml" , emit: versions

when:
task.ext.when == null || task.ext.when
Expand Down
37 changes: 37 additions & 0 deletions modules/nf-core/gatk4/gatherpileupsummaries/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

nextflow_process {

name "Test Process GATK4_GATHERPILEUPSUMMARIES"
script "../main.nf"
process "GATK4_GATHERPILEUPSUMMARIES"
config "./nextflow.config"

tag "modules"
tag "modules_nfcore"
tag "gatk4"
tag "gatk4/gatherpileupsummaries"

test("test-gatk4-gatherpileupsummaries") {

when {
process {
"""
input[0] = [
[ id:'test', single_end:false ], // meta map
[ file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/gatk/test.pileups.table', checkIfExists: true) ]
]
input[1] = file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.dict', checkIfExists: true)

"""
}
}

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"test-gatk4-gatherpileupsummaries": {
"content": [
{
"0": [
[
{
"id": "test",
"single_end": false
},
"test.out.pileups.table:md5,8e0ca6f66e112bd2f7ec1d31a2d62469"
]
],
"1": [
"versions.yml:md5,d3772ab0d5963a88a2748fd83af76c02"
],
"table": [
[
{
"id": "test",
"single_end": false
},
"test.out.pileups.table:md5,8e0ca6f66e112bd2f7ec1d31a2d62469"
]
],
"versions": [
"versions.yml:md5,d3772ab0d5963a88a2748fd83af76c02"
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-26T12:18:40.835226"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
process {

publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }

withName: 'GATK4_GATHERPILEUPSUMMARIES' {
ext.prefix = { "${meta.id}.out" }
}
Expand Down
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,6 @@ gatk4/filtervarianttranches:
gatk4/gatherbqsrreports:
- modules/nf-core/gatk4/gatherbqsrreports/**
- tests/modules/nf-core/gatk4/gatherbqsrreports/**
gatk4/gatherpileupsummaries:
- modules/nf-core/gatk4/gatherpileupsummaries/**
- tests/modules/nf-core/gatk4/gatherpileupsummaries/**
gatk4/genotypegvcfs:
- modules/nf-core/gatk4/genotypegvcfs/**
- tests/modules/nf-core/gatk4/genotypegvcfs/**
Expand Down
18 changes: 0 additions & 18 deletions tests/modules/nf-core/gatk4/gatherpileupsummaries/main.nf

This file was deleted.

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

This file was deleted.

Loading