Skip to content

Commit ea3e4d5

Browse files
authored
fix(juicertools/pre): correctly export java memory options (#9334)
1 parent c7c3ca0 commit ea3e4d5

File tree

1 file changed

+1
-1
lines changed
  • modules/nf-core/juicertools/pre

1 file changed

+1
-1
lines changed

modules/nf-core/juicertools/pre/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ process JUICERTOOLS_PRE {
2929
def prefix = task.ext.prefix ?: "${meta.id}"
3030
input_genome = genome_id ?: chromsizes
3131
"""
32-
export JAVA_OPTS='"-Xms${task.memory.toMega()/4}m" "-Xmx${task.memory.toGiga()}g"'
32+
export _JAVA_OPTIONS="-Xms${task.memory.toMega().intdiv(4)}m -Xmx${task.memory.toGiga()}g"
3333
3434
juicer_tools pre \\
3535
--threads ${task.cpus} \\

0 commit comments

Comments
 (0)