Skip to content

Commit

Permalink
Apply JVM heap space modifier to VIRUSBreakend
Browse files Browse the repository at this point in the history
  • Loading branch information
scwatts committed Nov 8, 2024
1 parent 9caa5b0 commit 8f2a24f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/local/virusbreakend/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ process VIRUSBREAKEND {
script:
def args = task.ext.args ?: ''

def xmx_mod = task.ext.xmx_mod ?: 0.95

"""
# Symlink indices next to assembly FASTA
ln -s \$(find -L ${genome_gridss_index} -regex '.*\\.\\(amb\\|ann\\|pac\\|gridsscache\\|sa\\|bwt\\|img\\|alt\\)') ./
virusbreakend \\
${args} \\
--gridssargs "--jvmheap ${Math.round(task.memory.bytes * 0.95)}" \\
--gridssargs "--jvmheap ${Math.round(task.memory.bytes * xmx_mod)}" \\
--threads ${task.cpus} \\
--db ${virusbreakenddb.toString().replaceAll("/\$", "")}/ \\
--output ${meta.sample_id}.virusbreakend.vcf \\
Expand Down

0 comments on commit 8f2a24f

Please sign in to comment.