Add smart format selection to module

This commit is contained in:
Thomas A. Christensen II 2022-07-18 09:56:46 -05:00
parent 09f9a09304
commit 8c1b2a34f2
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -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://')