Skip to content

Commit

Permalink
MEGAHIT: fix single-end input (#7190)
Browse files Browse the repository at this point in the history
* Fix space to command separated lst

* Put hte join the right place
  • Loading branch information
jfy133 authored Dec 10, 2024
1 parent d3555a4 commit 9142b39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/nf-core/megahit/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ process MEGAHIT {
def args = task.ext.args ?: ''
def args2 = task.ext.args2 ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def reads_command = meta.single_end || !reads2 ? "-r ${reads1}" : "-1 ${reads1.join(',')} -2 ${reads2.join(',')}"
def reads_command = meta.single_end || !reads2 ? "-r ${reads1.join(',')}" : "-1 ${reads1.join(',')} -2 ${reads2.join(',')}"
"""
megahit \\
${reads_command} \\
Expand Down

0 comments on commit 9142b39

Please sign in to comment.