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

pangolin - use seqera containers + nf-test; rm pytests #6740

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions modules/nf-core/pangolin/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ process PANGOLIN {

conda "${moduleDir}/environment.yml"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/pangolin:4.2--pyhdfd78af_1' :
'biocontainers/pangolin:4.2--pyhdfd78af_1' }"
'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/71/7133e48e32b7baa883b8805e600a143b65316e8a014458b8eb4429eb3596f165/data' :
'community.wave.seqera.io/library/pangolin:4.2--3bc97f62c0074e70' }"

input:
tuple val(meta), path(fasta)
Expand Down
6 changes: 5 additions & 1 deletion modules/nf-core/pangolin/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ keywords:
- pangolin
- lineage
tools:
- star:
- pangolin:
description: |
Phylogenetic Assignment of Named Global Outbreak LINeages
homepage: https://github.com/cov-lineages/pangolin#pangolearn-description
Expand All @@ -22,6 +22,10 @@ input:
description: |
The genome assembly to be evaluated
output:
- meta:
type: map
description: |
Groovy Map containing sample information
- report:
- meta:
type: file
Expand Down
57 changes: 57 additions & 0 deletions modules/nf-core/pangolin/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
nextflow_process {

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

tag "modules"
tag "modules_nfcore"
tag "pangolin"

test("sarscov2 genome [fasta]") {

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

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

}

test("sarscov2 genome [fasta] - stub") {

options "-stub"

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

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

}

}
48 changes: 48 additions & 0 deletions modules/nf-core/pangolin/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"sarscov2 genome [fasta] - stub": {
"content": [
{
"0": [

],
"1": [

],
"report": [

],
"versions": [

]
}
],
"meta": {
"nf-test": "0.9.0",
"nextflow": "24.04.4"
},
"timestamp": "2024-10-06T09:59:41.44254517"
},
"sarscov2 genome [fasta]": {
"content": [
{
"0": [

],
"1": [

],
"report": [

],
"versions": [

]
}
],
"meta": {
"nf-test": "0.9.0",
"nextflow": "24.04.4"
},
"timestamp": "2024-10-06T09:59:31.881242857"
}
}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ nucmer:
oncocnv:
- modules/nf-core/oncocnv/**
- tests/modules/nf-core/oncocnv/**
pangolin:
- modules/nf-core/pangolin/**
- tests/modules/nf-core/pangolin/**
parabricks/applybqsr:
- modules/nf-core/parabricks/applybqsr/**
- tests/modules/nf-core/parabricks/applybqsr/**
Expand Down
12 changes: 0 additions & 12 deletions tests/modules/nf-core/pangolin/main.nf

This file was deleted.

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

This file was deleted.

7 changes: 0 additions & 7 deletions tests/modules/nf-core/pangolin/test.yml

This file was deleted.

Loading