-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Improve the way Bakta is used (#54)
* chore: Update bakta module * fix: Change path to bakta module * refactor: Rework how use bakta param is used - Now its a bool whether to run Bakta or not - If no --bakta-db is set but --use_bakta is set, the baktadbdownload module will run - By default, prokka is still the one used * feat: Add config for process single * test: Use bakta in annotation test * refactor: Use light bakta db in test * refactor: Use light db by default * Revert "test: Use bakta in annotation test" This reverts commit 343ab08. * test: Add light to ann test * refactor: Make Bakta the default ann software
- Loading branch information
Showing
14 changed files
with
166 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
process BAKTA_BAKTADBDOWNLOAD { | ||
label 'process_single' | ||
|
||
conda "bioconda::bakta=1.7.0" | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/bakta:1.7.0--pyhdfd78af_1' : | ||
'quay.io/biocontainers/bakta:1.7.0--pyhdfd78af_1' }" | ||
|
||
output: | ||
path "db*" , emit: db | ||
path "versions.yml" , emit: versions | ||
|
||
when: | ||
task.ext.when == null || task.ext.when | ||
|
||
script: | ||
def args = task.ext.args ?: '' | ||
""" | ||
bakta_db \\ | ||
download \\ | ||
$args | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
bakta: \$(echo \$(bakta_db --version) 2>&1 | cut -f '2' -d ' ') | ||
END_VERSIONS | ||
""" | ||
|
||
stub: | ||
def args = task.ext.args ?: '' | ||
""" | ||
echo "bakta_db \\ | ||
download \\ | ||
$args" | ||
mkdir db | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
bakta: \$(echo \$(bakta_db --version) 2>&1 | cut -f '2' -d ' ') | ||
END_VERSIONS | ||
""" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: "bakta_baktadbdownload" | ||
description: Downloads BAKTA database from Zenodo | ||
keywords: | ||
- bakta | ||
- annotation | ||
- fasta | ||
- bacteria | ||
- database | ||
- download | ||
tools: | ||
- bakta: | ||
description: Rapid & standardized annotation of bacterial genomes, MAGs & plasmids | ||
homepage: https://github.com/oschwengers/bakta | ||
documentation: https://github.com/oschwengers/bakta | ||
tool_dev_url: https://github.com/oschwengers/bakta | ||
doi: "10.1099/mgen.0.000685" | ||
licence: ["GPL v3"] | ||
|
||
output: | ||
- versions: | ||
type: file | ||
description: File containing software versions | ||
pattern: "versions.yml" | ||
- db: | ||
type: directory | ||
description: BAKTA database directory | ||
pattern: "db*/" | ||
|
||
authors: | ||
- "@jfy133" | ||
- "@jasmezz" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.