Skip to content

Commit a86beeb

Browse files
committed
added pilon process, as of issue #5
1 parent 2889730 commit a86beeb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

modules/PILON.nf

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
process PILON {
2+
publishDir "${params.out_dir}/02_ASSEMBLY/05_polished_genomes", pattern: "${datasetID}_pilon.fasta", mode: "copy"
3+
4+
tag "$datasetID"
5+
6+
input:
7+
tuple val(datasetID), file(fasta), file(bam)
8+
9+
output:
10+
file("${datasetID}_pilon.fasta")
11+
12+
"""
13+
export _JAVA_OPTIONS="-Xms512M -Xmx2G"
14+
pilon --threads $task.cpus --genome $fasta --bam $bam --output ${datasetID}_pilon --changes --vcfqe
15+
"""
16+
}

0 commit comments

Comments
 (0)