diff --git a/modules/local/staramr/main.nf b/modules/local/staramr/main.nf index e682a7d..98e37e0 100644 --- a/modules/local/staramr/main.nf +++ b/modules/local/staramr/main.nf @@ -49,7 +49,7 @@ process STARAMR_SEARCH { for f in ${prefix}_results/* ; do mv "\$f" \$(echo \$f | sed 's;/;/${prefix}_;'); done # Add extension (.staramr) to the names of output files (to simplify output differntiation amongst other modules) - for f in ${prefix}_results/*{.tsv,.xlsx,.txt} ; do mv "\$f" \$(echo \$f | sed 's;\\.;\\.staramr\\.;'); done + for f in ${prefix}_results/*{.tsv,.xlsx,.txt} ; do mv "\$f" \$(echo \$f | sed 's;\\.\\([^\\.]*\\)\$;\\.staramr\\.\\1;'); done cat <<-END_VERSIONS > versions.yml "${task.process}":