diff --git a/db_setup.nf b/db_setup.nf index 4acb817e4..37d667f3e 100644 --- a/db_setup.nf +++ b/db_setup.nf @@ -151,8 +151,6 @@ process prepare_swissprot { process download_vfdb { - publishDir "$params.vf_db", mode: "move" - output: tuple path("vfdb.fasta"), path("VFs.xls") @@ -167,6 +165,24 @@ process download_vfdb { """ } +process prepare_vfdb { + container "$params.blast_container" + conda "$baseDir/conda/blast.yaml" + + publishDir "$params.vf_db", mode: "move" + + input: + tuple path(vfdb_fasta), path(vf_descr) + + output: + path("*", includeInputs: true) + + script: + """ + makeblastdb -dbtype prot -in $vfdb_fasta + """ +} + workflow setup_cogg_db { download_cog_cdd() | setup_cog_cdd } @@ -193,7 +209,7 @@ workflow setup_swissprot_db { } workflow setup_vfdb { - download_vfdb() + download_vfdb() | prepare_vfdb } workflow {