Skip to content

Commit e3fb197

Browse files
committed
unicycler: Add parameter --long_fastq
1 parent 97b50cd commit e3fb197

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

flowcraft/generator/templates/unicycler.nf

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ process unicycler_{{pid}} {
77

88
input:
99
set sample_id, file(fastq_pair) from {{input_channel}}
10+
file long_fastq from params.long_fastq{{param_id}} ?
11+
Channel.fromPath(params.long_fastq{{param_id}}) :
12+
Channel.value("NA")
1013

1114
output:
1215
set sample_id, file('assembly.fasta') into {{output_channel}}
@@ -16,7 +19,10 @@ process unicycler_{{pid}} {
1619
{% endwith %}
1720

1821
script:
19-
"unicycler -t $task.cpus -o . --no_correct --no_pilon -1 ${fastq_pair[0]} -2 ${fastq_pair[1]}"
22+
command = "unicycler -t $task.cpus -o . --no_correct --no_pilon -1 ${fastq_pair[0]} -2 ${fastq_pair[1]}"
23+
if (params.long_fastq{{param_id}})
24+
command += " -l ${long_fastq}"
25+
command
2026
}
2127

2228
{{forks}}

0 commit comments

Comments
 (0)