Skip to content

Commit

Permalink
Update main.nf to include stub (#3876)
Browse files Browse the repository at this point in the history
* Update main.nf to include stub

Adding the stub for SeqKit Sliding

* Review fix
  • Loading branch information
DLBPointon authored Sep 28, 2023
1 parent 20d58a6 commit 34af8de
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions modules/nf-core/seqkit/sliding/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,18 @@ process SEQKIT_SLIDING {
seqkit: \$( seqkit | sed '3!d; s/Version: //' )
END_VERSIONS
"""

stub:
prefix = task.ext.prefix ?: "${meta.id}"
if ("$fastx" ==~ /.+\.fasta$|.+\.fa$|.+\.fas$|.+\.fna$/) {
extension = "fasta"
}
"""
touch ${prefix}.${extension}
cat <<-END_VERSIONS > versions.yml
"${task.process}":
seqkit: \$( seqkit | sed '3!d; s/Version: //' )
END_VERSIONS
"""
}

0 comments on commit 34af8de

Please sign in to comment.