Skip to content

Commit 2889730

Browse files
committed
added pilon process as of issue #5, and moved quast analysis to end
1 parent 9ef9bbe commit 2889730

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

workflows/ASSEMBLY.nf

+13-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
include { UNICYCLER } from "${params.module_dir}/UNICYCLER.nf"
2-
include { QUAST } from "${params.module_dir}/QUAST.nf"
3-
include { BWA } from "${params.module_dir}/BWA.nf"
4-
include { SAMTOOLS } from "${params.module_dir}/SAMTOOLS.nf"
5-
include { BEDTOOLS } from "${params.module_dir}/BEDTOOLS.nf"
1+
include { UNICYCLER } from "${params.module_dir}/UNICYCLER.nf"
2+
include { QUAST } from "${params.module_dir}/QUAST.nf"
3+
include { BWA } from "${params.module_dir}/BWA.nf"
4+
include { SAMTOOLS } from "${params.module_dir}/SAMTOOLS.nf"
5+
include { BEDTOOLS } from "${params.module_dir}/BEDTOOLS.nf"
6+
include { PILON } from "${params.module_dir}/PILON.nf"
67

78
workflow ASSEMBLY {
89
// Channel
@@ -12,7 +13,6 @@ workflow ASSEMBLY {
1213

1314
// Assembly
1415
UNICYCLER(reads_ch)
15-
QUAST(UNICYCLER.out.quast_ch.collect())
1616

1717
// Generate channel
1818
reads_ch.join(UNICYCLER.out.assembly_ch, by: 0)
@@ -22,4 +22,11 @@ workflow ASSEMBLY {
2222
BWA(mapping_ch)
2323
SAMTOOLS(BWA.out.samtools_ch)
2424
BEDTOOLS(SAMTOOLS.out.bam_ch)
25+
26+
UNICYCLER.out.assembly_ch.join(SAMTOOLS.out.bam_ch, by: 0)
27+
.set { pilon_ch }
28+
29+
// Polishing and QC
30+
PILON(pilon_ch)
31+
QUAST(PILON.out.quast_ch.collect())
2532
}

0 commit comments

Comments
 (0)