Skip to content

Commit

Permalink
Prepare VFDB for blast.
Browse files Browse the repository at this point in the history
  • Loading branch information
njohner committed Feb 13, 2024
1 parent 7f97dcc commit 96a84fe
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions db_setup.nf
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ process prepare_swissprot {

process download_vfdb {

publishDir "$params.vf_db", mode: "move"

output:
tuple path("vfdb.fasta"), path("VFs.xls")

Expand All @@ -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
}
Expand All @@ -193,7 +209,7 @@ workflow setup_swissprot_db {
}

workflow setup_vfdb {
download_vfdb()
download_vfdb() | prepare_vfdb
}

workflow {
Expand Down

0 comments on commit 96a84fe

Please sign in to comment.