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
15 changes: 4 additions & 11 deletions modules/nf-core/checkm/lineagewf/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,11 @@ nextflow_process {
tag "modules_nfcore"
tag "checkm"
tag "checkm/lineagewf"
tag "untar"

test("checkm - lineage_wf") {
def checkm_db
setup {
run("UNTAR") {
script "modules/nf-core/untar/main.nf"
process {
"""
input[0] = [ [], file('https://data.ace.uq.edu.au/public/CheckM_databases/checkm_data_2015_01_16.tar.gz', checkIfExists: true) ]
"""
}
}
checkm_db = extract('https://data.ace.uq.edu.au/public/CheckM_databases/checkm_data_2015_01_16.tar.gz')
}

when {
Expand All @@ -29,7 +22,7 @@ nextflow_process {
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fasta/contigs.fasta', checkIfExists: true)
]
input[1] = 'fasta'
input[2] = UNTAR.out.untar.map{_meta, db -> [db]}
input[2] = file('${checkm_db}')
"""
}
}
Expand All @@ -55,7 +48,7 @@ nextflow_process {
"""
input[0] = [
[ id:'test', single_end:false ], // meta map
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fasta/contigs.fasta', checkIfExists: true)
[]
]
input[1] = 'fasta'
input[2] = []
Expand Down
35 changes: 5 additions & 30 deletions modules/nf-core/checkm/qa/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,11 @@ nextflow_process {
tag "checkm"
tag "checkm/qa"
tag "checkm/lineagewf"
tag "untar"

test("checkm - qa") {
def checkm_db
setup {

run("UNTAR") {
script "modules/nf-core/untar/main.nf"
process {
"""
input[0] = [ [], file('https://data.ace.uq.edu.au/public/CheckM_databases/checkm_data_2015_01_16.tar.gz', checkIfExists: true) ]
"""
}
}
checkm_db = extract('https://data.ace.uq.edu.au/public/CheckM_databases/checkm_data_2015_01_16.tar.gz')

run("CHECKM_LINEAGEWF") {
script "../../lineagewf/main.nf"
Expand All @@ -31,7 +23,7 @@ nextflow_process {
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fasta/contigs.fasta', checkIfExists: true)
]
input[1] = 'fasta'
input[2] = UNTAR.out.untar.map{_meta, db -> [db]}
input[2] = file('${checkm_db}')
"""
}
}
Expand All @@ -43,7 +35,7 @@ nextflow_process {
input[0] = CHECKM_LINEAGEWF.out.checkm_output.join(CHECKM_LINEAGEWF.out.marker_file)
.map { v -> v + [[]] }
input[1] = []
input[2] = UNTAR.out.untar.map{_meta, db -> [db]}
input[2] = file('${checkm_db}')
"""
}
}
Expand All @@ -61,27 +53,10 @@ nextflow_process {

options "-stub"

setup {
run("CHECKM_LINEAGEWF") {
script "../../lineagewf/main.nf"
process {
"""
input[0] = [
[ id:'test', single_end:false ], // meta map
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fasta/contigs.fasta', checkIfExists: true)
]
input[1] = 'fasta'
input[2] = []
"""
}
}
}

when {
process {
"""
input[0] = CHECKM_LINEAGEWF.out.checkm_output.join(CHECKM_LINEAGEWF.out.marker_file)
.map { v -> v + [[]] }
input[0] = [ [ id:'test', single_end:false ], [], [], [] ]
input[1] = []
input[2] = []
"""
Expand Down

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions modules/nf-core/checkv/endtoend/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ channels:

dependencies:
- bioconda::checkv=1.0.3
- bioconda::diamond=2.1.8
6 changes: 3 additions & 3 deletions modules/nf-core/checkv/endtoend/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ process CHECKV_ENDTOEND {
label 'process_medium'

conda "${moduleDir}/environment.yml"
container "${ workflow.containerEngine in ['singularity', 'apptainer'] && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/checkv:1.0.3--pyhdfd78af_0':
'quay.io/biocontainers/checkv:1.0.3--pyhdfd78af_0' }"
container "${workflow.containerEngine in ['singularity', 'apptainer'] && !task.ext.singularity_pull_docker_container
? 'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/2f/2fb71a9ba838eae927761d0c123653534b4a83ef7a9b8fafe3c1de11b5ec71a4/data'
: 'community.wave.seqera.io/library/checkv_diamond:49f136fbaa08f899'}"

input:
tuple val(meta), path(fasta)
Expand Down
24 changes: 17 additions & 7 deletions modules/nf-core/checkv/endtoend/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ output:
e.g. [ id:'sample', bin:'1' ]
- ${prefix}/quality_summary.tsv:
type: file
description: CheckV's main output containing integrated results from the
three main modules (contamination, completeness, complete genomes)
with overall quality of contigs
description: CheckV's main output containing integrated results from the three main modules (contamination, completeness, complete genomes) with overall quality of contigs
pattern: "${prefix}/quality_summary.tsv"
ontologies: []
completeness:
Expand All @@ -67,8 +65,7 @@ output:
e.g. [ id:'sample', bin:'1' ]
- ${prefix}/contamination.tsv:
type: file
description: CheckV's detailed overview table on estimating
contamination
description: CheckV's detailed overview table on estimating contamination
pattern: "${prefix}/contamination.tsv"
ontologies: []
complete_genomes:
Expand All @@ -79,8 +76,7 @@ output:
e.g. [ id:'sample', bin:'1' ]
- ${prefix}/complete_genomes.tsv:
type: file
description: CheckV's detailed overview table on the identified putative
complete genomes
description: CheckV's detailed overview table on the identified putative complete genomes
pattern: "${prefix}/complete_genomes.tsv"
ontologies: []
proviruses:
Expand Down Expand Up @@ -130,3 +126,17 @@ authors:
- "@Joon-Klaps"
maintainers:
- "@Joon-Klaps"
containers:
docker:
linux/amd64:
name: community.wave.seqera.io/library/checkv_diamond:49f136fbaa08f899
build_id: bd-49f136fbaa08f899_1
scan_id: sc-aa93c398adef3c7c_1
singularity:
linux/amd64:
name: oras://community.wave.seqera.io/library/checkv_diamond:393e06ce022e73de
build_id: bd-393e06ce022e73de_1
https: https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/2f/2fb71a9ba838eae927761d0c123653534b4a83ef7a9b8fafe3c1de11b5ec71a4/data
conda:
linux/amd64:
lock_file: modules/nf-core/checkv/endtoend/.conda-lock/linux_amd64-bd-49f136fbaa08f899_1.txt
55 changes: 22 additions & 33 deletions modules/nf-core/checkv/endtoend/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -8,46 +8,32 @@ nextflow_process {
tag "modules_nfcore"
tag "checkv"
tag "checkv/endtoend"
tag "untar"
tag "gunzip"

setup {
run("UNTAR") {
script "../../../untar/main.nf"
process {
"""
input[0] = Channel.of(
[
[ id:'checkv_minimal_db' ],
file("https://github.com/nf-core/test-datasets/raw/phageannotator/modules/nfcore/checkv/endtoend/checkv_minimal_db.tar", checkIfExists: true)
]
)
"""
}
}

run("GUNZIP") {
script "../../../gunzip/main.nf"
process {
"""
input[0] = Channel.of(
[
[ id:'test' ],
file(params.modules_testdata_base_path + 'genomics/prokaryotes/bacteroides_fragilis/illumina/fasta/test1.contigs.fa.gz', checkIfExists: true)
]
)
"""
test("bacteroides_fragilis - illumina - test1_contigs_fa_gz") {
def checkv_db
setup {
checkv_db = extract('https://github.com/nf-core/test-datasets/raw/phageannotator/modules/nfcore/checkv/endtoend/checkv_minimal_db.tar').resolve('checkv_minimal_db')
run("GUNZIP") {
script "../../../gunzip/main.nf"
process {
"""
input[0] = channel.of(
[
[ id:'test' ],
file(params.modules_testdata_base_path + 'genomics/prokaryotes/bacteroides_fragilis/illumina/fasta/test1.contigs.fa.gz', checkIfExists: true)
]
)
"""
}
}
}
}

test("bacteroides_fragilis - illumina - test1_contigs_fa_gz") {

when {
process {
"""
input[0] = GUNZIP.out.gunzip
input[1] = UNTAR.out.untar.map { it[1] }
input[1] = file('${checkv_db}')
"""
}
}
Expand All @@ -69,11 +55,14 @@ nextflow_process {
}

test("bacteroides_fragilis - illumina - test1_contigs_fa_gz - stub") {

options "-stub"

when {
process {
"""
input[0] = GUNZIP.out.gunzip
input[1] = UNTAR.out.untar.map { it[1] }
input[0] = [ [ id:'test' ], [] ]
input[1] = []
"""
}
}
Expand Down
16 changes: 8 additions & 8 deletions modules/nf-core/checkv/endtoend/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 +66,23 @@
{
"id": "test"
},
"complete_genomes.tsv:md5,4afbc73b59d01b7c9fac30432a343eaf"
"complete_genomes.tsv:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
"completeness": [
[
{
"id": "test"
},
"completeness.tsv:md5,7b252af89a74e8ac83a7d81727f2f716"
"completeness.tsv:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
"contamination": [
[
{
"id": "test"
},
"contamination.tsv:md5,cd37c2aa2aaa60cdcd798a0d989cdac4"
"contamination.tsv:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
"proviruses": [
Expand All @@ -98,7 +98,7 @@
{
"id": "test"
},
"quality_summary.tsv:md5,104c579b018158b1c3f016adb0b69eb3"
"quality_summary.tsv:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
"versions_checkv": [
Expand All @@ -113,15 +113,15 @@
{
"id": "test"
},
"viruses.fna:md5,ea1d49a630943747f21d935d83ab4399"
"viruses.fna:md5,d41d8cd98f00b204e9800998ecf8427e"
]
]
}
],
"timestamp": "2026-03-11T21:49:22.109125194",
"timestamp": "2026-11-19T10:39:46.257596733",
"meta": {
"nf-test": "0.9.4",
"nextflow": "25.10.4"
"nf-test": "0.9.5",
"nextflow": "26.10.0"
}
}
}
Loading