We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97b50cd commit e3fb197Copy full SHA for e3fb197
flowcraft/generator/templates/unicycler.nf
@@ -7,6 +7,9 @@ process unicycler_{{pid}} {
7
8
input:
9
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")
13
14
output:
15
set sample_id, file('assembly.fasta') into {{output_channel}}
@@ -16,7 +19,10 @@ process unicycler_{{pid}} {
16
19
{% endwith %}
17
20
18
21
script:
- "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
26
}
27
28
{{forks}}
0 commit comments