Skip to content

Commit

Permalink
A subdirectory for download seems needed
Browse files Browse the repository at this point in the history
  • Loading branch information
erikrikarddaniel committed Feb 8, 2024
1 parent 4dabedb commit 4f5f0a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 4 additions & 6 deletions modules/local/eggnog/download.nf
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,19 @@ process EGGNOG_DOWNLOAD {
//path "eggnog_dbpath"

output:
//path("eggnog_db") , emit: db
path('./.'), emit: db
path('*'), emit: files
path("eggnog_db") , emit: db
path "versions.yml", emit: versions

script:
def args = task.ext.args ?: ''
"""

#mkdir eggnog_db
"""
mkdir eggnog_db
download_eggnog_data.py \\
$args \\
-y \\
--data_dir .
--data_dir eggnog_db
cat <<-END_VERSIONS > versions.yml
"${task.process}":
Expand Down
1 change: 1 addition & 0 deletions subworkflows/local/eggnog.nf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ workflow EGGNOG {
ch_versions = Channel.empty()

if ( createdb ) {
// Not allowed, or?
if ( ! file(dbpath).exists() ) {
file(dbpath).mkdir()
}
Expand Down

0 comments on commit 4f5f0a6

Please sign in to comment.