mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 02:58:17 +00:00
Add smart format selection to module
This commit is contained in:
parent
09f9a09304
commit
8c1b2a34f2
1 changed files with 2 additions and 1 deletions
|
@ -21,13 +21,14 @@ process EMBOSS_SEQRET {
|
|||
script:
|
||||
def args = task.ext.args ?: ''
|
||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||
def osformat = args.contains('-osformat') ? '' : "-osformat ${out_ext}"
|
||||
"""
|
||||
seqret \\
|
||||
${args} \\
|
||||
-sequence ${sequence} \\
|
||||
${osformat} \\
|
||||
-outseq ${prefix}.${out_ext}
|
||||
|
||||
|
||||
cat <<-END_VERSIONS > versions.yml
|
||||
"${task.process}":
|
||||
emboss: \$(echo \$(seqret -version 2>&1) | sed 's/EMBOSS://')
|
||||
|
|
Loading…
Reference in a new issue