Skip to content

Commit

Permalink
chore: Update bakta db download version
Browse files Browse the repository at this point in the history
  • Loading branch information
jvfe committed Jul 22, 2024
1 parent 370843b commit d71fc8b
Show file tree
Hide file tree
Showing 8 changed files with 119 additions and 4 deletions.
14 changes: 14 additions & 0 deletions modules/nf-core/bakta/baktadbdownload/bakta-baktadbdownload.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Changes in module 'nf-core/bakta/baktadbdownload'
--- modules/nf-core/bakta/baktadbdownload/main.nf
+++ modules/nf-core/bakta/baktadbdownload/main.nf
@@ -4,7 +4,7 @@
conda "${moduleDir}/environment.yml"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/bakta:1.9.3--pyhdfd78af_0' :
- 'biocontainers/bakta:1.9.3--pyhdfd78af_0' }"
+ 'quay.io/biocontainers/bakta:1.7.0--pyhdfd78af_1' }"

output:
path "db*" , emit: db

************************************************************
7 changes: 7 additions & 0 deletions modules/nf-core/bakta/baktadbdownload/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: bakta_baktadbdownload
channels:
- conda-forge
- bioconda
- defaults
dependencies:
- bioconda::bakta=1.9.3
4 changes: 2 additions & 2 deletions modules/nf-core/bakta/baktadbdownload/main.nf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
process BAKTA_BAKTADBDOWNLOAD {
label 'process_single'

conda "bioconda::bakta=1.7.0"
conda "${moduleDir}/environment.yml"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/bakta:1.7.0--pyhdfd78af_1' :
'https://depot.galaxyproject.org/singularity/bakta:1.9.3--pyhdfd78af_0' :
'quay.io/biocontainers/bakta:1.7.0--pyhdfd78af_1' }"

output:
Expand Down
5 changes: 3 additions & 2 deletions modules/nf-core/bakta/baktadbdownload/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ tools:
tool_dev_url: https://github.com/oschwengers/bakta
doi: "10.1099/mgen.0.000685"
licence: ["GPL v3"]

output:
- versions:
type: file
Expand All @@ -25,7 +24,9 @@ output:
type: directory
description: BAKTA database directory
pattern: "db*/"

authors:
- "@jfy133"
- "@jasmezz"
maintainers:
- "@jfy133"
- "@jasmezz"
55 changes: 55 additions & 0 deletions modules/nf-core/bakta/baktadbdownload/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
nextflow_process {

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

tag "modules"
tag "modules_nfcore"
tag "bakta"
tag "bakta/baktadbdownload"

test("Bakta database download") {

when {
process {
"""
"""
}
}

then {
assertAll(
{ assert process.success },
{ assert path(process.out.db.get(0)).exists() },
{ assert snapshot(process.out.versions).match() }
)
}

}

test("Bakta database download - stub") {

options "-stub"

when {
process {
"""
"""
}
}

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

}

}
29 changes: 29 additions & 0 deletions modules/nf-core/bakta/baktadbdownload/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"Bakta database download": {
"content": [
[
"versions.yml:md5,df9b091b08a41b7d5eef95727b7eac29"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
},
"timestamp": "2024-03-19T11:34:41.812416438"
},
"Bakta database download - stub": {
"content": [
[
[

],
"versions.yml:md5,df9b091b08a41b7d5eef95727b7eac29"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
},
"timestamp": "2024-03-19T11:35:01.082923401"
}
}
7 changes: 7 additions & 0 deletions modules/nf-core/bakta/baktadbdownload/tests/nextflow.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
process {

withName: 'BAKTA_BAKTADBDOWNLOAD' {
ext.args = "--type light"
}

}
2 changes: 2 additions & 0 deletions modules/nf-core/bakta/baktadbdownload/tests/tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bakta/baktadbdownload:
- "modules/nf-core/bakta/baktadbdownload/**"

0 comments on commit d71fc8b

Please sign in to comment.