Skip to content

Commit

Permalink
added version
Browse files Browse the repository at this point in the history
  • Loading branch information
erinyoung committed Feb 22, 2024
1 parent 430ba20 commit e7a5a3e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion modules/local/blobtools.nf
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ process blobtools_view {
path "logs/${task.process}/*.log" , emit: log
path "versions.yml" , emit: versions

when:
task.ext.when == null || task.ext.when

shell:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
"""
mkdir -p blobtools logs/${task.process}
log_file=logs/${task.process}/${prefix}.${workflow.sessionId}.log
Expand Down Expand Up @@ -86,9 +91,14 @@ process blobtools_plot {
tuple val(meta), file("blobtools/*_blobtools.txt"), emit: results
path "blobtools/*_summary.txt" , emit: collect
path "logs/${task.process}/*.log" , emit: log
path "versions.yml" , emit: versions
path "versions.yml" , emit: versions

when:
task.ext.when == null || task.ext.when

shell:
def args = task.ext.args ?: '--format png -r species'
def prefix = task.ext.prefix ?: "${meta.id}"
"""
mkdir -p blobtools logs/${task.process}
log_file=logs/${task.process}/${prefix}.${workflow.sessionId}.log
Expand Down

0 comments on commit e7a5a3e

Please sign in to comment.